Queries chart namespaces created 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 ListChartNamespace

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

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

NamespaceStatus String No NORMAL

The status of a namespace. Valid values: NORMAL and DELETING.

NamespaceName String No test

The name of a namespace.

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 F56D589D-AF7F-4900-BA46-62C780AC2C10

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.

Namespaces Array

A list of namespaces created in the instance.

NamespaceName String test

The name of the namespace.

NamespaceStatus String NORMAL

The status of the namespace.

AutoCreateRepo Boolean true

Indicates whether a repository is automatically created when an image is pushed to the namespace.

DefaultRepoType String PUBLIC

The default type of the repository created in the namespace. Valid values: PUBLIC and PRIVATE.

InstanceId String cri-kmsiwlxxdcvaduwb

The ID of the instance.

NamespaceId String null

The ID of the namespace.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ListChartNamespace
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&NamespaceStatus=NORMAL
&NamespaceName=test
&PageNo=1
&PageSize=30
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "Namespaces":[
        {
            "NamespaceStatus":"NORMAL",
            "NamespaceName":"test",
            "DefaultRepoType":"PUBLIC",
            "InstanceId":"cri-kmsiwlxxdcvaduwb",
            "AutoCreateRepo":true
        }
    ],
    "TotalCount":1,
    "PageSize":30,
    "RequestId":"F56D589D-AF7F-4900-BA46-62C780AC2C10",
    "PageNo":1,
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<Namespaces>
    <NamespaceStatus>NORMAL</NamespaceStatus>
    <NamespaceName>test</NamespaceName>
    <DefaultRepoType>PUBLIC</DefaultRepoType>
    <InstanceId>cri-kmsiwlxxdcvaduwb</InstanceId>
    <AutoCreateRepo>true</AutoCreateRepo>
</Namespaces>
<TotalCount>1</TotalCount>
<PageSize>30</PageSize>
<RequestId>F56D589D-AF7F-4900-BA46-62C780AC2C10</RequestId>
<PageNo>1</PageNo>
<Code>success</Code>

Error codes

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