Queries the information 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
InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String No crr-03cuozrsqhkwmzyl

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-kmsiwlxxdcvaduwb

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

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

RepoId String null

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 and 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.

Examples

Sample requests

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

Sample success responses

XML format

<RepoNamespaceName>test</RepoNamespaceName>
<IsSuccess>true</IsSuccess>
<RequestId>915E6734-3E50-4640-8DBA-126D2D94DE29</RequestId>
<InstanceId>cri-kmsiwlxxdcvaduwb</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>null</RepoId>
<Detail>test</Detail>

JSON format

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

Error codes

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