Skip to main content

runner_teams

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

Overview

Namerunner_teams
TypeResource
Idpagerduty.automation_actions.runner_teams

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
html_urlstring (url)a URL at which the entity is uniquely displayed in the Web app
selfstring (url)the API show URL at which the object is accessible
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.
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
getselectid, team_idGets the details of a runner / team relation
listselectidGets all team references associated with a runner
createinsertid, teamAssociate a runner with a team<br />
deletedeleteid, team_idDisassociates a runner from a team<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.
team_idstringThe team ID

SELECT examples

Gets the details of a runner / team relation

SELECT
id,
html_url,
self,
summary,
type
FROM pagerduty.automation_actions.runner_teams
WHERE id = '{{ id }}' -- required
AND team_id = '{{ team_id }}' -- required
;

INSERT examples

Associate a runner with a team<br />

INSERT INTO pagerduty.automation_actions.runner_teams (
team,
id
)
SELECT
'{{ team }}' /* required */,
'{{ id }}'
RETURNING
team
;

DELETE examples

Disassociates a runner from a team<br />

DELETE FROM pagerduty.automation_actions.runner_teams
WHERE id = '{{ id }}' --required
AND team_id = '{{ team_id }}' --required
;