Skip to content

datadog create-incident-attachment

Create attachment for a given incident (BETA)

Description

Create attachment for a given incident (BETA)

Synopsis

datadog create-incident-attachment
    [--site <site>]
    <incident>
    --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

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 create-incident-attachment  "dcb957f4-8bfe-5ede-a41f-7f285cfc700e" --type "link" --title "utfj" --url "https://docs.datadoghq.com/database_monitoring/query_samples/"
Output:
ID                                      TITLE  ATTACHMENT-TYPE  ATTACHMENT-URL
3bf3a4fc-8429-5569-a85c-6356d3c8244d    utfj     link             https://docs.datadoghq.com/database_monitoring/query_samples/

Access Control

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

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

Please see Access Control for details.