Syntax
Get-WMNamespace -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Detailed Description
This cmdlet retrieves the workload namespaces in the vCenter Server system and requires a connection to vCenter Server using the Connect-VIServer cmdlet.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String[] | Specifies a set of filters for the names of the workload namespaces. | false | False | |
Id | String[] | Specifies a set of IDs of the workload namespaces. The ID is also equal to the name of the workload namespace. | true | False | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet. | false | False |
Return Type
VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespaceNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> Get-WMNamespace
Retrieves all workload namespaces in the vCenter Server system.
-------------------------- Example 2 --------------------------
PS C:\> Get-WMNamespace -Name "MyWorkload*"
Retrieves all workload namespaces that match the filter specified for the Name parameter.
-------------------------- Example 3 --------------------------
PS C:\> Get-WMNamespace -Id "MyWorkloadNamespace"
Retrieves the workload namespace with the specified ID.