Querying Disk Attachment of an ECS
Function
This API is used to query disk attachment of an ECS.
URI
GET /v1/{project_id}/cloudservers/{server_id}/os-volume_attachments
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
|
server_id |
Yes |
Specifies the ECS ID in UUID format. |
Request
None
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
volumeAttachments |
Array of objects |
Specifies disks attached to an ECS. For details, see Table 3. |
|
Parameter |
Type |
Description |
|---|---|---|
|
device |
String |
Specifies the drive letter of the EVS disk, which is the device name of the EVS disk. |
|
id |
String |
Specifies the mount ID, which is the same as the EVS disk ID. The value is in UUID format. |
|
serverId |
String |
Specifies the ECS ID in UUID format. |
|
volumeId |
String |
Specifies the EVS disk ID in UUID format. |
Example Request
GET https://{endpoint}/v1/{project_id}/cloudservers/{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
Error Codes
Last Article: Querying a Single Disk Attached to an ECS
Next Article: Querying Information About the Disks Attached to an ECS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.