PowerCLI Reference

Get-WMNamespace

Synopsis

This cmdlet retrieves the workload namespaces in the vCenter Server system.

Syntax

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

Get-WMNamespace [[-Name] <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

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies a set of filters for the names of the workload namespaces.falseFalse
IdString[]Specifies a set of IDs of the workload namespaces. The ID is also equal to the name of the workload namespace.trueFalse
ServerVIServer[]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.falseFalse

Return Type

VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespace

Notes

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.


Copyright © VMware, Inc. All rights reserved.