Queries the namespace of a Container Registry instance.


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 GetChartNamespace

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

InstanceId String Yes cri-xkx6vujuhay0****

The ID of the Container Registry instance.

NamespaceName String Yes ns1

The namespace that you want to query.

RegionId String Yes cn-shanghai

The ID of the region.

Response parameters

Parameter Type Example Description
AutoCreateRepo Boolean true

Indicates whether to automatically create repositories. Valid values:

  • true: automatically creates repositories.
  • false: does not automatically create repositories.
Code String success

The response code.

DefaultRepoType String PRIVATE

The default repository type. Valid values:

InstanceId String cri-xkx6vujuhay0****

The ID of the Container Registry instance.

IsSuccess Boolean true

Indicates whether the API call is successful. Valid values:

  • true: successful
  • false: failed
NamespaceId String crcn-43dhbjbyt2xl****

The ID of the namespace.

NamespaceName String ns1

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.
RequestId String CD71CF13-93AA-4805-848B-69B2DD543A9A

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "NamespaceStatus": "NORMAL",
    "NamespaceName": "ns1",
    "IsSuccess": true,
    "DefaultRepoType": "PRIVATE",
    "RequestId": "CD71CF13-93AA-4805-848B-69B2DD543A9A",
    "InstanceId": "cri-xkx6vujuhay0****",
    "AutoCreateRepo": true,
    "NamespaceId": "crcn-43dhbjbyt2xl****",
    "Code": "success"

Error codes

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