PowerCLI Reference

Get-WMNamespaceStoragePolicy

Synopsis

This cmdlet retrieves the configuration of the storage claimed by a workload namespace.

Syntax

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

Related Commands

Detailed Description

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.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NamespaceWMNamespace[]Specifies a set of WMNamespace objects for which you want to retrieve the configuration.trueTrue (ByValue)
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.WMNamespaceStoragePolicy

Notes

Examples

-------------------------- Example 1 --------------------------

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

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

-------------------------- Example 1 --------------------------

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

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


Copyright © VMware, Inc. All rights reserved.