# Managed Object - ExtensibleManagedObject(vim.ExtensibleManagedObject)

Extended by
  Alarm, ClusterEVCManager, HostCpuSchedulerSystem, HostFirewallSystem, HostGraphicsManager, HostMemorySystem, HostNetworkSystem, HostPciPassthruSystem, HostServiceSystem, HostStorageSystem, HostVirtualNicManager, HostVMotionSystem, ManagedEntity, ScheduledTask, Task, VirtualMachineSnapshot
See also
  CustomFieldDef, CustomFieldValue

## Managed Object Description

ExtensibleManagedObject provides methods and properties that provide access to custom fields that may be associated with a managed object. Use the CustomFieldsManager to define custom fields. The CustomFieldsManager handles the entire list of custom fields on a server. You can can specify the object type to which a particular custom field applies by setting its managedObjectType. (If you do not set a managed object type for a custom field definition, the field applies to all managed objects.)

Properties

Name | Type | Description
--- | --- | ---
availableField* P | CustomFieldDef[] | List of custom field definitions that are valid for the object's type. The fields are sorted by name. Since VI API 2.5
value* P | CustomFieldValue[] | List of custom field values. Each value uses a key to associate an instance of a CustomFieldStringValue with a custom field definition. Since VI API 2.5

*May not be present P Required privilege: System.View

Methods

Methods defined in this Managed Object
setCustomValue

# setCustomValue

Assigns a value to a custom field. The setCustomValue method requires whichever updatePrivilege is defined as one of the fieldInstancePrivileges for the CustomFieldDef whose value is being changed.

Required Privileges
  Dynamic - See discussion above
Since
  VI API 2.5

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the ExtensibleManagedObject used to make the method call.
key | xsd:string | The name of the field whose value is to be updated.
value | xsd:string | Value to be assigned to the custom field.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidArgument | Thrown if no custom field with that key exists.
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="setCustomValue" type="sms:setCustomValueRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="setCustomValueResponse"> <complexType/> </element>