Querying EVS Disks Attached to a BMS
Function
This API is used to query EVS disks attached to a BMS.
URI
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 using the Querying BMSs (Native OpenStack API) API. |
Request
Response
- Response parameters
Parameter
Type
Description
volumeAttachments
Array of objects
Specifies disks attached to a BMS. For details, see Table 2.
Table 2 volumeAttachments field data structure description 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.
- Example response
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
|
Returned Values |
Description |
|---|---|
|
200 |
The server has successfully processed the request. |
For details about other returned values, see Status Codes.
Error Codes
See Error Codes.
Last Article: Detaching an EVS Disk from a BMS
Next Article: BMS Metadata Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.