WMNamespace Category | Vmware PowerCLI Reference

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:

# Retrieves all workload namespaces in the vCenter Server system.

PS C:\&#62 Get-WMNamespace

Step 2 : Run commands from the CRUD group

You can CREATE objects by using New-WMNamespace cmdlet. See example below:

# Creates a workload namespace called "MyNamespace" on the "MyWMCluster" cluster.

PS C:\&#62 New-WMNamespace -Name "MyNamespace" -Cluster "MyWMCluster"
You can UPDATE objects by using Set-WMNamespace cmdlet. See example below:

# Sets the description of the workload namespace "MyNamespace" to "The new description text".

PS C:\&#62 Set-WMNamespace "MyNamespace" -Description "The new description text"
You can REMOVE objects by using Remove-WMNamespace cmdlet. See example below:

# Deletes a workload namespace called "MyNamespace".

PS C:\&#62 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.