Skip to content

datadog list-downtimes

Get all scheduled downtimes

Description

Get all scheduled downtimes

Synopsis

datadog list-downtimes
    [--site <site>]
    [--current_only]

Arguments

site - (string)

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

current_only - (bool)

     Return downtimes that are active now
     Example: --current_only
     Default: false      Attributes: optional

Examples

Input:

!datadog list-downtimes
Output:
ID      MESSAGE     TYPE    MONITOR-ID  ACTIVE  PARENT  ACTIVE-CHILD    RECURRENCE
4051468 downtime       2    null        false   null    -               months
4051475 downtime       2    null        false   null    -               months
4051476 downtime       2    null        false   null    -               months
4051477 downtime       2    null        false   null    -               months

Access Control

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

Field Value
Action "read"
Service Type "datadog"
Service Instance
Namespace
Object Type "downtime"
Object ID

Please see Access Control for details.