New-CnsVolumeMetadata
This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.
Syntax
-CnsEntityMetadata
<CnsEntityMetadata[]>
-ContainerCluster <CnsContainerCluster[]>
[CommonParameters]
-ContainerCluster <CnsContainerCluster[]>
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
CnsEntityMetadata[] | named |
|
Specifies the CNS entity metadata associated with the CNS volume within a container orchestrator like Kubernetes. | required |
|
CnsContainerCluster[] | named |
|
Specifies the list of all container orchestrator clusters where you can use the CNS volume. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.Cns.CnsVolumeMetadata
Examples
Example 1
New-CnsVolumeMetadata -CnsEntityMetadata $cnsEntityMetadata -ContainerCluster $containerCluster
Creates a CNS volume metadata with $cnsEntityMetadata as a CNS entity metadata and $containerCluster as a container cluster.
Related Commands
CnsContainerCluster
This cmdlet creates a vSAN file service IP configuration at the client side.
CnsKubernetesEntityMetadata
This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity metadata at a client side.
CnsKubernetesEntityReference
This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity reference at the client side.
CnsVolume
This cmdlet retrieves a Cloud Native Storage (CNS) volume based on the name or ID filter.
This cmdlet modifies the Cloud Native Storage (CNS) volume metadata of a specified CNS volume.
This cmdlet removes the specified Cloud Native Storage (CNS) volumes.
This cmdlet creates a Cloud Native Storage (CNS) volume.
CnsVolumeAttachment
Remove-CnsVolumeAttachment -CnsVolume -VM [-Server ] [-RunAsync] [-WhatIf] [-Confirm] []
New-CnsVolumeAttachment -CnsVolume -VM [-Server ] [-RunAsync] [-WhatIf] [-Confirm] []
CnsVolumeMetadata
This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.