Get all user spaces
GET /spaces
Returns the list of all user spaces.
Example cURL requests
List all user spaces
curl -X GET -H "X-Auth-Token: $TOKEN" \
"https://$HOST/api/v3/oneprovider/spaces"
[
{
"spaceId": "51306215-674a-47b7-afd1-54fa45bcaff7",
"name": "Space1"
},
{
"spaceId": "0a568302-0f5e-454d-a6bc-7da7e1bfb985",
"name": "Space2"
}
]
Request Examples
Shell
oneprovider-rest-cli getAllSpacesResponses
application/json
200
The list of all user spaces - containining their names and Id's.
No schema provided.
400
Invalid request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 403
Forbidden request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 404
Oneprovider REST API not available.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 500
Internal server error.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}