@Generated public interface PolicyComplianceForClustersService
A cluster is compliant with its policy if its configuration satisfies all its policy rules. Clusters could be out of compliance if their policy was updated after the cluster was last edited.
The get and list compliance APIs allow you to view the policy compliance status of a cluster. The enforce compliance API allows you to update a cluster to be compliant with the current version of its policy.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
EnforceClusterComplianceResponse |
enforceCompliance(EnforceClusterComplianceRequest enforceClusterComplianceRequest)
Enforce cluster policy compliance.
|
GetClusterComplianceResponse |
getCompliance(GetClusterComplianceRequest getClusterComplianceRequest)
Get cluster policy compliance.
|
ListClusterCompliancesResponse |
listCompliance(ListClusterCompliancesRequest listClusterCompliancesRequest)
List cluster policy compliance.
|
EnforceClusterComplianceResponse enforceCompliance(EnforceClusterComplianceRequest enforceClusterComplianceRequest)
Updates a cluster to be compliant with the current version of its policy. A cluster can be updated if it is in a `RUNNING` or `TERMINATED` state.
If a cluster is updated while in a `RUNNING` state, it will be restarted so that the new attributes can take effect.
If a cluster is updated while in a `TERMINATED` state, it will remain `TERMINATED`. The next time the cluster is started, the new attributes will take effect.
Clusters created by the Databricks Jobs, DLT, or Models services cannot be enforced by this API. Instead, use the "Enforce job policy compliance" API to enforce policy compliance on jobs.
GetClusterComplianceResponse getCompliance(GetClusterComplianceRequest getClusterComplianceRequest)
Returns the policy compliance status of a cluster. Clusters could be out of compliance if their policy was updated after the cluster was last edited.
ListClusterCompliancesResponse listCompliance(ListClusterCompliancesRequest listClusterCompliancesRequest)
Returns the policy compliance status of all clusters that use a given policy. Clusters could be out of compliance if their policy was updated after the cluster was last edited.
Copyright © 2025. All rights reserved.