all_clusters_policy_compliance
Creates, updates, deletes, gets or lists an all_clusters_policy_compliance
resource.
Overview
Name | all_clusters_policy_compliance |
Type | Resource |
Id | databricks_workspace.compute.all_clusters_policy_compliance |
Fields
The following fields are returned by SELECT
queries:
- listcompliance
Request completed successfully.
Name | Datatype | Description |
---|---|---|
cluster_id | string | |
is_compliant | boolean | |
violations | object |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
listcompliance | select | deployment_name | 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. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT
examples
- listcompliance
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.
SELECT
cluster_id,
is_compliant,
violations
FROM databricks_workspace.compute.all_clusters_policy_compliance
WHERE deployment_name = '{{ deployment_name }}' -- required;