Querying Disk Attachment of an ECS
Function
This API is used to query disk attachment of an ECS.
Request
None
Response
Parameter |
Type |
Description |
---|---|---|
volumeAttachments |
Array of objects |
Specifies the disks attached to an ECS. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
serverId |
String |
Specifies the ECS ID in UUID format. |
volumeId |
String |
Specifies the EVS disk ID in UUID format. |
id |
String |
Specifies the mount ID, which is the same as the EVS disk ID. The value is in UUID format. |
size |
Integer |
Specifies the EVS disk size in GB. |
device |
String |
Specifies the drive letter of the EVS disk, which is the device name of the EVS disk. |
pciAddress |
String |
Specifies the PCI address. |
bootIndex |
Boolean |
Specifies the EVS disk boot sequence.
|
bus |
String |
Indicates the disk bus type. Options: virtio and scsi |
Example Request
GET https://{endpoint}/v2.1/servers/4d8c3732-a248-40ed-bebc-539a6ffd25c0/block_device
Example Response
{ "volumeAttachments": [ { "pciAddress": "0000:02:01.0", "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803", "device": "/dev/vda", "serverId": "4d8c3732-a248-40ed-bebc-539a6ffd25c0", "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803", "size": "40", "bootIndex": 0, "bus":"virtio" }, { "pciAddress": "0000:02:02.0", "volumeId": "a26887c6-c47b-4654-abb5-asdf234r234r", "device": "/dev/vdb", "serverId": "4d8c3732-a248-40ed-bebc-539a6ffd25c0", "id": "a26887c6-c47b-4654-abb5-asdf234r234r", "size": "10", "bootIndex": 1, "bus":"virtio" } ] }
Returned Values
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot