Skip to main content

actions_teams

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

Overview

Nameactions_teams
TypeResource
Idpagerduty.automation_actions.actions_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_action_team_associationselectid, team_idAccept, Content-TypeGets the details of an Automation Action / team relation
get_automation_actions_action_team_associationsselectidAccept, Content-TypeGets all team references associated with an Automation Action
create_automation_action_team_associationinsertid, data__teamAccept, Content-TypeAssociate an Automation Action with a team
delete_automation_action_team_associationdeleteid, team_idAccept, Content-TypeDisassociate an Automation Action from a team
_get_automation_actions_action_team_associationsexecidAccept, Content-TypeGets all team references associated with an Automation Action
_get_automation_actions_action_team_associationexecid, team_idAccept, Content-TypeGets the details of an Automation Action / 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 an Automation Action / team relation

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

INSERT examples

Associate an Automation Action with a team

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

DELETE examples

Disassociate an Automation Action from a team

DELETE FROM pagerduty.automation_actions.actions_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 an Automation Action

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