Host Profile Check Profile Compliance Task
Check compliance of an entity against a Profile.
Required privileges: System.View
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 HostProfile/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
{
"entity": [
{
"_typeName": "string",
"type": "string",
"value": "string"
}
]
}
If specified, the compliance check is performed on this entity. If the entity is not specified, the vCenter Server runs a compliance check on all the entities associated with the profile. The entity does not have to be associated with the profile.
This method returns a Task object with which to monitor the operation.
{
"_typeName": "string",
"type": "string",
"value": "string"
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/sdk/vim25/{release}/HostProfile/{moId}/CheckProfileCompliance_Task