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.
blockDevices array of objects List of available block devices.
List of available block devices.
Device type, as returned by lsblk.
Host on which the device is available.
Device size in bytes.
Result of heuristic attempt to detect whether a device or any of its children is mounted.
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.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}