Loading

使用API 来进行Huawei ECS的开关机

Use API to shut-down or start-up Huawei Cloud ECS

https://support.huaweicloud.com/intl/zh-cn/api-ecs/ecs_02_0301.html

Get X-Subject-Token for authorization

https://iam.ae-ad-1.g42cloud.com/v3/auth/tokens

We gonna use Postman for test purpose, of course you can using other tools or commands like curl.

image-20241106163814680

image-20241106163628023

image-20241106164316126

image-20241106163325157

Start ECS

https://ecs.ae-ad-1.g42cloud.com/v1/<project ID>/cloudservers/action

image-20241106164835466

image-20241106164933574

image-20241106165400906

Go the the Cloud Console to check, ECS already started. More usage examples on API manage cloud service:

https://support.huaweicloud.com/intl/zh-cn/api-ecs/ecs_01_0011.html

posted @ 2024-11-06 21:00  Jas0n0ss  阅读(3)  评论(0编辑  收藏  举报