< Back
Add-DDTag
Post
NAME Add-DDTag
SYNOPSIS
Add tags to a host.
SYNTAX
Add-DDTag [-Hostname] <String> [-Tags] <String[]> [[-Source] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Hostname <String>
A hostname as shown on Datadog's Infrastructure List page.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Tags <String[]>
String or array of strings representing the tags to apply to the host.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Source <String>
Specify a source for the tags. Valid sources are: nagios, hudson, jenkins, users, feed, chef, puppet, git,
bitbucket, fabric, capistrano.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Add a tag 'role:frontend' coming from Nagios to host 'myhost'
Add-DDTag -Hostname 'myhost' -Tags 'role:frontend' -Source 'nagios'
RELATED LINKS
http://docs.datadoghq.com/api/?lang=console#tags-add
SYNOPSIS
Add tags to a host.
SYNTAX
Add-DDTag [-Hostname] <String> [-Tags] <String[]> [[-Source] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Hostname <String>
A hostname as shown on Datadog's Infrastructure List page.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Tags <String[]>
String or array of strings representing the tags to apply to the host.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Source <String>
Specify a source for the tags. Valid sources are: nagios, hudson, jenkins, users, feed, chef, puppet, git,
bitbucket, fabric, capistrano.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Add a tag 'role:frontend' coming from Nagios to host 'myhost'
Add-DDTag -Hostname 'myhost' -Tags 'role:frontend' -Source 'nagios'
RELATED LINKS
http://docs.datadoghq.com/api/?lang=console#tags-add