Skip to main content

policy_families

Creates, updates, deletes, gets or lists a policy_families resource.

Overview​

Namepolicy_families
TypeResource
Iddatabricks_workspace.compute.policy_families

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringName of the policy family.
policy_family_idstringUnique identifier for the policy family.
definitionstring
descriptionstringHuman-readable description of the purpose of the policy family.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpolicy_family_id, deployment_nameversionRetrieve the information for an policy family based on its identifier and version
listselectdeployment_namemax_results, page_tokenReturns the list of policy definition types available to use at their latest version. This API is

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)
policy_family_idstringThe family ID about which to retrieve information.
max_resultsintegerMaximum number of policy families to return.
page_tokenstringA token that can be used to get the next page of results.
versionintegerThe version number for the family to fetch. Defaults to the latest version.

SELECT examples​

Retrieve the information for an policy family based on its identifier and version

SELECT
name,
policy_family_id,
definition,
description
FROM databricks_workspace.compute.policy_families
WHERE policy_family_id = '{{ policy_family_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND version = '{{ version }}'
;