Get-WMNamespace

This cmdlet retrieves the workload namespaces in the vCenter Server system and requires a connection to vCenter Server using the Connect-VIServer cmdlet.

Syntax

[-Name  <String[]>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Name
String[] named Specifies a set of filters for the names of the workload namespaces.
optional
Server
VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

-Id  <String[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Id
String[] named Specifies a set of IDs of the workload namespaces. The ID is also equal to the name of the workload namespace.
optional
Server
VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

Output

VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespace

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.

Related Commands

Feedback

Was this page helpful?