addTagToResource

Add a tag to a resource

Format

udclient [global-args...] [global-flags...]
  addTagToResource [parameters]

Parameters

Table 1. Parameters
Parameter Type Required Description
resource string true ID or path to the resource, such as /ResourceGroup/Agents/Agent1
template string false Name or ID of the resource template (Optional)
blueprintId string false Name or ID of the blueprint (Optional)
application string false Name or ID of the application (Required to look up blueprint by name)
tag string true Name of the tag
color string false Hex representation of the color for the tag, such as FF0000. This parameter is used only if the tag is being created.
description string false Description of the tag. This parameter is used only if the tag is being created.

Example

udclient -username jsmith -password passwd 
  -weburl https://deployserver.example.com:8443
  addTagToResource
  -resource /Resource1/Subresource1
  -tag Tag1

Related REST command: Add a tag to a resource.