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

NamespaceStatus String No NORMAL

The namespace status. Valid values: NORMAL and DELETING.

NamespaceName String No test

The name of the chart 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 return value.

RequestId String F56D589D-AF7F-4900-BA46-62C780AC2C10

The ID of the request.

PageNo Integer 1

The number of the returned page.

PageSize Integer 30

The number of entries returned on each page.

TotalCount String 1

The total number of returned entries.

Namespaces Array N/A

The chart namespaces.

NamespaceName String test

The name of the chart namespace.

NamespaceStatus String NORMAL

The status of the chart namespace.

AutoCreateRepo Boolean true

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

DefaultRepoType String PUBLIC

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

InstanceId String cri-kmsiwlxxdcvaduwb

The ID of the instance.

NamespaceId String null

The ID of the chart 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

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>

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"
}

Error codes

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