Queries the detailed information about a specified namespace.

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/[Namespace] HTTP/1.1

Request Parameters

Parameter Type Required Description
Namespace String Yes The name of the namespace. The name must be 2 to 30 characters in length, and can contain lowercase letters, digits, hyphens (-), and underscores (_). It must not start with a hyphen or an underscore.

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",
            "defaultVisibility": "String",
            "autoCreate": "Boolean",
            "namespaceStatus": "String"
        }
    },
    "requestId": "String"
}

Response parameters

Parameter Type Description
namespace String The name of the namespace.
authorizeType String The permissions that the current account has on the namespace. You can acquire the permissions only in the Container Registry console.
defaultVisibility String The default visibility of repositories that are created in the namespace.
autoCreate String Indicates whether to automatically create a repository when an image is pushed. If the feature is disabled, you must create a repository before you push an image.
namespaceStatus String The state of the namespace. Valid values: NORMAL and DELETING.

Examples

Sample requests

GET /namespace/[Namespace] HTTP/1.1
<Common request headers>

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
    "data": {
        "namespace": {
            "namespace": "aliyun",
            "authorizeType": "ADMIN",
            "defaultVisibility": "PRIVATE",
            "autoCreate": true,
            "namespaceStatus": "NORMAL"
        }
    },
    "requestId": "19228CE5-4905-4A24-A2C1-E774F32CCC31"
}