Managed Object -
CustomFieldsManager(vim.CustomFieldsManager)
- Property of
-
ServiceContent
- See also
-
CustomFieldDef, ManagedEntity, PrivilegePolicyDef
Managed Object Description
The CustomFieldsManager object is used to add and remove custom fields
to managed entities.
The custom fields values set on managed entities are available through the
customValue property and through the summary objects
for VirtualMachine and HostSystem. They are not available
directly through this managed object.
This functionality is only available through VirtualCenter.
Properties
Name
|
Type
|
Description
|
field P | CustomFieldDef[] |
List of custom fields defined on this server. The fields are
sorted by name.
|
P
Methods
AddCustomFieldDef(addFieldDefinition)
Creates a new custom field. If the moType is specified, the
field will only be available for that type of managed object.
- Required Privileges
- Global.ManageCustomFields
Parameters
Name | Type | Description |
_this | ManagedObjectReference |
A reference to the
CustomFieldsManager
used to make the method call.
|
name | xsd:string |
The name of the field.
|
moType | xsd:string |
The managed object type to which this field
will apply
Since VI API 2.5
|
fieldDefPolicy | PrivilegePolicyDef |
Privilege policy to apply to FieldDef being
created
Since VI API 2.5
|
fieldPolicy | PrivilegePolicyDef |
Privilege policy to apply to instances of field
Since VI API 2.5
|
Return Value
Faults
Type
|
Description
|
DuplicateName | Thrown if a custom field with the name already exists. |
InvalidPrivilege | Thrown if a specified privilege is not defined. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Show WSDL type definition
RemoveCustomFieldDef(removeFieldDefinition)
Removes a custom field. This also removes all values assigned
to this custom field.
- Required Privileges
- Global.ManageCustomFields
Parameters
Return Value
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
Show WSDL type definition
RenameCustomFieldDef(renameFieldDefinition)
Renames a custom field.
- Required Privileges
- Global.ManageCustomFields
Parameters
Name | Type | Description |
_this | ManagedObjectReference |
A reference to the
CustomFieldsManager
used to make the method call.
|
key | xsd:int |
The unique key for the field definition.
|
name | xsd:string |
The new name for the field.
|
Return Value
Faults
Type
|
Description
|
DuplicateName | Thrown if a custom field with the name already exists. |
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
Show WSDL type definition
SetField(setField)
Assigns a value to a custom field on an entity.
- Required Privileges
- None
Parameters
P
Return Value
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
Show WSDL type definition