Skip to content

Instantly share code, notes, and snippets.

@EarthmanT
Last active February 14, 2018 18:13
Show Gist options
  • Save EarthmanT/d9b4627ba3bd6ad8c6a7b5b31755e1fd to your computer and use it in GitHub Desktop.
Save EarthmanT/d9b4627ba3bd6ad8c6a7b5b31755e1fd to your computer and use it in GitHub Desktop.
# 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment