All Products
Search
Document Center

Get the specified namespace information

Last Updated: May 28, 2018

Description

Get the detailed information of the specified namespace.

Request information

Request line

  1. GET /namespace/{Namespace} HTTP/1.1

Request line parameters (URI parameters)

Name Type Required Description
Namespace String Yes The name of the required namespace. The name can be 2-30 characters in length, and contain lowercase letters, numbers, hyphens (-), and underscores (_). The name cannot start with hyphens and underscores.

Special request header

None.

Request body

None.

Request body explanation

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Special response header

None.

Response body

  1. {
  2. "data": {
  3. "namespace": {
  4. "namespace": "String",
  5. "authorizeType": "String",
  6. "defaultVisibility": "String",
  7. "autoCreate": "Boolean",
  8. "namespaceStatus": "String"
  9. }
  10. },
  11. "requestId": "String"
  12. }

Response body explanation

Name Type Description
namespace String The name of the namespace.
authorizeType String Request user permission to operate on this namespace, limited to console authorization.
defaultVisibility String Create the default repository visibility in this namespace.
autoCreate String Whether to push images to automatically created repository with the corresponding name. If this function is disabled, you must create the repository first, and then push the images.
namespaceStatus String The status of the namespace (normal, deleting).

Example

Request example

  1. GET /namespace/aliyun HTTP/1.1
  2. <Common request header>

Response example

  1. HTTP/1.1 200 OK
  2. <Common response header>
  3. {
  4. "data": {
  5. "namespace": {
  6. "namespace": "aliyun",
  7. "authorizeType": "ADMIN",
  8. "defaultVisibility": "PRIVATE",
  9. "autoCreate": true,
  10. "namespaceStatus": "NORMAL"
  11. }
  12. },
  13. "requestId": "19228CE5-4905-4A24-A2C1-E774F32CCC31"
  14. }