forked from docs/doc-exports
move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
9.5 KiB
9.5 KiB
Querying a Disk Attached to an ECS
Function
This API is used to query a disk attached to an ECS based on the disk ID.
URI
GET /v2.1/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}
GET /v2/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}
Table 1 describes the parameters in the URI.
Request
None
Response
Example Request
GET https://{endpoint}/v2/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id} GET https://{endpoint}/v2.1/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}
Example Response
{ "volumeAttachment": { "device": "/dev/sdd", "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803", "serverId": "4d8c3732-a248-40ed-bebc-539a6ffd25c0", "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803" } }
Returned Values
Parent topic: Disk Management