使用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
.
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
本文来自博客园,作者:Jas0n0ss,转载请注明原文链接:https://www.cnblogs.com/Jas0n0ss/p/18531017