Set-WMNamespace
This cmdlet modifies the configuration of a workload namespace. The cmdlet requires a connection to a vCenter Server using the Connect-VIServer cmdlet.
Syntax
-Namespace
<WMNamespace[]>
[-Description <String>]
[-RunAsync]
[-Server <VIServer[]>]
[CommonParameters]
[-Description <String>]
[-RunAsync]
[-Server <VIServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
WMNamespace[] | named |
|
Specifies the set of namespaces on which you want to to apply the change of the configuration. | optional |
|
String | named |
|
Specifies the new value of the description for the specified workload namespace. | optional |
|
SwitchParameter | named |
|
Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter, run "help About_RunAsync" in the VMware PowerCLI console. | optional |
|
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.WMNamespace
Examples
Example 1
PS C:\> Set-WMNamespace "MyNamespace" -Description "The new description text"
Sets the description of the workload namespace "MyNamespace" to "The new description text".
Example 2
PS C:\> Get-WMNamespace "Target*" | Set-WMNamespace -Description "The new description text"
Sets the description of all workload namespaces that have a name matching the "Target*" pattern to "The new description text".
Example 3
PS C:\> Set-WMNamespace "MyNamespace" -Description ""
Sets the description of the workload namespace "MyNamespace" to be blank.
Related Commands
WMNamespace
This cmdlet retrieves the workload namespaces in the vCenter Server system.
This cmdlet modifies the configuration of a workload namespace.
This cmdlet deletes a workload namespace from the vCenter Server system.
This cmdlet creates a new workload namespace on the specified cluster.
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.
Modifies an access permission to a workload namespace.
Removes an access permission to a workload namespace.
Grants an access permission to a workload namespace.
WMNamespaceStoragePolicy
This cmdlet retrieves the configuration of the storage claimed by a workload namespace.
This cmdlet modifies the configuration of a storage claim used by a workload namespace.
This cmdlet deletes the storage claim for a workload namespace associated with a specified storage policy.
This cmdlet creates a storage claim for a workload namespace using the specified configuration.