Skip to content

datadog update-incident-attachment

Get all attachments for a given incident (BETA)

Description

Get all attachments for a given incident (BETA)

Synopsis

datadog update-incident-attachment
    [--site <site>]
    <incident>
    --attachment <attachment>
    --url <url>
    --title <title>
    --type <type>

Arguments

site - (string)

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

incident - (string)

     The UUID of the incident
     Example: "incident-1"
     Default: _None_      Attributes: required

attachment - (string)

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

url - (string)

     The URL of this attachment
     Example: --url "url-1"
     Default: _None_      Attributes: required

title - (string)

     The title of this attachment
     Example: --title "title-1"
     Default: _None_      Attributes: required

type - (string)

     The type of attachment
     Example: --type "type-1"
     Default: _None_      Attributes: required

     Validation:
         allowed values: postmortem, link

Examples

Input:

!datadog update-incident-attachment  "dcb957f4-8bfe-5ede-a41f-7f285cfc700e" --type "link" --title "updatedThis" --url "https://docs.datadoghq.com/database_monitoring/query_samples/"  --attachment "29aaab41-74fc-5502-86ef-a9a9d327d034"
Output:
ID                                      TITLE        ATTACHMENT-TYPE  ATTACHMENT-URL
3bf3a4fc-8429-5569-a85c-6356d3c8244d    updatedThis  link             https://docs.datadoghq.com/database_monitoring/query_samples/

Access Control

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

Field Value
Action "update"
Service Type "datadog"
Service Instance
Namespace
Object Type "attachment"
Object ID

Please see Access Control for details.