New-CnsVolumeMetadata Command | Vmware PowerCLI Reference

New-CnsVolumeMetadata

This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.

Syntax

New-CnsVolumeMetadata
-CnsEntityMetadata < CnsEntityMetadata[] >
-ContainerCluster < CnsContainerCluster[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
CnsEntityMetadata CnsEntityMetadata[] named
Specifies the CNS entity metadata associated with the CNS volume within a container orchestrator like Kubernetes.
required
ContainerCluster CnsContainerCluster[] named
Specifies the list of all container orchestrator clusters where you can use the CNS volume.
optional ProgressAction ActionPreference named

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 creates a Cloud Native Storage (CNS) volume.

This cmdlet removes the specified Cloud Native Storage (CNS) volumes.

This cmdlet modifies the Cloud Native Storage (CNS) volume metadata of a specified CNS volume.

CnsVolumeAttachment

New-CnsVolumeAttachment -CnsVolume <CnsVolume> -VM <VirtualMachine> [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-CnsVolumeAttachment -CnsVolume <CnsVolume> -VM <VirtualMachine> [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

CnsVolumeMetadata

This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.