actions_teams
Creates, updates, deletes, gets or lists an actions_teams
resource.
Overview
Name | actions_teams |
Type | Resource |
Id | pagerduty.automation_actions.actions_teams |
Fields
The following fields are returned by SELECT
queries:
- get_automation_actions_action_team_association
- get_automation_actions_action_team_associations
Name | Datatype | Description |
---|---|---|
id | string | |
html_url | string (url) | a URL at which the entity is uniquely displayed in the Web app |
self | string (url) | the API show URL at which the object is accessible |
summary | string | A 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. |
type | string |
Name | Datatype | Description |
---|---|---|
id | string | |
html_url | string (url) | a URL at which the entity is uniquely displayed in the Web app |
self | string (url) | the API show URL at which the object is accessible |
summary | string | A 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. |
type | string |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_automation_actions_action_team_association | select | id , team_id | Accept , Content-Type | Gets the details of an Automation Action / team relation |
get_automation_actions_action_team_associations | select | id | Accept , Content-Type | Gets all team references associated with an Automation Action |
create_automation_action_team_association | insert | id , data__team | Accept , Content-Type | Associate an Automation Action with a team |
delete_automation_action_team_association | delete | id , team_id | Accept , Content-Type | Disassociate an Automation Action from a team |
_get_automation_actions_action_team_associations | exec | id | Accept , Content-Type | Gets all team references associated with an Automation Action |
_get_automation_actions_action_team_association | exec | id , team_id | Accept , Content-Type | Gets 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.
Name | Datatype | Description |
---|---|---|
id | string | The ID of the resource. |
team_id | string | The team ID |
Accept | string | The Accept header is used as a versioning header. |
Content-Type | string |
SELECT
examples
- get_automation_actions_action_team_association
- get_automation_actions_action_team_associations
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 }}'
;
Gets all team references associated with an Automation Action
SELECT
id,
html_url,
self,
summary,
type
FROM pagerduty.automation_actions.actions_teams
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;
INSERT
examples
- create_automation_action_team_association
- Manifest
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
;
# Description fields are for documentation purposes
- name: actions_teams
props:
- name: id
value: string
description: Required parameter for the actions_teams resource.
- name: team
value: object
- name: Accept
value: string
description: The `Accept` header is used as a versioning header.
- name: Content-Type
value: string
DELETE
examples
- delete_automation_action_team_association
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
- _get_automation_actions_action_team_associations
- _get_automation_actions_action_team_association
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 }}'
;
Gets the details of an Automation Action / team relation
EXEC pagerduty.automation_actions.actions_teams._get_automation_actions_action_team_association
@id='{{ id }}' --required,
@team_id='{{ team_id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
;