Skip to main content

runners_teams

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

Overview

Namerunners_teams
TypeResource
Idpagerduty.automation_actions.runners_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.
typestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_automation_actions_runner_team_associationselectid, team_idAccept, Content-TypeGets the details of a runner / team relation
get_automation_actions_runner_team_associationsselectidAccept, Content-TypeGets all team references associated with a runner
create_automation_actions_runner_team_associationinsertid, data__teamAccept, Content-TypeAssociate a runner with a team
delete_automation_actions_runner_team_associationdeleteid, team_idAccept, Content-TypeDisassociates a runner from a team
_get_automation_actions_runner_team_associationsexecidAccept, Content-TypeGets all team references associated with a runner
_get_automation_actions_runner_team_associationexecid, team_idAccept, Content-TypeGets the details of a runner / team relation

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

SELECT examples

Gets the details of a runner / team relation

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

INSERT examples

Associate a runner with a team

INSERT INTO pagerduty.automation_actions.runners_teams (
data__team,
id,
Accept,
Content-Type
)
SELECT
'{{ team }}' /* required */,
'{{ id }}',
'{{ Accept }}',
'{{ Content-Type }}'
RETURNING
team
;

DELETE examples

Disassociates a runner from a team

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

Lifecycle Methods

Gets all team references associated with a runner

EXEC pagerduty.automation_actions.runners_teams._get_automation_actions_runner_team_associations 
@id='{{ id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
;