Esx. Settings. Clusters. Configuration. Reports. Last Compliance Result Get
This API provides results from the last completed Check Compliance operation on the cluster.
This operation was added in vSphere API 8.0.1.0.
Returns an authorization error if you do not have all of the privileges described as follows:
- Operation execution requires VcIntegrity.ClusterConfiguration.View.
- The resource ClusterComputeResource referenced by the parameter cluster requires VcIntegrity.ClusterConfiguration.View.
Identifier of the cluster
The parameter must be an identifier for the resource type: ClusterComputeResource.
Success!
"Esx.Settings.Clusters.Configuration.ClusterCompliance Object"
If the caller is not authenticated.
"Vapi.Std.Errors.Unauthenticated Object"
If there is no cluster associated with cluster or no last compliance result was found.
"Vapi.Std.Errors.NotFound Object"
If there is unknown internal error. The accompanying error message will give more details about the failure.
"Vapi.Std.Errors.Error Object"
If the service is not available.
"Vapi.Std.Errors.ServiceUnavailable Object"
curl -H 'Authorization: <value>' https://{api_host}/esx/settings/clusters/{cluster}/configuration/reports/last-compliance-result