# Data Object - CnsKubernetesEntityReference(vim.cns.KubernetesEntityReference)

Property of
  CnsKubernetesEntityMetadata
Extends
  DynamicData
Since
  vSAN API 7.0

## Data Object Description

Data object that represents a Kubernetes entity reference both within the Kubernetes cluster and across nested clusters.
Example for within Kubernetes cluster - A PVC referring a PV within the same kubernetes cluster. Example for across nested cluster - A PVC in supervisor cluster used by a PV in guest cluster.

Properties

Name | Type | Description
--- | --- | ---
clusterId* | xsd:string | Represents the Kubernetes cluster the entity belongs to. If unset, the server will interpret that this referred entity is in the same Kubernetes cluster as the KubernetesEntityMetadata.entityName. The clusterId should be one of the cluster in vim.cns.VolumeMetadata.containerClusterArray
entityName | xsd:string | Represents the name of entity.
entityType | xsd:string | Represents the type of entity in Kubernetes. See CnsKubernetesEntityType for supported types.
namespace* | xsd:string | Namespace in Kubernetes the entity belongs to, if applicable. Namespace must not be set for entity of type persistent volume and must be set for entities of type persistent volume claim and pod.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="CnsKubernetesEntityReference"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="entityType" type="xsd:string"/> <element name="entityName" type="xsd:string"/> <element name="namespace" type="xsd:string" minOccurs="0"/> <element name="clusterId" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>