弹性云服务器 ECS-批量关闭云服务器:请求示例

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

请求示例

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

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