/namespaces
GET /api/v1/namespaces
- GET /api/v1/namespaces
Retrieve the list of namespaces.
Example request:
curl -X GET "http://localhost:4000/api/v1/namespaces" -H "accept: application/json"
GET /api/v1/namespaces HTTP/1.1 Host: localhost:4000 Accept: application/json, text/javascript
Example response:
HTTP/1.1 200 OK Vary: Accept Content-Type: application/json [ { "name": "myNamespace", "id": 1234 } ]
- Response Headers
Content-Type – application/json
- Status Codes
200 OK – The list of namespaces was retrieved successfully.
503 Service Unavailable – The REST API cannot connect to ScaleOut StateServer service.
500 Internal Server Error – Internal error, see the JSON response for more information.
- Response JSON Array of Objects
name (string) – The name of the namespace as stored in the server.
id (integer) – The namespace ID in the system.