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 ListChartRepository

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

InstanceId String Yes cri-xkx6vujuhay0****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoStatus String No ALL

The status of the repositories that you want to query. Valid values:

  • ALL: all states
  • NORMAL: the NORMAL state
  • DELETING: the DELETING state
RepoName String No ns1

The name of the repository.

RepoNamespaceName String No repo1

The namespace to which the repository belongs.

PageNo Integer No 1

The number of the page to return.

PageSize Integer No 30

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
Code String success

The returned value.

IsSuccess Boolean true

Indicates whether the API call is successful.

PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned per page.

Repositories Array of Repositories

The repositories.

CreateTime Long 1571926644000

The time when the repository was created.

InstanceId String cri-xkx6vujuhay0****

The ID of the Container Registry instance.

ModifiedTime Long 1571930329000

The time when the repository was modified.

RepoId String crcr-gpsu7b8chmxk****

The ID of the repository.

RepoName String repo1

The name of the repository.

RepoNamespaceName String ns1

The namespace to which the repository belongs.

RepoStatus String NORMAL

The status of the repository. Valid values:

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

The type of the repository. Valid values:

  • PRIVATE: The repository is a private repository.
  • PUBLIC: The repository is a public repository.
Summary String test

The summary about the repository.

RequestId String 0AB62FB8-6873-4032-8515-4578D27523B7

The ID of the request.

TotalCount String 1

The total number of returned entries.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListChartRepository
&InstanceId=cri-xkx6vujuhay0****
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<Repositories>
    <RepoNamespaceName>ns1</RepoNamespaceName>
    <ModifiedTime>1571930329000</ModifiedTime>
    <RepoType>PUBLIC</RepoType>
    <RepoStatus>NORMAL</RepoStatus>
    <InstanceId>cri-xkx6vujuhay0****</InstanceId>
    <CreateTime>1571926644000</CreateTime>
    <RepoName>repo1</RepoName>
    <Summary>test</Summary>
    <RepoId>crcr-gpsu7b8chmxk****</RepoId>
</Repositories>
<IsSuccess>true</IsSuccess>
<TotalCount>1</TotalCount>
<PageSize>30</PageSize>
<RequestId>0AB62FB8-6873-4032-8515-4578D27523B7</RequestId>
<PageNo>1</PageNo>
<Code>success</Code>

JSON format

{
    "Repositories": {
        "RepoNamespaceName": "ns1",
        "ModifiedTime": 1571930329000,
        "RepoType": "PUBLIC",
        "RepoStatus": "NORMAL",
        "InstanceId": "cri-xkx6vujuhay0****",
        "CreateTime": 1571926644000,
        "RepoName": "repo1",
        "Summary": "test",
        "RepoId": "crcr-gpsu7b8chmxk****"
    },
    "IsSuccess": true,
    "TotalCount": 1,
    "PageSize": 30,
    "RequestId": "0AB62FB8-6873-4032-8515-4578D27523B7",
    "PageNo": 1,
    "Code": "success"
}

Error codes

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