弹性云服务器 ECS-批量重启云服务器:请求示例

时间:2023-12-01 17:43:13

请求示例

批量重启ID为“616fb98f-46ca-475e-917e-2563e5a8cd19”和“726fb98f-46ca-475e-917e-2563e5a8cd20”的云服务器,请求参数必须以”reboot”字段下发。
POST https://{endpoint}/v1/{project_id}/cloudservers/action

{
    "reboot": {
        "type":"SOFT",
        "servers": [
            {
                "id": "616fb98f-46ca-475e-917e-2563e5a8cd19"
            },
            {
                "id": "726fb98f-46ca-475e-917e-2563e5a8cd20"
            }
        ]
    }
}
support.huaweicloud.com/api-ecs/ecs_02_0302.html