Get provider spaces
GET /provider/spaces
Returns the list of spaces supported by the provider.
Request Examples
Shell
onepanel-rest-cli -u onepanel:$PASSPHRASE getProviderSpaces --host https://$HOST:9443Responses
application/json
200
The provider spaces IDs.
| Property | Type & Description |
|---|---|
ids array of strings The list of IDs of spaces supported by a provider. | |
Example
application/json
{
"ids": [
"x7It3cpgNgLZ8RwOrOoW",
"Q1boCClpCS5mUNhM7YCy"
]
} 401
Unauthorized request.
403
Forbidden request.
500
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
application/json
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
} 503
Services needed to fulfill this request are not running.