Use this data source to get information about a specific automation actions action.
data "pagerduty_automation_actions_action" "example" {
id = "01CS1685B2UDM4I3XUUOXPPORM"
}
The following arguments are supported:
id
- (Required) The id of the automation actions action in the PagerDuty API.The following attributes are exported:
id
- The ID of the action.name
- The name of the action.type
- The type of object. The value returned will be action
.action_type
- The type of the action. The only allowed values are process_automation
and script
. creation_time
- The time action was created. Represented as an ISO 8601 timestamp.action_data_reference
- Action Data block. Action Data is documented below.description
- (Optional) The description of the action.runner_id
- (Optional) The Process Automation Actions runner to associate the action with. runner_type
- (Optional) The type of the runner associated with the action.action_classification
- (Optional) The category of the action. The only allowed values are diagnostic
and remediation
. modify_time
- (Optional) The last time action has been modified. Represented as an ISO 8601 timestamp.Action Data (action_data_reference
) supports the following:
process_automation_job_id
- (Required for process_automation
action_type) The ID of the Process Automation job to execute.process_automation_job_arguments
- (Optional) The arguments to pass to the Process Automation job execution.process_automation_node_filter
- (Optional) The expression that filters on which nodes a Process Automation Job executes Learn more.script
- (Required for script
action_type) Body of the script to be executed on the Runner. Max length is 16777215 characters.invocation_command
- (Optional) The command to execute the script with.