Syntax
Get-TagCategory -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet retrieves the tag categories available on a vCenter Server system and filters them using the specified cmdlet parameters.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String[] | Filters the tag categories by name. | false | False | |
Id | String[] | Filters the tag categories by ID.
Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list. | true | False | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | True (ByValue) |
Return Type
Zero or more TagCategory objectsNotes
Works only with vCenter Server 5.1 or later.Examples
-------------------------- Example 1 --------------------------
Get-TagCategory -Name "MyTagCategory" -Server "MyServer"
Retrieves a tag category named "MyTagCategory" from a vCenter Server system.