Queries namespaces created in an 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 ListNamespace

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

InstanceId String Yes cri-94klsruryslxwtzj

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-namespace

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 B7E5FCA5-55ED-451C-9649-0BB2B93387D0

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-94klsruryslxwtzj

The ID of the instance.

NamespaceId String crn-tiw8t3f8i5lta4uv

The ID of the namespace.


Sample requests

http(s)://[Endpoint]/? Action=ListNamespace
&<Common request parameters>

Sample success responses

JSON format


XML format


Error codes

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