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)
metadataobjectAdditional metadata
privilegesobject
runbook_base_uristringThe base URI of the Runbook server to connect to. May only contain alphanumeric characters, periods, underscores and dashes. (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. (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 (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
get_automation_actions_runnerselectidAccept, Content-TypeGet an Automation Action runner
get_automation_actions_runnersselectAccept, Content-Type, limit, cursor, name, include[]Lists Automation Action runners matching provided query params.
The returned records are sorted by runner name in alphabetical order.

See Cursor-based pagination for instructions on how to paginate through the result set.
create_automation_actions_runnerinsertdata__runnerAccept, Content-TypeCreate a Process Automation or a Runbook Automation runner.
delete_automation_actions_runnerdeleteidAccept, Content-TypeDelete an Automation Action runner
_get_automation_actions_runnersexecAccept, Content-Type, limit, cursor, name, include[]Lists Automation Action runners matching provided query params.
The returned records are sorted by runner name in alphabetical order.

See Cursor-based pagination for instructions on how to paginate through the result set.
_get_automation_actions_runnerexecidAccept, Content-TypeGet an Automation Action runner
update_automation_actions_runnerexecid, runnerAccept, Content-TypeUpdate an Automation Action runner

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.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring
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

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
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

INSERT examples

Create a Process Automation or a Runbook Automation runner.

INSERT INTO pagerduty.automation_actions.runners (
data__runner,
Accept,
Content-Type
)
SELECT
'{{ runner }}' /* required */,
'{{ Accept }}',
'{{ Content-Type }}'
RETURNING
runner
;

DELETE examples

Delete an Automation Action runner

DELETE FROM pagerduty.automation_actions.runners
WHERE id = '{{ id }}' --required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

Lifecycle Methods

Lists Automation Action runners matching provided query params.
The returned records are sorted by runner name in alphabetical order.

See Cursor-based pagination for instructions on how to paginate through the result set.

EXEC pagerduty.automation_actions.runners._get_automation_actions_runners 
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}',
@limit='{{ limit }}',
@cursor='{{ cursor }}',
@name='{{ name }}',
@include[]='{{ include[] }}'
;