Queries namespaces.

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 information

Request line

GET /namespace HTTP/1.1

Request line parameters

None.

Operation-specific request headers

None.

Request body

None.

Request body parameters

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
    "data": {
        "namespace": [
            {
                "namespace": "String",
                "authorizeType": "String",
                "namespaceStatus": "String"
            }
        ]
    },
    "requestId": "string"
}

Response body parameters

Parameter Type Description
namespace String The name of the namespace.
authorizeType String The operation permissions that the current account has on the namespace. You can acquire permissions only in the Container Registry console.
namespaceStatus String The state of the namespace. Valid values: NORMAL and DELETING.

Examples

Sample requests

GET /namespace HTTP/1.1
<Common request headers>

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
    "data": {
        "namespaces": [
            {
                "namespace": "aliyun",
                "authorizeType": "ADMIN",
                "namespaceStatus": "NORMAL"
            },
            {
                "namespace": "alibaba",
                "authorizeType": "ADMIN",
                "namespaceStatus": "NORMAL"
            }
        ]
    },
    "requestId": "AB034FC3-27E8-4E34-958B-0944E369270B"
}