Skip to content

pagerduty list-ruleset

List rulesets

Description

List Rulesets

Synopsis

pagerduty list-ruleset
    --site <site>
    [--limit <limit>]
    [--offset <offset>]

Arguments

site - (string)

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

limit - (int)

     The number of results per page.
     Example: --limit 10
     Default: 25      Attributes: optional

offset - (int)

     Offset to start pagination search results.
     Example: --offset 10
     Default: _None_      Attributes: optional

Examples

Input:

x = !pagerduty create-ruleset --name "testRuleset"
Output:
{
  "limit": 25,
  "more": false,
  "offset": 0,
  "rulesets": [
    {
      "created_at": "2022-11-14T10:28:34Z",
      "creator": null,
      "id": "ae514d98-36f2-48c3-be3e-ce553390487b",
      "name": "testRuleset1",
      "routing_keys": ["R02AAFR8R91BFKPEE2PNG5OFF0J18KC7"],
      "self": "https://api.pagerduty.com/rulesets/ae514d98-36f2-48c3-be3e-ce553390487b",
      "team": null,
      "type": "global",
      "updated_at": "2022-11-14T10:28:34Z",
      "updater": null
    }
  ],
  "total": 2
}
Input:
!pagerduty list-ruleset
Output:
ID                                      NAME            TEAM    CREATOR UPDATER 
ae514d98-36f2-48c3-be3e-ce553390487b    testRuleset1    -       -       -      
c5395c19-e840-4c50-89f6-040ac651f24e    testRuleset     -       -       -      

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

Please see Access Control for details.