Skip to content

pagerduty update-event-rule

Update a event rule


Update a event rule


pagerduty update-event-rule
    --site <site>
    --id <id>
    [--position <position>]
    --rule_id <rule_id>


site - (string)

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

id - (string)

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

disabled - (bool)

     Is Event Rule disabled
     Example: --disabled
     Default: true      Attributes: optional

position - (int)

     index of the Event Rule in the Ruleset
     Example: --position 1
     Default: _None_      Attributes: optional

rule_id - (string)

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


pagerduty update-event-rule --id "id-1" --position 1 --rule_id "rule_id-1"

Access Control

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

Field Value
Action "update"
Service Type "pagerduty"
Service Instance
Object Type "rule"
Object ID id

Please see Access Control for details.