Distributed Virtual Switch DVS Rollback Task
This method determines if the distributed virtual switch configuration has changed.
If it has changed, the method returns a VMwareDVSConfigSpec. Use the ReconfigureDvs_Task method to apply the rollback configuration to the switch. You can use the rollback method only on a VmwareDistributedVirtualSwitch.
- If you specify the
entityBackup
parameter, the returned configuration specification represents the exported switch configuration. If theentityBackup
matches the current switch configuration, the method does not return a configuration specification. - If
entityBackup
is not specified, the returned configuration specification represents a previous state of the switch, if available. When you use a VMware distributed virtual switch, each time you reconfigure the switch, the Server saves the switch configuration before applying the updates. If the vCenter Server is restarted, the saved configuration is not preserved and the method does not return a configuration specification.
To use the rollback method, you must have the DVSwitch.Read privilege.
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 DistributedVirtualSwitch/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
{
"entityBackup": {
"_typeName": "string",
"entityType": "string",
"configBlob": "string",
"key": "string",
"name": "string",
"container": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"configVersion": "string"
}
}
The EntityBackupConfig data object contains VmwareDistributedVirtualSwitch or DistributedVirtualPortgroup backup configuration data produced by the DVSManagerExportEntity_Task method.
It also contains properties that support DVSManagerImportEntity_Task operations.
A DVSManagerExportEntity_Task operation sets properties that identify the entity instance (entityType, key, and name) and inventory location (container). When you import a backup configuration, you can set the key
, name
, and container
properties in accordance with the importType
specified in the call to DVSManagerImportEntity_Task. See EntityImportTypeEnum.
Returns a Task object with which to monitor the operation. If the distributed virtual switch configuration has changed, the Task.info.result property contains the DVSConfigSpec object.
{
"_typeName": "string",
"type": "string",
"value": "string"
}
RollbackFailure: if there is no configuration specified in entityBackup and the previous configuration does not exist either.
DvsFault: if operation fails.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}