Vmware Distributed Virtual Switch Rectify Dvs Host Task
Deprecated as of vSphere API 5.0. Use DistributedVirtualSwitchManager.RectifyDvsOnHost_Task instead.
Update the switch configuration on the host to bring them in sync with the current configuration in vCenter Server.
Required privileges: System.Read
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 VmwareDistributedVirtualSwitch/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
{
"hosts": [
{
"_typeName": "string",
"type": "string",
"value": "string"
}
]
}
The hosts to be rectified.
OK
{
"_typeName": "string",
"type": "string",
"value": "string"
}
DvsFault: if operation fails on any host or if there are other update failures.
{
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/sdk/vim25/{release}/VmwareDistributedVirtualSwitch/{moId}/RectifyDvsHost_Task