Use API to Shut-Down or Start-Up Huawei Cloud VM

本文最后更新于 2025年1月28日 晚上

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


Use API to Shut-Down or Start-Up Huawei Cloud VM
https://msfts.org/2024/11/06/use-API-to-shut-down-or-start-up-Huawei-cloud-VM/
作者
Jas0n0ss
发布于
2024年11月6日
许可协议