Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Assuming you are using a Python shell like ipython.
- # Create a Virtual env: `mktmpenv`
- # Install Cloudify: `pip install cloudify`
- # Open ipython: `ipython`.
- from cloudify_rest_client import CloudifyClient
- from copy import deepcopy
- import json
- manager_ip = '106.105.105.105' # Set your own value here.
- tenant = 'default_tenant' # Set your own value here.
- username = 'admin' # Set your own value here.
- password = 'admin' # Set your own value here.
- execution_id = '4a03556f-41d0-43bc-8755-2951579c8f7c'
- new_status = 'cancelled'
- client = CloudifyClient(host=manager_ip, tenant=tenant, username=username, password=password)
- client.executions.update(execution_id, status=new_status)
Add Comment
Please, Sign In to add comment