Skip to main content

runners

Creates, updates, deletes, gets or lists a runners resource.

Overview

Namerunners
TypeResource
Idpagerduty.automation_actions.runners

Fields

The following fields are returned by SELECT queries:

Runner information

NameDatatypeDescription
idstring
namestring (example: us-west-2 prod runner)
associated_actionsobjectReferences to at most 3 actions associated with the Runner. Use appropriate endpoints to retrieve the full list of associated actions.
creation_timestring (date-time)
descriptionstring (example: us-west-2 runner provisioned in the production environment by the SRE team)
html_urlstring (url)a URL at which the entity is uniquely displayed in the Web app
last_seenstring (date-time)
metadatastringAdditional metadata (opaque JSON object)
privilegesobject
runbook_base_uristringThe base URI of the Runbook server to connect to. May only contain alphanumeric characters, periods, underscores and dashes. Specified as the subdomain portion of an RBA host, as in <runbook_base_uri>.runbook.pagerduty.cloud (example: subdomain)
runner_typestringsidecar -- The runner is backed by an external sidecar that polls for invocations. runbook -- The runner communicates directly with a runbook instance. (sidecar, runbook) (example: runbook)
selfstring (url)the API show URL at which the object is accessible
statusstringConfigured -- Runner has connected to the backend at least once NotConfigured -- Runner has never connected to backend (Configured, NotConfigured) (example: Configured)
summarystringA short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to name, though it is not intended to be an identifier.
teamsarrayThe list of teams associated with the Runner
typestringA string that determines the schema of the object. This must be the standard name for the entity, suffixed by _reference if the object is a reference.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet an Automation Action runner<br />
listselectlimit, cursor, name, include[]Lists Automation Action runners matching provided query params.<br />The returned records are sorted by runner name in alphabetical order.<br /><br />See [Cursor-based pagination](https:​//developer.pagerduty.com/docs/rest-api-v2/pagination/) for instructions on how to paginate through the result set.<br />
createinsertrunnerCreate a Process Automation or a Runbook Automation runner.<br />
updateupdateid, runnerUpdate an Automation Action runner<br />
deletedeleteidDelete an Automation Action runner<br />

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the resource.
cursorstringOptional parameter used to request the "next" set of results from an API. The value provided here is most commonly obtained from the next_cursor field of the previous request. When no value is provided, the request starts at the beginning of the result set.
include[]arrayIncludes additional data elements into the response
limitintegerThe minimum of the limit parameter used in the request or the maximum request size of the API.
namestringFilters results to include the ones matching the name (case insensitive substring matching)

SELECT examples

Get an Automation Action runner<br />

SELECT
id,
name,
associated_actions,
creation_time,
description,
html_url,
last_seen,
metadata,
privileges,
runbook_base_uri,
runner_type,
self,
status,
summary,
teams,
type
FROM pagerduty.automation_actions.runners
WHERE id = '{{ id }}' -- required
;

INSERT examples

Create a Process Automation or a Runbook Automation runner.<br />

INSERT INTO pagerduty.automation_actions.runners (
runner
)
SELECT
'{{ runner }}' /* required */
RETURNING
runner
;

UPDATE examples

Update an Automation Action runner<br />

UPDATE pagerduty.automation_actions.runners
SET
runner = '{{ runner }}'
WHERE
id = '{{ id }}' --required
AND runner = '{{ runner }}' --required
RETURNING
runner;

DELETE examples

Delete an Automation Action runner<br />

DELETE FROM pagerduty.automation_actions.runners
WHERE id = '{{ id }}' --required
;