Get storages
GET /provider/storages
Returns the list of provider storage resources and their details.
Request Examples
Shell
onepanel-rest-cli -u onepanel:$PASSPHRASE getStorages --host https://$HOST:9443Responses
application/json
200
The provider storage resources Ids.
| Property | Type & Description |
|---|---|
ids array of strings The list of Ids of cluster storage resources. | |
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.