datadog add-tags-host
This endpoint allows you to add new tags to a host, optionally specifying where these tags come from
Description
This endpoint allows you to add new tags to a host, optionally specifying where these tags come from
Synopsis
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)
Name of host.
Example: --host "host-1"
Default: _None_
Attributes: required
tags
- (string)
A list of tags to apply to the host.
Example: --tags "tags-1"
Default: _None_
Attributes: optional, multiple allowed
Examples
Input:
Output:Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "update" |
Service Type | "datadog" |
Service Instance | |
Namespace | |
Object Type | "host" |
Object ID | name |
Please see Access Control for details.