Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 413 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 413 Bytes

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"}}'