Skip to content

datadog list-tags

Get tags for entire infrastructure or a specific host

Description

Get tags for entire infrastructure or a specific host

Synopsis

datadog list-tags
    [--site <site>]
    [--source <source>]
    [--host <host>]

Arguments

site - (string)

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

source - (string)

     filters host list to those tags with the specified source
     Example: --source "source-1"
     Default: _None_      Attributes: optional

host - (string)

     When specified, filters list of tags to those tags with the specified source
     Example: --host "host-1"
     Default: _None_      Attributes: optional

Examples

Input:

!datadog list-tags
Output:
TAGS    VALUES
tag1    beehyv-B560M-GAMING-HD, beehyv
tag2    beehyv-B560M-GAMING-HD, beehyv

Access Control

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

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

Please see Access Control for details.