Launch a Workflow Job Template
/api/v2/workflow_job_templates/{id}/launch/
Make a GET request to this resource to determine if the workflow_job_template can be launched and whether any passwords are required to launch the workflow_job_template. The response will include the following fields:
can_start_without_user_input: Flag indicating if the workflow_job_template can be launched without user-input (boolean, read-only)variables_needed_to_start: Required variable names required to launch the workflow_job_template (array, read-only)survey_enabled: Flag indicating whether the workflow_job_template has an enabled survey (boolean, read-only)extra_vars: Text which is theextra_varsfield of this workflow_job_template (text, read-only)node_templates_missing: List of node ids of all nodes that have a nullunified_job_template, which will cause their branches to stop execution (list, read-only)node_prompts_rejected: List of node ids of all nodes that have specified a field that will be rejected because itsunified_job_templatedoes not allow prompting for this field, this will not halt execution of the branch but the field will be ignored (list, read-only)workflow_job_template_data: JSON object listing general information of this workflow_job_template (JSON object, read-only)
Make a POST request to this resource to launch the workflow_job_template. If any credential, inventory, project or extra variables (extra_vars) are required, they must be passed via POST data, with extra_vars given as a YAML or JSON string and escaped parentheses.
If successful, the response status code will be 201. If any required passwords are not provided, a 400 status code will be returned. If the workflow job cannot be launched, a 405 status code will be returned. If the provided credential or inventory are not allowed to be used by the user, then a 403 status code will be returned.
Request
- application/json
Response
- application/json
200 Response
object-
ask_inventory_on_launch:
boolean
Title:
Ask inventory on launchRead Only:true -
ask_labels_on_launch:
boolean
Title:
Ask labels on launchRead Only:true -
ask_limit_on_launch:
boolean
Title:
Ask limit on launchRead Only:true -
ask_scm_branch_on_launch:
boolean
Title:
Ask scm branch on launchRead Only:true -
ask_skip_tags_on_launch:
boolean
Title:
Ask skip tags on launchRead Only:true -
ask_tags_on_launch:
boolean
Title:
Ask tags on launchRead Only:true -
ask_variables_on_launch:
boolean
Title:
Ask variables on launchRead Only:true -
can_start_without_user_input:
boolean
Title:
Can start without user inputRead Only:true -
defaults:
string
Title:
DefaultsRead Only:true -
extra_vars:
string
Title:
Extra vars -
inventory:
integer
Title:
Inventory -
job_tags:
string
Title:
Job tags -
labels:
array labels
Unique Items Required:
true -
limit:
string
Title:
Limit -
node_prompts_rejected:
string
Title:
Node prompts rejectedRead Only:true -
node_templates_missing:
string
Title:
Node templates missingRead Only:true -
scm_branch:
string
Title:
Scm branch -
skip_tags:
string
Title:
Skip tags -
survey_enabled:
string
Title:
Survey enabledRead Only:true -
variables_needed_to_start:
string
Title:
Variables needed to startRead Only:true -
workflow_job_template_data:
string
Title:
Workflow job template dataRead Only:true