Queries the details 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 cannot 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 |
---|---|---|
authorizeType | String | The permissions that the current account has on the namespace. You can acquire the permissions only in the Container Registry console. |
namespace | String | The name of the namespace. |
defaultVisibility | String | The default visibility of repositories that are created in the namespace. |
autoCreate | Boolean | 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 status of the namespace. Valid values: NORMAL and DELETING. |
Example
Sample requests
GET /namespace/[Namespace] HTTP/1.1
<Common request headers>
Sample success 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"
}