action_services
Creates, updates, deletes, gets or lists an action_services resource.
Overview
| Name | action_services |
| Type | Resource |
| Id | pagerduty.automation_actions.action_services |
Fields
The following fields are returned by SELECT queries:
- get
- list
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 | A 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. |
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 | A 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, service_id | Gets the details of a Automation Action / service relation | |
list | select | id | Gets all service references associated with an Automation Action | |
create | insert | id, service | Associate an Automation Action with a service<br /> | |
delete | delete | id, service_id | Disassociate an Automation Action from a service<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.
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the resource. |
service_id | string | The service ID |
SELECT examples
- get
- list
Gets the details of a Automation Action / service relation
SELECT
id,
html_url,
self,
summary,
type
FROM pagerduty.automation_actions.action_services
WHERE id = '{{ id }}' -- required
AND service_id = '{{ service_id }}' -- required
;
Gets all service references associated with an Automation Action
SELECT
id,
html_url,
self,
summary,
type
FROM pagerduty.automation_actions.action_services
WHERE id = '{{ id }}' -- required
;
INSERT examples
- create
- Manifest
Associate an Automation Action with a service<br />
INSERT INTO pagerduty.automation_actions.action_services (
service,
id
)
SELECT
'{{ service }}' /* required */,
'{{ id }}'
RETURNING
service
;
# Description fields are for documentation purposes
- name: action_services
props:
- name: id
value: "{{ id }}"
description: Required parameter for the action_services resource.
- name: service
description: |
(opaque JSON object)
value:
id: "{{ id }}"
summary: "{{ summary }}"
type: "{{ type }}"
self: "{{ self }}"
html_url: "{{ html_url }}"
DELETE examples
- delete
Disassociate an Automation Action from a service<br />
DELETE FROM pagerduty.automation_actions.action_services
WHERE id = '{{ id }}' --required
AND service_id = '{{ service_id }}' --required
;