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
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Namespace | WMNamespace[] | named |
|
Specifies a set of WMNamespace objects for which you want to retrieve the configuration. |
optional | ProgressAction | ActionPreference | named |
|
|
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.WMNamespaceStoragePolicyExamples
Example 1
Get-WMNamespaceStoragePolicy -Namespace "MyNamespace"
Retrieves the configuration of the storage claimed by the namespace called "MyNamespace".
Example 2
Get-WMNamespace | Get-WMNamespaceStoragePolicy
Retrieves the configuration of the storage claimed by all namespaces in the vCenter Server system.
Related Commands
WMNamespace
This cmdlet retrieves the workload namespaces in the vCenter Server system.
This cmdlet creates a new workload namespace on the specified cluster.
This cmdlet deletes a workload namespace from the vCenter Server system.
This cmdlet modifies the configuration of a workload namespace.
WMNamespaceLimits
Retrieves information about the Kubernetes resource limits of a namespace.
Changes the Kubernetes resource limits of a namespace.
WMNamespaceNetworkSpec
Creates a specification for a namespace network. The specification is later used to create the actual namespace network.
WMNamespacePermission
Retrieves information about workload namespace access permissions.
Grants an access permission to a workload namespace.
Removes an access permission to a workload namespace.
Modifies an access permission to a workload namespace.
WMNamespaceStoragePolicy
This cmdlet retrieves the configuration of the storage claimed by a workload namespace.
This cmdlet creates a storage claim for a workload namespace using the specified configuration.
This cmdlet deletes the storage claim for a workload namespace associated with a specified storage policy.
This cmdlet modifies the configuration of a storage claim used by a workload namespace.