项目作者: barnalib
项目描述 :
To start and shut down the VSIs on GEN-2 VPC infrastructure ibm cloud
高级语言: Python
项目地址: git://github.com/barnalib/ibmcloud-VSI-start-shutdown.git
VSI-start-shutdown-ibmcloud
This can be added as an action in ibm cloud functions to trigger it periodically to automate VM shutdown and start process.
This is tested with python 3.7
To start and shut down the VSIs on GEN-2 VPC infrastructure ibm cloud
Provide your user id and api key in the python file and modify the “type” field in the payload to start or stop
payload = f’{{“type”: “stop”}}’