| Attributes | Methods | ||||
Scripting-Object Types | Finder Types | All Scripting-Object Attributes | All Scripting-Object Methods | All Finder Relations | All Finder Policies | All Finder Properties |
Attributes
Name | Type | Description |
---|---|---|
availableField* | VcCustomFieldDef [] | List of custom field definitions that are valid for the object's type. The fields are sorted by VcCustomFieldDef. |
id | string | returns the id of this ManagedObject |
info | VcTaskInfo | Detailed information about this task. |
reference | VcManagedObjectReference | returns the ManagedObjectReference of this ManagedObject |
sdkConnection | VcSdkConnection | returns the parent SdkConnection |
value* | VcCustomFieldValue [] | List of custom field values. Each value uses a key to associate an instance of a VcCustomFieldStringValue with a custom field definition. |
vimHost | VcSdkConnection | returns the parent SdkConnection (deprecated) |
vimType | string | returns the type of this ManagedObject |
Methods
Methods defined in this Scripting Object |
---|
cancelTask, createEndOfTaskTrigger, createTrigger, setCustomValue, setTaskDescription, setTaskState, updateProgress |
Parameters
Name | Type | Description |
---|---|---|
key | string | The name of the field whose value is to be updated. |
value | string | Value to be assigned to the custom field. |
Return Value
Type | Description |
---|---|
None |
If a task is canceled, its runtime state will be set to error and its error state will be set to VcRequestCanceled.
A cancel operation is asynchronous. The operation may return before the task is canceled.
Parameters
Name | Type | Description |
---|---|---|
None |
Return Value
Type | Description |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
percentDone | number | Percentage to set for this task |
Return Value
Type | Description |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
state | VcTaskInfoState | New state for task |
result* | any | Result to set, valid only if task state is TaskInfo.State.success |
fault* | VcMethodFault | Fault to set, valid only if task state is VcTaskInfoState. The fault must be a of a fault type that directly or indirectly extends VcVimFault. |
Return Value
Type | Description |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
description | VcLocalizableMessage | New description for task |
Return Value
Type | Description |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
timeout | number | Waiting timout in seconds |
Return Value
Type | Description |
---|---|
Trigger |
Parameters
Name | Type | Description |
---|---|---|
timeout | number | Waiting timout in seconds |
filter | string | The monitored vCenter API filter |
condition | string | The condition in OGNL language |
filterToSync* | string | The vCenter API filter used to synchronize the content of the session |
Return Value
Type | Description |
---|---|
Trigger |
Top of page | Attributes | Methods | ||||
Scripting-Object Types | Finder Types | All Scripting-Object Attributes | All Scripting-Object Methods | All Finder Relations | All Finder Policies | All Finder Properties |