Queries the repositories of a Container Registry instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetChartRepository

The operation that you want to perform. Set the value to GetChartRepository.

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoName String Yes test

The name of the repository.

RepoNamespaceName String Yes test

The namespace to which the repository belongs.

Response parameters

Parameter Type Example Description
Code String success

The return value.

CreateTime Long 1563767620000

The time when the repository was created.

InstanceId String cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

IsSuccess Boolean true

Indicates whether the API call is successful. Valid values:

  • true: successful
  • false: failed
ModifiedTime Long 1563767700000

The time when the repository was modified.

RepoId String crcr-c7letfwev5oq****

The ID of the repository.

RepoName String test

The name of the repository.

RepoNamespaceName String test

The namespace to which the repository belongs.

RepoStatus String NORMAL

The status of the repository. Valid values:

  • NORMAL: The namespace is normal.
  • DELETING: The namespace is being deleted.
RepoType String PUBLIC

The type of the repository. Valid values:

  • PUBLIC
  • PRIVATE
RequestId String A3F6AB56-DEF4-4FF5-8DE4-680362C0E21F

The ID of the request.

Summary String test

The summary about the repository.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetChartRepository
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&RepoName=test
&RepoNamespaceName=test
&<Common request parameters>

Sample success responses

XML format

<RepoNamespaceName>test</RepoNamespaceName>
<IsSuccess>true</IsSuccess>
<RequestId>A3F6AB56-DEF4-4FF5-8DE4-680362C0E21F</RequestId>
<InstanceId>cri-kmsiwlxxdcva****</InstanceId>
<CreateTime>1563767620000</CreateTime>
<RepoName>test</RepoName>
<Code>success</Code>
<ModifiedTime>1563767700000</ModifiedTime>
<RepoType>PUBLIC</RepoType>
<RepoStatus>NORMAL</RepoStatus>
<Summary>test</Summary>
<RepoId>crcr-c7letfwev5oq****</RepoId>

JSON format

{
    "RepoNamespaceName": "test",
    "IsSuccess": true,
    "RequestId": "A3F6AB56-DEF4-4FF5-8DE4-680362C0E21F",
    "InstanceId": "cri-kmsiwlxxdcva****",
    "CreateTime": 1563767620000,
    "RepoName": "test",
    "Code": "success",
    "ModifiedTime": 1563767700000,
    "RepoType": "PUBLIC",
    "RepoStatus": "NORMAL",
    "Summary": "test",
    "RepoId": "crcr-c7letfwev5oq****"
}

Error codes

For a list of error codes, visit the API Error Center.