Queries image repositories.

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 ListRepository

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

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoStatus String No ALL

The repository status. Valid values: NORMAL, DELETING, and DELETED.

RepoName String No repo-test

The name of the repository.

RepoNamespaceName String No repo-namespace-test

The name of the namespace to which repositories belong.

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 return value.

IsSuccess Boolean true

Indicates whether the operation is successful.

PageNo Integer 1

The number of the returned page.

PageSize Integer 30

The number of entries returned on each page.

Repositories Array of Repositories

The repositories.

CreateTime Long 1564153576000

The time when the repository was created.

InstanceId String cri-kmsiwlxxdcvaduwb

The ID of the instance.

ModifiedTime Long 1564153576000

The time when the repository was last modified.

RepoBuildType String MANUAL

Indicates how the repository was created. Valid values: AUTO and MANUAL.

RepoId String crr-03cuozrsqhkwmzyl

The ID of the repository.

RepoName String test

The name of the repository.

RepoNamespaceName String test

The name of the namespace to which the repository belongs.

RepoStatus String NORMAL

The status of the repository.

RepoType String PRIVATE

The type of the repository. Valid values: PRIVATE and PUBLIC.

Summary String test OK

The summary of the repository.

TagImmutability Boolean true

Indicates whether the repository is immutable.

RequestId String 5241C090-DA69-4B0F-8E3F-2F24FDE1110E

The ID of the request.

TotalCount String 1

The total number of returned entries.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ListRepository
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoStatus=ALL
&RepoName=repo-test
&RepoNamespaceName=repo-namespace-test
&PageNo=1
&PageSize=30
&<Common request parameters>

Sample success responses

XML format

<Repositories>
    <RepoNamespaceName>test</RepoNamespaceName>
    <TagImmutability>true</TagImmutability>
    <RepoBuildType>MANUAL</RepoBuildType>
    <ModifiedTime>1564153576000</ModifiedTime>
    <RepoType>PRIVATE</RepoType>
    <RepoStatus>NORMAL</RepoStatus>
    <InstanceId>cri-kmsiwlxxdcvaduwb</InstanceId>
    <CreateTime>1564153576000</CreateTime>
    <RepoName>test</RepoName>
    <Summary>test OK</Summary>
    <RepoId>crr-03cuozrsqhkwmzyl</RepoId>
</Repositories>
<IsSuccess>true</IsSuccess>
<TotalCount>1</TotalCount>
<PageSize>30</PageSize>
<RequestId>5241C090-DA69-4B0F-8E3F-2F24FDE1110E</RequestId>
<PageNo>1</PageNo>
<Code>success</Code>

JSON format

{
    "Repositories": {
        "RepoNamespaceName": "test",
        "TagImmutability": true,
        "RepoBuildType": "MANUAL",
        "ModifiedTime": 1564153576000,
        "RepoType": "PRIVATE",
        "RepoStatus": "NORMAL",
        "InstanceId": "cri-kmsiwlxxdcvaduwb",
        "CreateTime": 1564153576000,
        "RepoName": "test",
        "Summary": "test OK",
        "RepoId": "crr-03cuozrsqhkwmzyl"
    },
    "IsSuccess": true,
    "TotalCount": 1,
    "PageSize": 30,
    "RequestId": "5241C090-DA69-4B0F-8E3F-2F24FDE1110E",
    "PageNo": 1,
    "Code": "success"
}

Error codes

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