Queries the namespaces of a Container Registry 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-kmsiwlxxdcva****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

NamespaceStatus String No NORMAL

The status of the namespace. Valid values:

  • NORMAL: namespaces that are in the NORMAL state.
  • DELETING: namespaces that are in the DELETING state.
NamespaceName String No test

The name of the 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
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful.

Namespaces Array of Namespaces

The namespaces.

AutoCreateRepo Boolean true

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

DefaultRepoType String PUBLIC

The default repository type. Valid values:

  • PUBLIC
  • PRIVATE
InstanceId String cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

NamespaceId String null

The ID of the namespace.

NamespaceName String test

The name of the namespace.

NamespaceStatus String NORMAL

The status of the namespace. Valid values:

  • NORMAL: The namespace is normal.
  • DELETING: The namespace is being deleted.
PageNo Integer 1

The page number of the returned page.

PageSize Integer 30

The number of entries returned on each page.

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

The ID of the request.

TotalCount String 1

The total number of returned entries.

Examples

Sample requests

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

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<Namespaces>
    <NamespaceStatus>NORMAL</NamespaceStatus>
    <NamespaceName>test</NamespaceName>
    <DefaultRepoType>PUBLIC</DefaultRepoType>
    <InstanceId>cri-kmsiwlxxdcva****</InstanceId>
    <AutoCreateRepo>true</AutoCreateRepo>
    <NamespaceId>null</NamespaceId>
</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-kmsiwlxxdcva****",
        "AutoCreateRepo": true,
        "NamespaceId": "null"
    },
    "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.