Host Profile Manager Apply Host Config Task
Apply the configuration to the host.
If you specify any user input, the configuration will be saved in the AnswerFile associated with the host. If there is no answer file, the Profile Engine will create one.
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 HostProfileManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"ApplyHostConfigRequestType Object"
The HostConfigSpec data object provides access to data objects that specify configuration changes to be applied to an ESX host.
Additional host-specific data to be applied to the host. This data is the complete list of deferred parameters verified by the HostProfile.HostProfile.ExecuteHostProfile method, contained in the ProfileExecuteResult object returned by the method.
This method returns a Task object with which to monitor the operation.
"MoRefTask Object"
InvalidState: if the host is not in maintenance mode and the configuration specification requires it.
HostConfigFailed: if the ESX Server cannot apply the configuration changes.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/ApplyHostConfig_Task