Skip to main content

actions

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

Overview

Nameactions
TypeResource
Idpagerduty.incident_workflows.actions

Fields

The following fields are returned by SELECT queries:

An Incident Workflow Action

NameDatatypeDescription
idstring
namestringThe descriptive name of the Action
created_by_user_idstringThe obfuscated Id of the User who created this Action
domain_namestringThe Verified Domain of the account that created the action
function_namestringThe Function Name describing the specific functionality of the Action
package_namestringThe Package Name corresponding to the broad category of the Action
action_typestringThe type of Action
created_atstring (date-time)The date-time at which this Action was created
descriptionstringA description of the Action
html_urlstring (url)a URL at which the entity is uniquely displayed in the Web app
inputsarrayInputs whose values used during Action execution
metadatastringJSON-formatted string of metadata pertaining to the Action
outputsarrayOutputs whose values set during Action execution
search_keywordsarrayA set of search keywords to apply to this action.
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.
tagsarrayA set of tags to apply to this action.
trigger_typestringThe type of Trigger this Action is, if action_type is trigger
typestring
versionnumberThe version of the Action

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_workflow_actionselectidAccept, Content-TypeGet an Incident Workflow Action

Scoped OAuth requires: incident_workflows.read
list_incident_workflow_actionsselectAccept, Content-Type, limit, cursor, keywordList Incident Workflow Actions

Scoped OAuth requires: incident_workflows.read
_list_incident_workflow_actionsexecAccept, Content-Type, limit, cursor, keywordList Incident Workflow Actions

Scoped OAuth requires: incident_workflows.read
_get_incident_workflow_actionexecidAccept, Content-TypeGet an Incident Workflow Action

Scoped OAuth requires: incident_workflows.read

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.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring
cursorstringOptional parameter used to request the "next" set of results from an API. The value provided here is most commonly obtained from the next_cursor field of the previous request. When no value is provided, the request starts at the beginning of the result set.
keywordstringIf provided, only show actions tagged with the specified keyword
limitintegerThe minimum of the limit parameter used in the request or the maximum request size of the API.

SELECT examples

Get an Incident Workflow Action

Scoped OAuth requires: incident_workflows.read

SELECT
id,
name,
created_by_user_id,
domain_name,
function_name,
package_name,
action_type,
created_at,
description,
html_url,
inputs,
metadata,
outputs,
search_keywords,
self,
summary,
tags,
trigger_type,
type,
version
FROM pagerduty.incident_workflows.actions
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

Lifecycle Methods

List Incident Workflow Actions

Scoped OAuth requires: incident_workflows.read

EXEC pagerduty.incident_workflows.actions._list_incident_workflow_actions 
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}',
@limit='{{ limit }}',
@cursor='{{ cursor }}',
@keyword='{{ keyword }}'
;