更新时间:2024-11-14 GMT+08:00
查询弹性云服务器挂载磁盘信息(废弃)
调试
您可以在API Explorer中调试该接口。
URI
GET /v2.1/{project_id}/servers/{server_id}/os-volume_attachments
请求消息
无
响应消息
响应参数
请求示例
查询指定云服务器挂载的磁盘信息。
GET https://{endpoint}/v2.1/{project_id}/servers/{server_id}/os-volume_attachments
响应示例
{ "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" } ] }
返回值
请参考通用请求返回值。