actions_services
Creates, updates, deletes, gets or lists an actions_services
resource.
Overview
Name | actions_services |
Type | Resource |
Id | pagerduty.automation_actions.actions_services |
Fields
The following fields are returned by SELECT
queries:
- get_automation_actions_action_service_association
- get_automation_actions_action_service_associations
Service reference
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 |
An array of service references
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_service_association | select | id , service_id | Accept , Content-Type | Gets the details of a Automation Action / service relation |
get_automation_actions_action_service_associations | select | id | Accept , Content-Type | Gets all service references associated with an Automation Action |
create_automation_action_service_assocation | insert | id , data__service | Accept , Content-Type | Associate an Automation Action with a service |
delete_automation_action_service_association | delete | id , service_id | Accept , Content-Type | Disassociate an Automation Action from a service |
_get_automation_actions_action_service_associations | exec | id | Accept , Content-Type | Gets all service references associated with an Automation Action |
_get_automation_actions_action_service_association | exec | id , service_id | Accept , Content-Type | Gets the details of a Automation Action / service 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. |
service_id | string | The service ID |
Accept | string | The Accept header is used as a versioning header. |
Content-Type | string |
SELECT
examples
- get_automation_actions_action_service_association
- get_automation_actions_action_service_associations
Gets the details of a Automation Action / service relation
SELECT
id,
html_url,
self,
summary,
type
FROM pagerduty.automation_actions.actions_services
WHERE id = '{{ id }}' -- required
AND service_id = '{{ service_id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;
Gets all service references associated with an Automation Action
SELECT
id,
html_url,
self,
summary,
type
FROM pagerduty.automation_actions.actions_services
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;
INSERT
examples
- create_automation_action_service_assocation
- Manifest
Associate an Automation Action with a service
INSERT INTO pagerduty.automation_actions.actions_services (
data__service,
id,
Accept,
Content-Type
)
SELECT
'{{ service }}' /* required */,
'{{ id }}',
'{{ Accept }}',
'{{ Content-Type }}'
RETURNING
service
;
# Description fields are for documentation purposes
- name: actions_services
props:
- name: id
value: string
description: Required parameter for the actions_services resource.
- name: service
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_service_association
Disassociate an Automation Action from a service
DELETE FROM pagerduty.automation_actions.actions_services
WHERE id = '{{ id }}' --required
AND service_id = '{{ service_id }}' --required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;
Lifecycle Methods
- _get_automation_actions_action_service_associations
- _get_automation_actions_action_service_association
Gets all service references associated with an Automation Action
EXEC pagerduty.automation_actions.actions_services._get_automation_actions_action_service_associations
@id='{{ id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
;
Gets the details of a Automation Action / service relation
EXEC pagerduty.automation_actions.actions_services._get_automation_actions_action_service_association
@id='{{ id }}' --required,
@service_id='{{ service_id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
;