Skip to main content

artifact_allow_lists

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

Overview

Nameartifact_allow_lists
TypeResource
Iddatabricks_workspace.unitycatalog.artifact_allow_lists

Fields

The following fields are returned by SELECT queries:

The artifact allowlist was successfully retrieved.

NameDatatypeDescription
metastore_idstring
artifact_matchersarray
created_atinteger
created_bystring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeployment_nameGet the artifact allowlist of a certain artifact type. The caller must be a metastore admin or have the
updateupdatedeployment_nameSet the artifact allowlist of a certain artifact type. The whole artifact allowlist is replaced with the new allowlist. The caller must be a metastore admin or have the

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

Get the artifact allowlist of a certain artifact type. The caller must be a metastore admin or have the

SELECT
metastore_id,
artifact_matchers,
created_at,
created_by
FROM databricks_workspace.unitycatalog.artifact_allow_lists
WHERE deployment_name = '{{ deployment_name }}' -- required;

UPDATE examples

Set the artifact allowlist of a certain artifact type. The whole artifact allowlist is replaced with the new allowlist. The caller must be a metastore admin or have the

UPDATE databricks_workspace.unitycatalog.artifact_allow_lists
SET
data__artifact_matchers = '{{ artifact_matchers }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
RETURNING
metastore_id,
artifact_matchers,
created_at,
created_by;