弹性云服务器 ECS-弹性云服务器挂载磁盘:请求示例

时间:2024-06-28 18:29:54

请求示例

挂载S CS I类型的云硬盘到云服务器,挂载点为“/dev/sda”。

POST https://{endpoint}/v1/{project_id}/cloudservers/{server_id}/attachvolume

{
    "volumeAttachment": {
         "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
         "device": "/dev/sda",
         "volume_type": "SSD",
         "count": 5,
         "hw:passthrough": "true"
    },
    "dry_run": false
}
support.huaweicloud.com/api-ecs/ecs_02_0605.html