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
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Namespace | WMNamespace[] | Specifies a set of WMNamespace objects for which you want to retrieve the configuration. | true | True (ByValue) | |
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.WMNamespaceStoragePolicyNotes
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.