All Products
Search
Document Center

Get a namespace list

Last Updated: May 28, 2018

Description

Get the namespace list.

Request information

Request line

  1. GET /namespace HTTP/1.1

Request line parameters (URI parameters)

None.

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. {
  5. "namespace": "String",
  6. "authorizeType": "String",
  7. "namespaceStatus": "String"
  8. }
  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.
namespaceStatus String The status of the namespace (normal, deleting).

Example

Request example

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

Response example

  1. HTTP/1.1 200 OK
  2. <Common response header>
  3. {
  4. "data": {
  5. "namespaces": [
  6. {
  7. "namespace": "aliyun",
  8. "authorizeType": "ADMIN",
  9. "namespaceStatus": "NORMAL"
  10. },
  11. {
  12. "namespace": "alibaba",
  13. "authorizeType": "ADMIN",
  14. "namespaceStatus": "NORMAL"
  15. }
  16. ]
  17. },
  18. "requestId": "AB034FC3-27E8-4E34-958B-0944E369270B"
  19. }