# Data Object - CustomFieldDef(vim.CustomFieldsManager.FieldDef)

Property of
  CustomFieldsManager, ExtensibleManagedObject
Returned by
  AddCustomFieldDef
Extends
  DynamicData
See also
  PrivilegePolicyDef
Since
  2.0

## Data Object Description

Describes a custom field.

Properties

Name | Type | Description
--- | --- | ---
fieldDefPrivileges* | PrivilegePolicyDef | The set of privileges to apply on this field definition Since VI API 2.5
fieldInstancePrivileges* | PrivilegePolicyDef | The set of privileges to apply on instances of this field Since VI API 2.5
key | xsd:int | A unique ID used to reference this custom field in assignments. This ID is unique for the lifetime of the field (even across rename operations).
managedObjectType* | xsd:string | Type of object for which the field is valid. If not specified, the field is valid for all managed objects. Since VI API 2.5
name | xsd:string | Name of the field.
type | xsd:string | Type of the field.
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="CustomFieldDef"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="key" type="xsd:int"/> <element name="name" type="xsd:string"/> <element name="type" type="xsd:string"/> <element name="managedObjectType" type="xsd:string" minOccurs="0"/> <element name="fieldDefPrivileges" type="vsan:PrivilegePolicyDef" minOccurs="0"/> <element name="fieldInstancePrivileges" type="vsan:PrivilegePolicyDef" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>