Get-WMNamespaceStoragePolicy

This cmdlet retrieves the storage configuration claimed by a workload namespace. The storage claim is expressed as a storage policy and parameters of the claim. The cmdlet requires a connection to vCenter Server using the Connect-VIServer cmdlet.

Syntax

-Namespace  <WMNamespace[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Namespace
WMNamespace[] named
  • pipeline
  • Specifies a set of WMNamespace objects for which you want to retrieve the configuration.
    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.WMNamespaceStoragePolicy

    Examples


    Example 1

    PS C:\> Get-WMNamespaceStoragePolicy -Namespace "MyNamespace"

    Retrieves the configuration of the storage claimed by the namespace called "MyNamespace".

    Example 2

    PS C:\> Get-WMNamespace | Get-WMNamespaceStoragePolicy

    Retrieves the configuration of the storage claimed by all namespaces in the vCenter Server system.

    Related Commands

    Feedback

    Was this page helpful?