Skip to content

pagerduty create-event-rule

Create rulesets

Description

Create Rulesets

Synopsis

pagerduty create-event-rule
    --site <site>
    --id <id>
    --disabled

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)

     set the Event Rule is disabled.
     Example: --disabled
     Default: _None_      Attributes: required

Examples

pagerduty create-event-rule --id "id-1" --disabled

Access Control

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

Field Value
Action "create"
Service Type "pagerduty"
Service Instance
Namespace
Object Type "rule"
Object ID

Please see Access Control for details.