Skip to content

pagerduty get-ruleset

Get a rulesets

Description

Get a Rulesets

Synopsis

pagerduty get-ruleset
    --site <site>
    --id <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

Examples

Input:

x = !pagerduty create-ruleset --name "testRuleset"
Output:
{
  "ruleset": {
    "created_at": "2022-11-14T10:10:00Z",
    "creator": null,
    "id": "c5395c19-e840-4c50-89f6-040ac651f24e",
    "name": "testRuleset",
    "routing_keys": ["R0274VPG9G77QAUEKEXQUEVMV1ACVK13"],
    "self": "https://api.pagerduty.com/rulesets/c5395c19-e840-4c50-89f6-040ac651f24e",
    "team": null,
    "type": "global",
    "updated_at": "2022-11-14T10:10:00Z",
    "updater": null
  }
}

Access Control

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

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

Please see Access Control for details.