Get block devices for Ceph OSD
Lists block devices available at given host. This list can be used to choose device to be formatted for use by Ceph Blockdevice OSD.
Query parameters
| Parameter | Type & Description |
|---|---|
| host required | string Host for which block devices should be returned. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE getBlockDevices --host https://$HOST:9443Responses
The block devices description.
| Property | Type & Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
blockDevices array of objects List of available block devices.
| |||||||||||
Example
{
"block_devices": [
{
"path": "/dev/sda",
"size": 10000000000,
"mounted": false
},
{
"path": "/dev/sdb",
"size": 20000000000,
"mounted": true
},
{
"path": "/dev/sr0",
"size": 1073741312,
"mounted": false
}
]
}Unauthorized request.
Forbidden request.
Host is not in the cluster.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}