This API is used to query EVS disks attached to a BMS.
GET /v1/{project_id}/baremetalservers/{server_id}/os-volume_attachments
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
server_id |
Yes |
Specifies the BMS ID. You can obtain the BMS ID from the BMS console or by calling the Querying BMSs (Native OpenStack API). |
Parameter |
Type |
Description |
---|---|---|
volumeAttachments |
Array of objects |
Specifies disks attached to a BMS. For details, see Table 2. |
Parameter |
Type |
Description |
---|---|---|
device |
String |
Specifies the mount directory, for example, dev/sdd. |
id |
String |
Specifies the ID of the attached resource. |
serverId |
String |
Specifies the ID of the BMS to which the disk is attached. |
volumeId |
String |
Specifies the ID of the disk attached to the BMS. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | { "volumeAttachments": [ { "device": "/dev/sdd", "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803", "serverId": "4d8c3732-a248-40ed-bebc-539a6ffd25c0", "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803" }, { "device": "/dev/sdc", "id": "a26887c6-c47b-4654-abb5-dfadf7d3f804", "serverId": "4d8c3732-a248-40ed-bebc-539a6ffd25c0", "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f804" } ] } |
Returned Values |
Description |
---|---|
200 |
The request has been successfully processed. |
For details about other returned values, see Status Codes.
See Error Codes.