python3 -m venv nomnomdata source nomnomdata/bin/activate
pip install nomnomdata-nominode
nnd login
nnd nominode task get -n <Nominode URL> -pu <Project ID> -tu <Task ID>
nnd nominode task get -n http://yourserver.yourdomain.com -pu 00000-00000 -tu 84DLY-KK1LU
{
"code": 200,
"status": "Success",
"message": null,
"results": {
"actions": null,
"alias": "Hello Test",
"concurrency": 1,
"created": "2020-12-01T18:43:14+00:00",
"description": null,
"engine_uuid": "HELLO-WORLD-SUPPORT",
"last_execution": {
"created": "2020-12-01T18:43:20+00:00",
"executor_type": "legacy",
"has_result": null,
"message": "Completed: Successful execution",
"progress": 0,
"status": {
"description": "Successfully executed task.",
"execution_state": "Completed",
"id": "99"
},
"updated": "2020-12-01T18:43:42+00:00",
"uuid": "16068482006D3C3C5F7ADF4AF5B93E8343A5C6CC48"
},
"last_execution_uuid": "16068482006D3C3C5F7ADF4AF5B93E8343A5C6CC48",
"last_successful_execution_uuid": "16068482006D3C3C5F7ADF4AF5B93E8343A5C6CC48",
"notify": null,
"options": {
"channel": "stable"
},
"parameters": {
"action_name": "hello_world",
"alias": "Hello Test",
"name": "Test",
"repeat": 3
},
"project_uuid": "00000-00000",
"status": null,
"updated": "2020-12-01T18:43:42+00:00",
"uuid": "84DLY-KK1LU",
"versions": [{
"transaction_id": 15,
"uuid": "84DLY-KK1LU"
}]
}
}
nnd login
nnd nominode task update -n <Nominode URL> -s '<JSON formatted text>'
nnd nominode task update -n <Nominode URL> -f <text file path>
{
"parameters": {"repeat": 5},
"project_uuid": "00000-00000",
"uuid": "84DLY-KK1LU"
}
nnd nominode task update -n http://yourserver.yourdomain.com -f yourtask.json
{ "code": 202, "status": "Success", "message": null, "results": { "actions": null, "alias": "Hello Test", "concurrency": 1, "created": "2020-12-01T18:43:14+00:00", "description": null, "engine_uuid": "HELLO-WORLD-SUPPORT", "last_execution": { "created": "2020-12-01T18:43:20+00:00", "executor_type": "legacy", "has_result": null, "message": "Completed: Successful execution", "progress": 0, "status": { "description": "Successfully executed task.", "execution_state": "Completed", "id": "99" }, "updated": "2020-12-01T18:43:42+00:00", "uuid": "16068482006D3C3C5F7ADF4AF5B93E8343A5C6CC48" }, "last_execution_uuid": "16068482006D3C3C5F7ADF4AF5B93E8343A5C6CC48", "last_successful_execution_uuid": "16068482006D3C3C5F7ADF4AF5B93E8343A5C6CC48", "notify": null, "options": { "channel": "stable" }, "parameters": { "action_name": "hello_world", "alias": "Hello Test", "name": "Test", "repeat": 5 }, "project_uuid": "00000-00000", "status": null, "updated": "2020-12-01T20:11:57+00:00", "uuid": "84DLY-KK1LU", "versions": [{ "transaction_id": 15, "uuid": "84DLY-KK1LU" }, { "transaction_id": 16, "uuid": "84DLY-KK1LU" }] } }
nnd login
nnd nominode task create -n <Nominode URL> -s '<JSON formatted text>'
nnd nominode task create -n <Nominode URL> -f <text file path>
{
"alias": "Hello Test",
"engine_uuid": "HELLO-WORLD-SUPPORT",
"options": {"channel": "stable"},
"parameters": {
"action_name": "hello_world",
"alias": "Hello Test",
"name": "Test",
"repeat": 3
},
"project_uuid": "00000-00000",
"uuid": "AAAAA-AAAAA"
}
nnd nominode task create -n http://yourserver.yourdomain.com -f yourtask.json
{
"code": 202,
"status": "Success",
"message": "",
"results": {
"actions": null,
"alias": "Hello Test",
"concurrency": 1,
"created": "2020-12-01T22:37:40+00:00",
"description": null,
"engine_uuid": "HELLO-WORLD-SUPPORT",
"last_execution": null,
"last_execution_uuid": null,
"last_successful_execution_uuid": null,
"notify": null,
"options": {"channel": "stable"},
"parameters": {
"action_name": "hello_world",
"alias": "Hello Test",
"name": "Test",
"repeat": 3
},
"project_uuid": "00000-00000",
"status": null,
"updated": "2020-12-01T22:37:40+00:00",
"uuid": "AAAAA-AAAAA",
"versions": [{
"transaction_id": 18,
"uuid": "AAAAA-AAAAA"
}]
}
}
nnd login
nnd nominode task delete -n <Nominode URL> -pu <Project ID> -tu <Task ID>
nnd nominode task delete -n http://yourserver.yourdomain.com -pu 00000-00000 -tu AAAAA-AAAAA
{
"code": 202,
"status": "Success",
"message": "Task identified by uuid: AAAAA-AAAAA successfully deleted",
"results": []
}