Skip to contents

Update an existing policy for cluster. This operation may make some clusters governed by the previous policy invalid.

Usage

edit_cluster_policy(
  client,
  policy_id,
  name,
  definition = NULL,
  description = NULL,
  libraries = NULL,
  max_clusters_per_user = NULL,
  policy_family_definition_overrides = NULL,
  policy_family_id = NULL
)

clusterPoliciesEdit(
  client,
  policy_id,
  name,
  definition = NULL,
  description = NULL,
  libraries = NULL,
  max_clusters_per_user = NULL,
  policy_family_definition_overrides = NULL,
  policy_family_id = NULL
)

Arguments

client

Required. Instance of DatabricksClient()

policy_id

Required. The ID of the policy to update.

name

Required. Cluster Policy name requested by the user.

definition

Policy definition document expressed in Databricks Cluster Policy Definition Language.

description

Additional human-readable description of the cluster policy.

libraries

A list of libraries to be installed on the next cluster restart that uses this policy.

max_clusters_per_user

Max number of clusters per user that can be active using this policy.

policy_family_definition_overrides

Policy definition JSON document expressed in Databricks Policy Definition Language.

policy_family_id

ID of the policy family.