Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This information applies to Databricks CLI versions 0.205 and above. The Databricks CLI is in Public Preview.
Databricks CLI use is subject to the Databricks License and Databricks Privacy Notice, including any Usage Data provisions.
The artifact-allowlists
command group within the Databricks CLI allows you to manage artifact allowlists in Unity Catalog. In Databricks Runtime 13.3 and above, you can add libraries and init scripts to the allowlist in Unity Catalog so that users can leverage these artifacts on compute configured with shared access mode. See Allowlist libraries and init scripts on compute with standard access mode (formerly shared access mode).
databricks artifact-allowlists get
Get the artifact allowlist of a certain artifact type. The caller must be a metastore admin or have the MANAGE _LLOWLIST
privilege on the metastore.
databricks artifact-allowlists get ARTIFACT_TYPE [flags]
Arguments
ARTIFACT_TYPE
The artifact type of the allowlist. Supported values: INIT_SCRIPT
, LIBRARY_JAR
, LIBRARY_MAVEN
Options
Examples
The following example gets the artifact allowlist for library JAR files:
databricks artifact-allowlists get LIBRARY_JAR
databricks artifact-allowlists update
Set an artifact allowlist. 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 MANAGE_ALLOWLIST
privilege on the metastore.
databricks artifact-allowlists update ARTIFACT_TYPE [flags]
Arguments
ARTIFACT_TYPE
The artifact type of the allowlist. Supported values: INIT_SCRIPT
, LIBRARY_JAR
, LIBRARY_MAVEN
Options
--json JSON
The inline JSON string or the @path to the JSON file with the request body
Examples
The following example sets the artifact allowlist for init scripts using inline JSON:
databricks artifact-allowlists update INIT_SCRIPT --json '{"artifact_matchers": [{"artifact": "s3://my-bucket/init-script.sh", "match_type": "PREFIX_MATCH"}]}'
Global flags
--debug
Whether to enable debug logging.
-h
or --help
Display help for the Databricks CLI or the related command group or the related command.
--log-file
string
A string representing the file to write output logs to. If this flag is not specified then the default is to write output logs to stderr.
--log-format
format
The log format type, text
or json
. The default value is text
.
--log-level
string
A string representing the log format level. If not specified then the log format level is disabled.
-o, --output
type
The command output type, text
or json
. The default value is text
.
-p, --profile
string
The name of the profile in the ~/.databrickscfg
file to use to run the command. If this flag is not specified then if it exists, the profile named DEFAULT
is used.
--progress-format
format
The format to display progress logs: default
, append
, inplace
, or json
-t, --target
string
If applicable, the bundle target to use