Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix url for launch a job template #2686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Assuming that your Job Template ID is '1', your controller IP is 192.168.42.100,
----
curl -f -k -H 'Content-Type: application/json' -XPOST \
--user admin:awxsecret \
ht p://192.168.42.100/api/v2/job_templates/1/launch/
https://192.168.42.100/api/v2/job_templates/1/launch/
----

This returns a JSON object that you can parse and use to extract the 'id' field, which is the ID of the newly created job.
Expand All @@ -22,7 +22,7 @@ You can also pass extra variables to the Job Template call, as in the following
----
curl -f -k -H 'Content-Type: application/json' -XPOST \
-d '{"extra_vars": "{\"foo\": \"bar\"}"}' \
--user admin:awxsecret http://192.168.42.100/api/v2/job_templates/1/launch/
--user admin:awxsecret https://192.168.42.100/api/v2/job_templates/1/launch/
----

//You can view the live API documentation by logging into http://192.168.42.100/api/ and browsing around to the various objects available.
Expand Down