Retrieve a Workflow Job Template
get
/api/v2/workflow_job_templates/{id}/
Make GET request to this resource to retrieve a single workflow job template record containing the following fields:
id: Database ID for this workflow job template. (integer)type: Data type for this workflow job template. (choice)url: URL for this workflow job template. (string)related: Data structure with URLs of related resources. (object)summary_fields: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)created: Timestamp when this workflow job template was created. (datetime)modified: Timestamp when this workflow job template was last modified. (datetime)name: Name of this workflow job template. (string)description: Optional description of this workflow job template. (string)last_job_run: (datetime)last_job_failed: (boolean)next_job_run: (datetime)status: (choice)new: Newpending: Pendingwaiting: Waitingrunning: Runningsuccessful: Successfulfailed: Failederror: Errorcanceled: Cancelednever updated: Never Updatedok: OKmissing: Missingnone: No External Sourceupdating: Updating
extra_vars: (json)organization: The organization used to determine access to this template. (id)survey_enabled: (boolean)allow_simultaneous: (boolean)ask_variables_on_launch: (boolean)inventory: Inventory applied as a prompt, assuming job template prompts for inventory (id)limit: (string)scm_branch: (string)ask_inventory_on_launch: (boolean)ask_scm_branch_on_launch: (boolean)ask_limit_on_launch: (boolean)webhook_service: Service that webhook requests will be accepted from (choice)"": ---------github: GitHubgitlab: GitLabbitbucket_dc: BitBucket DataCenter
webhook_credential: Personal Access Token for posting back the status to the service API (id)ask_labels_on_launch: (boolean)ask_skip_tags_on_launch: (boolean)ask_tags_on_launch: (boolean)skip_tags: (string)job_tags: (string)
Request
Supported Media Types
- application/json
Path Parameters
Back to Top
Response
Supported Media Types
- application/json
200 Response
Root Schema : WorkflowJobTemplate
Type:
Show Source
object-
allow_simultaneous:
boolean
Title:
Allow simultaneous -
ask_inventory_on_launch:
boolean
Title:
Ask inventory on launch -
ask_labels_on_launch:
boolean
Title:
Ask labels on launch -
ask_limit_on_launch:
boolean
Title:
Ask limit on launch -
ask_scm_branch_on_launch:
boolean
Title:
Ask scm branch on launch -
ask_skip_tags_on_launch:
boolean
Title:
Ask skip tags on launch -
ask_tags_on_launch:
boolean
Title:
Ask tags on launch -
ask_variables_on_launch:
boolean
Title:
Ask variables on launch -
created:
string
Title:
CreatedRead Only:true -
description:
string
Title:
Description -
extra_vars:
string
Title:
Extra vars -
id:
integer
Title:
IDRead Only:true -
inventory:
integer
Title:
InventoryInventory applied as a prompt, assuming job template prompts for inventory -
job_tags:
string
Title:
Job tags -
last_job_failed:
boolean
Title:
Last job failedRead Only:true -
last_job_run:
string(date-time)
Title:
Last job runRead Only:true -
limit:
string
Title:
Limit -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
next_job_run:
string(date-time)
Title:
Next job runRead Only:true -
organization:
integer
Title:
OrganizationThe organization used to determine access to this template. - related: string
-
scm_branch:
string
Title:
Scm branch -
skip_tags:
string
Title:
Skip tags -
status:
string
Title:
StatusRead Only:trueAllowed Values:[ "new", "pending", "waiting", "running", "successful", "failed", "error", "canceled", "never updated", "ok", "missing", "none", "updating" ] -
summary_fields:
string
Title:
Summary fieldsRead Only:true -
survey_enabled:
boolean
Title:
Survey enabled -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true -
webhook_credential:
integer
Title:
Webhook credentialPersonal Access Token for posting back the status to the service API -
webhook_service:
string
Title:
Webhook serviceAllowed Values:[ "github", "gitlab", "bitbucket_dc" ]Service that webhook requests will be accepted from