Queries details about a repository.

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 GetRepository

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

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the image repository is deployed.

RepoId String No crr-03cuozrsqhkw****

The ID of the repository.

RepoNamespaceName String No test

The name of the namespace to which the repository belongs.

RepoName String No test

The name of the repository.

Response parameters

Parameter Type Example Description
Code String success

The return value.

CreateTime Long 1570759546000

The time when the repository was created.

Detail String test

The description of the repository.

InstanceId String cri-kmsiwlxxdcva****

The ID of the instance.

IsSuccess Boolean true

Indicates whether the operation is successful.

ModifiedTime Long 1570759546100

The time when the repository was last modified.

RepoBuildType String MANUAL

The type of the repository. Valid values:

  • MANUAL: The repository was manually created.
  • AUTO: The repository was automatically created.
RepoId String crr-l5eoubonp0l****

The ID of the repository.

RepoName String test

The name of the repository.

RepoNamespaceName String test

The name of the namespace.

RepoStatus String NORMAL

The status of the repository.

RepoType String PRIVATE

The type of the repository. Valid values:

  • PUBLIC
  • PRIVATE
RequestId String 915E6734-3E50-4640-8DBA-126D2D94DE29

The ID of the request.

Summary String Automatically created repository

The summary of the repository.

TagImmutability Boolean true

Indicates whether the repository is immutable. Valid values:

  • true: The image tag is immutable.
  • false: The image tag is mutable.

Examples

Sample requests

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

Sample success responses

XML format

<RepoNamespaceName>test</RepoNamespaceName>
<IsSuccess>true</IsSuccess>
<RequestId>915E6734-3E50-4640-8DBA-126D2D94DE29</RequestId>
<InstanceId>cri-kmsiwlxxdcva****</InstanceId>
<CreateTime>1570759546000</CreateTime>
<RepoName>test</RepoName>
<Code>success</Code>
<TagImmutability>true</TagImmutability>
<RepoBuildType>MANUAL</RepoBuildType>
<ModifiedTime>1570759546100</ModifiedTime>
<RepoType>PRIVATE</RepoType>
<RepoStatus>NORMAL</RepoStatus>
<Summary>Automatically created repository</Summary>
<RepoId>crr-l5eoubonp0l****</RepoId>
<Detail>test</Detail>

JSON format

{
    "RepoNamespaceName": "test",
    "IsSuccess": true,
    "RequestId": "915E6734-3E50-4640-8DBA-126D2D94DE29",
    "InstanceId": "cri-kmsiwlxxdcva****",
    "CreateTime": 1570759546000,
    "RepoName": "test",
    "Code": "success",
    "TagImmutability": true,
    "RepoBuildType": "MANUAL",
    "ModifiedTime": 1570759546100,
    "RepoType": "PRIVATE",
    "RepoStatus": "NORMAL",
    "Summary": "Automatically created repository",
    "RepoId": "crr-l5eoubonp0l****",
    "Detail": "test"
}

Error codes

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