Last active
February 14, 2018 18:13
-
-
Save EarthmanT/d9b4627ba3bd6ad8c6a7b5b31755e1fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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