Custom Fields Manager Add Custom Field Def
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
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case CustomFieldsManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
{
"name": "string",
"moType": "string",
"fieldDefPolicy": {
"_typeName": "string",
"createPrivilege": "string",
"readPrivilege": "string",
"updatePrivilege": "string",
"deletePrivilege": "string"
},
"fieldPolicy": {
"_typeName": "string",
"createPrivilege": "string",
"readPrivilege": "string",
"updatePrivilege": "string",
"deletePrivilege": "string"
}
}
The name of the field.
The managed object type to which this field will apply
OK
{
"_typeName": "string",
"key": 0,
"name": "string",
"type": "string",
"managedObjectType": "string",
"fieldDefPrivileges": {
"_typeName": "string",
"createPrivilege": "string",
"readPrivilege": "string",
"updatePrivilege": "string",
"deletePrivilege": "string"
},
"fieldInstancePrivileges": {
"_typeName": "string",
"createPrivilege": "string",
"readPrivilege": "string",
"updatePrivilege": "string",
"deletePrivilege": "string"
}
}
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).
Name of the field.
Type of the field.
Type of object for which the field is valid.
If not specified, the field is valid for all managed objects.
DuplicateName: if a custom field with the name already exists.
InvalidPrivilege: if a specified privilege is not defined.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}