WM Namespace Category
Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations.
Step 1: Retrieve a object by running a Get command
You can READ objects by using Get-WMNamespace cmdlet. See example below:
PS C:\> Get-WMNamespace
Step 2: Run commands from the CRUD group
You can CREATE objects by using New-WMNamespace cmdlet. You can UPDATE objects by using Set-WMNamespace cmdlet. See example below:PS C:\> Set-WMNamespace "MyNamespace" -Description "The new description text"
You can REMOVE objects by using
Remove-WMNamespace
cmdlet. See example below:
PS C:\> Remove-WMNamespace -Namespace "MyNamespace"
Step 3: Explore More Related Commands:
Get-WMNamespaceLimits | Retrieves information about the Kubernetes resource limits of a namespace. |
Get-WMNamespacePermission | Retrieves information about workload namespace access permissions. |
Get-WMNamespaceStoragePolicy | This cmdlet retrieves the configuration of the storage claimed by a workload namespace. |
New-WMNamespaceNetworkSpec | Creates a specification for a namespace network. The specification is later used to create the actual namespace network. |
New-WMNamespacePermission | Grants an access permission to a workload namespace. |
New-WMNamespaceStoragePolicy | This cmdlet creates a storage claim for a workload namespace using the specified configuration. |
Remove-WMNamespacePermission | Removes an access permission to a workload namespace. |
Remove-WMNamespaceStoragePolicy | This cmdlet deletes the storage claim for a workload namespace associated with a specified storage policy. |
Set-WMNamespaceLimits | Changes the Kubernetes resource limits of a namespace. |
Set-WMNamespacePermission | Modifies an access permission to a workload namespace. |
Set-WMNamespaceStoragePolicy | This cmdlet modifies the configuration of a storage claim used by a workload namespace. |