Ask Your Question
0

Can you associate a mistral workflow execution with an environment via the CLI?

asked 2017-04-19 13:04:13 -0500

mattybrennan gravatar image

I can create an environment, and I can create a workflow execution. But I don't see any way via the CLI to associate a workflow or a workflow execution with an environment

usage: mistral environment-create [-h] [-f {json,shell,table,value,yaml}]
                              [-c COLUMN] [--max-width <integer>]
                              [--print-empty] [--noindent]
                              [--prefix PREFIX]
                              file

-

usage: mistral workflow-create [-h] [-f {csv,json,table,value,yaml}]
                           [-c COLUMN] [--max-width <integer>]
                           [--print-empty] [--noindent]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--public]
                           definition

-

usage: mistral execution-create [-h] [-f {json,shell,table,value,yaml}]
                            [-c COLUMN] [--max-width <integer>]
                            [--print-empty] [--noindent] [--prefix PREFIX]
                            [-d DESCRIPTION]
                            workflow_identifier [workflow_input] [params]
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-20 07:52:20 -0500

zaneb gravatar image

When you define an environment inline, you pass it with the "env" key as part of the [params] argument (which is in JSON format IIUC). I'm not sure how that applies to predefined environments created through the API though.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-04-19 13:04:13 -0500

Seen: 16 times

Last updated: Apr 20