Guest User

Untitled

a guest
Feb 26th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. # Assuming you are using a Python shell like ipython.
  2. # Create a Virtual env: `mktmpenv`
  3. # Install Cloudify: `pip install cloudify`
  4. # Open ipython: `ipython`.
  5.  
  6. from cloudify_rest_client import CloudifyClient
  7. from copy import deepcopy
  8. import json
  9.  
  10. manager_ip = '106.105.105.105' # Set your own value here.
  11. tenant = 'default_tenant' # Set your own value here.
  12. username = 'admin' # Set your own value here.
  13. password = 'admin' # Set your own value here.
  14.  
  15. execution_id = '4a03556f-41d0-43bc-8755-2951579c8f7c'
  16. new_status = 'cancelled'
  17.  
  18. client = CloudifyClient(host=manager_ip, tenant=tenant, username=username, password=password)
  19. client.executions.update(execution_id, status=new_status)
Add Comment
Please, Sign In to add comment