Workflow service command-line clientThe mistral client is the command-line
interface (CLI) for the Workflow service API and its extensions.
This chapter documents mistral version
0.1.
For help on a specific mistral
command, enter:
$mistralCOMMANDmistral usageusage: mistral [--version] [-v] [--log-file LOG_FILE] [-q] [-h] [--debug]
[--os-mistral-url MISTRAL_URL]
[--os-mistral-version MISTRAL_VERSION]
[--os-mistral-service-type SERVICE_TYPE]
[--os-mistral-endpoint-type ENDPOINT_TYPE]
[--os-username USERNAME] [--os-password PASSWORD]
[--os-tenant-id TENANT_ID] [--os-tenant-name TENANT_NAME]
[--os-auth-token TOKEN] [--os-auth-url AUTH_URL]
[--os-cacert CACERT]mistral optional arguments--version
Show program's version number and exit.
-v, --verbose
Increase verbosity of output. Can be repeated.
--log-file LOG_FILE
Specify a file to log output. Disabled by
default.
-q, --quiet
Suppress output except warnings and errors.
-h, --help
Show this help message and exit.
--debug
Show tracebacks on errors.
--os-mistral-url MISTRAL_URL
Mistral API host (Env: OS_MISTRAL_URL)
--os-mistral-version MISTRAL_VERSION
Mistral API version (default = v2) (Env:
OS_MISTRAL_VERSION)
--os-mistral-service-type SERVICE_TYPE
Mistral service-type (should be the same name
as in keystone-endpoint) (default =
workflowv2) (Env: OS_MISTRAL_SERVICE_TYPE)
--os-mistral-endpoint-type ENDPOINT_TYPE
Mistral endpoint-type (should be the same name
as in keystone-endpoint) (default = publicURL)
(Env: OS_MISTRAL_ENDPOINT_TYPE)
--os-username USERNAME
Authentication username (Env: OS_USERNAME)
--os-password PASSWORD
Authentication password (Env: OS_PASSWORD)
--os-tenant-id TENANT_ID
Authentication tenant identifier (Env:
OS_TENANT_ID)
--os-tenant-name TENANT_NAME
Authentication tenant name (Env:
OS_TENANT_NAME)
--os-auth-token TOKEN
Authentication token (Env: OS_AUTH_TOKEN)
--os-auth-url AUTH_URL
Authentication URL (Env: OS_AUTH_URL)
--os-cacert CACERT
Authentication CA Certificate (Env: OS_CACERT)
mistral action-createusage: mistral action-create [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--public]
definition
Create new action.
Positional argumentsdefinition
Action definition file
Optional arguments-h, --help
show this help message and exit
--public
With this flag action will be marked as "public".
mistral action-deleteusage: mistral action-delete [-h] name [name ...]
Delete action.
Positional argumentsname
Name of action(s).
Optional arguments-h, --help
show this help message and exit
mistral action-execution-deleteusage: mistral action-execution-delete [-h] id [id ...]
Delete action execution.
Positional argumentsid
Id of action execution identifier(s).
Optional arguments-h, --help
show this help message and exit
mistral action-execution-getusage: mistral action-execution-get [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
id
Show specific Action execution.
Positional argumentsid
Action execution ID.
Optional arguments-h, --help
show this help message and exit
mistral action-execution-get-inputusage: mistral action-execution-get-input [-h] id
Show Action execution input data.
Positional argumentsid
Action execution ID.
Optional arguments-h, --help
show this help message and exit
mistral action-execution-get-outputusage: mistral action-execution-get-output [-h] id
Show Action execution output data.
Positional argumentsid
Action execution ID.
Optional arguments-h, --help
show this help message and exit
mistral action-execution-listusage: mistral action-execution-list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[task_execution_id]
List all Action executions.
Positional argumentstask_execution_id
Task execution ID.
Optional arguments-h, --help
show this help message and exit
mistral action-execution-updateusage: mistral action-execution-update [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--state {IDLE,RUNNING,SUCCESS,ERROR}]
[--output OUTPUT]
id
Update specific Action execution.
Positional argumentsid
Action execution ID.
Optional arguments-h, --help
show this help message and exit
--state {IDLE,RUNNING,SUCCESS,ERROR}
Action execution state
--output OUTPUT
Action execution output
mistral action-getusage: mistral action-get [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--prefix PREFIX]
name
Show specific action.
Positional argumentsname
Action name
Optional arguments-h, --help
show this help message and exit
mistral action-get-definitionusage: mistral action-get-definition [-h] name
Show action definition.
Positional argumentsname
Action name
Optional arguments-h, --help
show this help message and exit
mistral action-listusage: mistral action-list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List all actions.
Optional arguments-h, --help
show this help message and exit
mistral action-updateusage: mistral action-update [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--public]
definition
Update action.
Positional argumentsdefinition
Action definition file
Optional arguments-h, --help
show this help message and exit
--public
With this flag action will be marked as "public".
mistral cron-trigger-createusage: mistral cron-trigger-create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[--params PARAMS] [--pattern <* * * * *>]
[--first-time <YYYY-MM-DD HH:MM>]
[--count <integer>]
name workflow_name [workflow_input]
Create new trigger.
Positional argumentsname
Cron trigger name
workflow_name
Workflow name
workflow_input
Workflow input
Optional arguments-h, --help
show this help message and exit
--params PARAMS
Workflow params
--pattern <* * * * *>
Cron trigger pattern
--first-time <YYYY-MM-DD HH:MM>
Date and time of the first execution
--count <integer>
Number of wanted executions
mistral cron-trigger-deleteusage: mistral cron-trigger-delete [-h] name [name ...]
Delete trigger.
Positional argumentsname
Name of cron trigger(s).
Optional arguments-h, --help
show this help message and exit
mistral cron-trigger-getusage: mistral cron-trigger-get [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
name
Show specific cron trigger.
Positional argumentsname
Cron trigger name
Optional arguments-h, --help
show this help message and exit
mistral cron-trigger-listusage: mistral cron-trigger-list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
List all cron triggers.
Optional arguments-h, --help
show this help message and exit
mistral environment-createusage: mistral environment-create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
file
Create new environment.
Positional argumentsfile
Environment configuration file in JSON or YAML
Optional arguments-h, --help
show this help message and exit
mistral environment-deleteusage: mistral environment-delete [-h] name [name ...]
Delete environment.
Positional argumentsname
Name of environment(s).
Optional arguments-h, --help
show this help message and exit
mistral environment-getusage: mistral environment-get [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
name
Show specific environment.
Positional argumentsname
Environment name
Optional arguments-h, --help
show this help message and exit
mistral environment-listusage: mistral environment-list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
List all environments.
Optional arguments-h, --help
show this help message and exit
mistral environment-updateusage: mistral environment-update [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
file
Update environment.
Positional argumentsfile
Environment configuration file in JSON or YAML
Optional arguments-h, --help
show this help message and exit
mistral execution-createusage: mistral execution-create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
[-d DESCRIPTION]
workflow_name [workflow_input] [params]
Create new execution.
Positional argumentsworkflow_name
Workflow name
workflow_input
Workflow input
params
Workflow additional parameters
Optional arguments-h, --help
show this help message and exit
-d DESCRIPTION, --description DESCRIPTION
Execution description
mistral execution-deleteusage: mistral execution-delete [-h] id [id ...]
Delete execution.
Positional argumentsid
Id of execution identifier(s).
Optional arguments-h, --help
show this help message and exit
mistral execution-getusage: mistral execution-get [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--noindent]
[--prefix PREFIX]
id
Show specific execution.
Positional argumentsid
Execution identifier
Optional arguments-h, --help
show this help message and exit
mistral execution-get-inputusage: mistral execution-get-input [-h] id
Show execution input data.
Positional argumentsid
Execution ID
Optional arguments-h, --help
show this help message and exit
mistral execution-get-outputusage: mistral execution-get-output [-h] id
Show execution output data.
Positional argumentsid
Execution ID
Optional arguments-h, --help
show this help message and exit
mistral execution-listusage: mistral execution-list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List all executions.
Optional arguments-h, --help
show this help message and exit
mistral execution-updateusage: mistral execution-update [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
(-s {RUNNING,PAUSED,SUCCESS,ERROR} | -d DESCRIPTION)
id
Update execution.
Positional argumentsid
Execution identifier
Optional arguments-h, --help
show this help message and exit
-s {RUNNING,PAUSED,SUCCESS,ERROR}, --state {RUNNING,PAUSED,SUCCESS,ERROR}
Execution state
-d DESCRIPTION, --description DESCRIPTION
Execution description
mistral run-actionusage: mistral run-action [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--prefix PREFIX] [-s] [-t TARGET]
name [input]
Create new Action execution or just run specific action.
Positional argumentsname
Action name to execute.
input
Action input.
Optional arguments-h, --help
show this help message and exit
-s, --save-result
Save the result into DB.
-t TARGET, --target TARGET
Action will be executed on <target> executor.
mistral service-listusage: mistral service-list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List all services.
Optional arguments-h, --help
show this help message and exit
mistral task-getusage: mistral task-get [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent] [--prefix PREFIX]
id
Show specific task.
Positional argumentsid
Task identifier
Optional arguments-h, --help
show this help message and exit
mistral task-get-publishedusage: mistral task-get-published [-h] id
Show task published variables.
Positional argumentsid
Task ID
Optional arguments-h, --help
show this help message and exit
mistral task-get-resultusage: mistral task-get-result [-h] id
Show task output data.
Positional argumentsid
Task ID
Optional arguments-h, --help
show this help message and exit
mistral task-listusage: mistral task-list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[workflow_execution]
List all tasks.
Positional argumentsworkflow_execution
Workflow execution ID associated with list of Tasks.
Optional arguments-h, --help
show this help message and exit
mistral task-rerunusage: mistral task-rerun [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--prefix PREFIX] [--resume]
id
Rerun an existing task.
Positional argumentsid
Task identifier
Optional arguments-h, --help
show this help message and exit
--resume
rerun only failed or unstarted action executions for
with-items task
mistral workbook-createusage: mistral workbook-create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
definition
Create new workbook.
Positional argumentsdefinition
Workbook definition file
Optional arguments-h, --help
show this help message and exit
mistral workbook-deleteusage: mistral workbook-delete [-h] name [name ...]
Delete workbook.
Positional argumentsname
Name of workbook(s).
Optional arguments-h, --help
show this help message and exit
mistral workbook-getusage: mistral workbook-get [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--noindent]
[--prefix PREFIX]
name
Show specific workbook.
Positional argumentsname
Workbook name
Optional arguments-h, --help
show this help message and exit
mistral workbook-get-definitionusage: mistral workbook-get-definition [-h] name
Show workbook definition.
Positional argumentsname
Workbook name
Optional arguments-h, --help
show this help message and exit
mistral workbook-listusage: mistral workbook-list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List all workbooks.
Optional arguments-h, --help
show this help message and exit
mistral workbook-updateusage: mistral workbook-update [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
definition
Update workbook.
Positional argumentsdefinition
Workbook definition file
Optional arguments-h, --help
show this help message and exit
mistral workbook-validateusage: mistral workbook-validate [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
definition
Validate workbook.
Positional argumentsdefinition
Workbook definition file
Optional arguments-h, --help
show this help message and exit
mistral workflow-createusage: mistral workflow-create [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--public]
definition
Create new workflow.
Positional argumentsdefinition
Workflow definition file
Optional arguments-h, --help
show this help message and exit
--public
With this flag workflow will be marked as "public".
mistral workflow-deleteusage: mistral workflow-delete [-h] name [name ...]
Delete workflow.
Positional argumentsname
Name of workflow(s).
Optional arguments-h, --help
show this help message and exit
mistral workflow-getusage: mistral workflow-get [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--noindent]
[--prefix PREFIX]
name
Show specific workflow.
Positional argumentsname
Workflow name
Optional arguments-h, --help
show this help message and exit
mistral workflow-get-definitionusage: mistral workflow-get-definition [-h] name
Show workflow definition.
Positional argumentsname
Workflow name
Optional arguments-h, --help
show this help message and exit
mistral workflow-listusage: mistral workflow-list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
List all workflows.
Optional arguments-h, --help
show this help message and exit
mistral workflow-updateusage: mistral workflow-update [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--public]
definition
Update workflow.
Positional argumentsdefinition
Workflow definition
Optional arguments-h, --help
show this help message and exit
--public
With this flag workflow will be marked as "public".
mistral workflow-validateusage: mistral workflow-validate [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent] [--prefix PREFIX]
definition
Validate workflow.
Positional argumentsdefinition
Workflow definition file
Optional arguments-h, --help
show this help message and exit