April 2020
Intermediate to advanced
482 pages
15h 16m
English
In order to list and launch a specific job template or a workflow template, we can use the name of the template in the API call instead of using the id field. For example, the API call to launch the provision_interfaces job template in our sample is shown in the following code snippet:
$ curl -X POST --user admin:password http://172.20.100.110/api/v2/job_templates/provision_interfaces/launch/ -s | jq{ "job": 3, "ignored_fields": {}, "id": 3, "type": "job",< --- Output Omitted -- > "launch_type": "manual", "status": "pending",< --- Output Omitted -- >}
The same process can be followed to invoke a workflow template, using its name as the parameter.
Read now
Unlock full access