New-CnsKubernetesEntityReference

This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity reference at the client side.

Syntax

-EntityName  <String>
-EntityType  <CnsKubernetesEntityType>
[-KubernetesClusterId  <String>]
[-Namespace  <String>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
EntityName
String named Specifies the name of the entity.
required
EntityType
CnsKubernetesEntityType named Specifies the type of the entity.
optional
KubernetesClusterId
String named Specifies the Kubernetes cluster to which the entity belongs.
optional
Namespace
String named Specifies the namespace in Kubernetes to which the entity belongs, if applicable. You must not set the namespace for an entity of type persistent volume. You must set it for entities of type persistent volume claim and POD.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.Cns.CnsKubernetesEntityReference

Examples


Example 1

New-CnsKubernetesEntityReference -EntityName 'myVolumePVC' -EntityType PersistentVolumeClaim

Creates a CNS Kubernetes entity reference with 'myVolumePVC' as an entity name and PersistentVolumeClaim as an entity type.

Related Commands

Feedback

Was this page helpful?