Skip to main content

all_clusters_policy_compliance

Creates, updates, deletes, gets or lists an all_clusters_policy_compliance resource.

Overview

Nameall_clusters_policy_compliance
TypeResource
Iddatabricks_workspace.compute.all_clusters_policy_compliance

Fields

The following fields are returned by SELECT queries:

Request completed successfully.

NameDatatypeDescription
cluster_idstring
is_compliantboolean
violationsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listcomplianceselectdeployment_nameReturns 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.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

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;