Skip to content

pagerduty update-incidents

Update incident

Description

Update a PagerDuty incident

Synopsis

pagerduty update-incidents
    --site <site>
    --id <id>
    --from <from>
    --type <type>
    [--status <status>]
    [--priority <priority>]
    [--resolution <resolution>]
    [--urgency <urgency>]
    [--assignee <assignee>]
    [--escalation_level <escalation_level>]
    [--escalation_policy <escalation_policy>]
    [--conference_number <conference_number>]
    [--conference_url <conference_url>]

Arguments

site - (string)

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

id - (string)

     incident id
     Example: --id "id-1"
     Default: _None_      Attributes: required

from - (string)

     Email address of a valid user associated with the account making the request.
     Example: --from "from-1"
     Default: _None_      Attributes: required

type - (string)

     The incident type.
     Example: --type "type-1"
     Default: _None_      Attributes: required

status - (string)

     The new status of the incident.
     Example: --status "status-1"
     Default: _None_      Attributes: optional

     Validation:
         allowed values: resolved, acknowledged

priority - (string)

     priority id to associate with this incident
     Example: --priority "priority-1"
     Default: _None_      Attributes: optional

resolution - (string)

     The resolution for this incident if status is set to resolved.
     Example: --resolution "resolution-1"
     Default: _None_      Attributes: optional

urgency - (string)

     urgency of the incidents to be returned
     Example: --urgency "urgency-1"
     Default: _None_      Attributes: optional

     Validation:
         allowed values: high, low

assignee - (string)

     user id of the users who are to be assigne the incident
     Example: --assignee "assignee-1"
     Default: _None_      Attributes: optional, multiple allowed

escalation_level - (int)

     Escalate the incident to this level in the escalation policy.
     Example: --escalation_level 1
     Default: _None_      Attributes: optional

escalation_policy - (string)

     escalation policy for this incident
     Example: --escalation_policy "escalation_policy-1"
     Default: _None_      Attributes: optional

conference_number - (string)

     conference phone number to be used for this incident
     Example: --conference_number "conference_number-1"
     Default: _None_      Attributes: optional

conference_url - (string)

     conference url to be used for this incident
     Example: --conference_url "conference_url-1"
     Default: _None_      Attributes: optional

Examples

pagerduty update-incidents --id "id-1" --from "from-1" --type "type-1" --status "status-1" --priority "priority-1" --resolution "resolution-1" --urgency "urgency-1" --assignee "assignee-1" --escalation_level 1 --escalation_policy "escalation_policy-1" --conference_number "conference_number-1" --conference_url "conference_url-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 "incident"
Object ID id

Please see Access Control for details.