forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
9.6 KiB
9.6 KiB
Querying Disks Attached to an ECS
Function
This API is used to query the disks attached to an ECS.
Disks that have been successfully attached and are being attached are to be queried.
URI
GET /v2.1/{project_id}/servers/{server_id}/os-volume_attachments
GET /v2/{project_id}/servers/{server_id}/os-volume_attachments
Table 1 describes the parameters in the URI.
Request
None
Response
Response parameters
Example Request
Query details about disks attached to an ECS.
GET https://{endpoint}/v2/{project_id}/servers/{server_id}/os-volume_attachments GET https://{endpoint}/v2.1/{project_id}/servers/{server_id}/os-volume_attachments
Example Response
{ "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
Parent topic: Disk Management