Queries the information of chart repositories in an 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-xkx6vujuhay0tasd

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 chart repository. Valid values: NORMAL and DELETING.

RepoName String No ns1

The name of a repository in the instance.

RepoNamespaceName String No repo1

The name of a namespace in ths instance.

PageNo Integer No 1

The number of the page to return.

PageSize Integer No 30

The number of entries to return on a 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 0AB62FB8-6873-4032-8515-4578D27523B7

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 ns1

The name of the namespace.

RepoName String repo1

The name of the repository.

RepoStatus String NORMAL

The status of the repository. Valid values: NORMAL and DELETING.

RepoType String PUBLIC

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

Summary String test

The summary about the repository.

InstanceId String cri-xkx6vujuhay0tasd

The ID of the instance.

RepoId String crcr-gpsu7b8chmxk2asd

The ID of the repository.

CreateTime Long 1571926644000

The time when the repository was created.

ModifiedTime Long 1571930329000

The time when the repository was modified.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ListChartRepository
&InstanceId=cri-xkx6vujuhay0tasd
&RegionId=cn-shanghai
&RepoNamespaceName=ns1
&RepoName=repo1
&PageNo=1
&PageSize=1
&<Common request parameters>

Sample success responses

JSON format

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

XML format

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

Error codes

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