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
标签:开关机,Huawei,API,ECS,https,ecs,com From: https://www.cnblogs.com/Jas0n0ss/p/18531017