pagerduty update-event-rule
Update a event rule
Description
Update a event rule
Synopsis
pagerduty update-event-rule
--site <site>
--id <id>
[--disabled]
[--position <position>]
--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
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
Examples
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 | |
Namespace | |
Object Type | "rule" |
Object ID | id |
Please see Access Control for details.