弹性云服务器 ECS-批量挂载指定共享盘:请求示例

时间:2024-11-14 15:10:22

请求示例

批量挂载共享数据盘到ID为“a26887c6-c47b-4654-abb5-dfadf7d3f803”和“a26887c6-c47b-4654-abb5-dfadf7d3fa05”的云服务器

POST https://{endpoint}/v1/{project_id}/batchaction/attachvolumes/{volume_id}

{
    "serverinfo": [
        {
            "server_id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
            "device": "/dev/sdb"
        },
        {
            "server_id": "a26887c6-c47b-4654-abb5-dfadf7d3fa05",
            "device": "/dev/sda"
        }
    ]
}
support.huaweicloud.com/api-ecs/ecs_02_0307.html