w.artifact_allowlists: Artifact Allowlists¶
- class databricks.sdk.service.catalog.ArtifactAllowlistsAPI¶
In Databricks Runtime 13.3 and above, you can add libraries and init scripts to the
allowlistin UC so that users can use these artifacts on compute configured with shared access mode.- get(artifact_type: ArtifactType) ArtifactAllowlistInfo¶
Get the artifact allowlist of a certain artifact type. The caller must be a metastore admin or have the MANAGE ALLOWLIST privilege on the metastore.
- Parameters:
artifact_type –
ArtifactTypeThe artifact type of the allowlist.- Returns:
- update(artifact_type: ArtifactType, artifact_matchers: List[ArtifactMatcher] [, created_at: Optional[int], created_by: Optional[str], metastore_id: Optional[str]]) ArtifactAllowlistInfo¶
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.
- Parameters:
artifact_type –
ArtifactTypeThe artifact type of the allowlist.artifact_matchers – List[
ArtifactMatcher] A list of allowed artifact match patterns.created_at – int (optional) Time at which this artifact allowlist was set, in epoch milliseconds.
created_by – str (optional) Username of the user who set the artifact allowlist.
metastore_id – str (optional) Unique identifier of parent metastore.
- Returns: