mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
More documentation and validation for job relaunching/template launching
This commit is contained in:
3
awx/api/templates/api/job_relaunch.md
Normal file
3
awx/api/templates/api/job_relaunch.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Relaunch a job:
|
||||||
|
|
||||||
|
Make a POST request to this resource to launch a job. If any passwords or variables are required then they should be passed in via POST data. In order to determine what values are required in order to launch a job based on this job template you may make a GET request to this endpoint.
|
||||||
3
awx/api/templates/api/job_template_launch.md
Normal file
3
awx/api/templates/api/job_template_launch.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Launch a Job Template:
|
||||||
|
|
||||||
|
Make a POST request to this resource to launch a job. If any passwords or variables are required then they should be passed in via POST data. In order to determine what values are required in order to launch a job based on this job template you may make a GET request to this endpoint.
|
||||||
@@ -1468,6 +1468,8 @@ class JobTemplateSurveySpec(GenericAPIView):
|
|||||||
return Response(dict(error="'question_description' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
return Response(dict(error="'question_description' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||||
if "variable" not in survey_item:
|
if "variable" not in survey_item:
|
||||||
return Response(dict(error="'variable' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
return Response(dict(error="'variable' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||||
|
if "required" not in survey_item:
|
||||||
|
return Response(dict(error="'required' missing from survey element %s" % str(idx)), status=status.HTTP_400_BAD_REQUEST)
|
||||||
idx += 1
|
idx += 1
|
||||||
obj.save()
|
obj.save()
|
||||||
return Response()
|
return Response()
|
||||||
|
|||||||
Reference in New Issue
Block a user