Skip to main content

action_teams

Creates, updates, deletes, gets or lists an action_teams resource.

Overview

Nameaction_teams
TypeResource
Idpagerduty.automation_actions.action_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 an Automation Action / team relation
listselectidGets all team references associated with an Automation Action
createinsertid, teamAssociate an Automation Action with a team<br />
deletedeleteid, team_idDisassociate an Automation Action 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 an Automation Action / team relation

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

INSERT examples

Associate an Automation Action with a team<br />

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

DELETE examples

Disassociate an Automation Action from a team<br />

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