Skip to content

pagerduty get-event-rule

Get a rulesets

Description

Get a Rulesets

Synopsis

pagerduty get-event-rule
    --site <site>
    --id <id>
    --rule_id <rule_id>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: required

id - (string)

     The ID of the resource.
     Example: --id "id-1"
     Default: _None_      Attributes: required

rule_id - (string)

     The id of the Event Rule to retrieve.
     Example: --rule_id "rule_id-1"
     Default: _None_      Attributes: required

Examples

pagerduty get-event-rule --id "id-1" --rule_id "rule_id-1"

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "pagerduty"
Service Instance
Namespace
Object Type "rules"
Object ID id

Please see Access Control for details.