项目作者: 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
创建时间: 2020-10-23T04:47:43Z
项目社区:https://github.com/barnalib/ibmcloud-VSI-start-shutdown

开源协议:

下载


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”}}’