Queries a chart namespace 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 GetChartNamespace

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

InstanceId String Yes cri-xkx6vujuhay0tasd

The ID of the instance.

NamespaceName String Yes ns1

The name of the namespace.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the request is successful.

Code String success

The code returned for the request.

RequestId String CD71CF13-93AA-4805-848B-69B2DD543A9A

The ID of the request.

NamespaceName String ns1

The name of the namespace.

NamespaceStatus String NORMAL

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

AutoCreateRepo Boolean true

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

DefaultRepoType String PRIVATE

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

InstanceId String cri-xkx6vujuhay0tasd

The ID of the instance.

NamespaceId String crcn-43dhbjbyt2xltfaa

The ID of the namespace.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetChartNamespace
&InstanceId=cri-xkx6vujuhay0tasd
&NamespaceName=ns1
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

JSON format

{
    "NamespaceStatus":"NORMAL",
    "IsSuccess":true,
    "NamespaceName":"ns1",
    "RequestId":"CD71CF13-93AA-4805-848B-69B2DD543A9A",
    "DefaultRepoType":"PUBLIC",
    "InstanceId":"cri-xkx6vujuhay0tasd",
    "AutoCreateRepo":true,
    "NamespaceId":"crcn-43dhbjbyt2xltfaa",
    "Code":"success"
}

XML format

<NamespaceStatus>NORMAL</NamespaceStatus>
<IsSuccess>true</IsSuccess>
<NamespaceName>ns1</NamespaceName>
<RequestId>CD71CF13-93AA-4805-848B-69B2DD543A9A</RequestId>
<DefaultRepoType>PUBLIC</DefaultRepoType>
<InstanceId>cri-xkx6vujuhay0tasd</InstanceId>
<AutoCreateRepo>true</AutoCreateRepo>
<NamespaceId>crcn-43dhbjbyt2xltfaa</NamespaceId>
<Code>success</Code>

Error codes

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