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
.
Start ECS
https://ecs.ae-ad-1.g42cloud.com/v1/<project ID>/cloudservers/action
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/