Queries repositories in an instance.


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 where the instance resides.

RepoStatus String No ALL

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

RepoName String No repo-test

The name of a repository.

RepoNamespaceName String No repo-namespace-test

The name of a 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
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

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

The ID of the request.

PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned per page.

TotalCount String 1

The total number of entries returned.

Repositories Array

A list of repositories.

RepoNamespaceName String test

The name of the namespace.

RepoName String test

The name of the repository.

RepoStatus String NORMAL

The status of the repository.

RepoType String PRIVATE

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

RepoBuildType String MANUAL

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

Summary String test OK

The summary of the repository.

InstanceId String cri-kmsiwlxxdcvaduwb

The ID of the instance.

RepoId String crr-03cuozrsqhkwmzyl

The ID of the repository.

CreateTime Long 1564153576000

The time when the repository was created.

ModifiedTime Long 1564153576000

The time when the repository was last modified.


Sample requests

http(s)://[Endpoint]/? Action=ListRepository
&<Common request parameters>

Sample success responses

JSON format


XML format


Error codes

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