แชร์ผ่าน


account workspace-assignment command group

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 account workspace-assignment command group within the Databricks CLI contains commands to manage workspace permissions for principals in your account.

databricks account workspace-assignment delete

Delete the workspace permissions assignment in a given account and workspace for the specified principal.

databricks account workspace-assignment delete WORKSPACE_ID PRINCIPAL_ID [flags]

Arguments

WORKSPACE_ID

    The workspace ID for the account.

PRINCIPAL_ID

    The ID of the user, service principal, or group.

Options

Global flags

Examples

The following example deletes a workspace assignment:

databricks account workspace-assignment delete 123456789 user-12345

databricks account workspace-assignment get

Get an array of workspace permissions for the specified account and workspace.

databricks account workspace-assignment get WORKSPACE_ID [flags]

Arguments

WORKSPACE_ID

    The workspace ID.

Options

Global flags

Examples

The following example gets workspace permissions:

databricks account workspace-assignment get 123456789

databricks account workspace-assignment list

Get the permission assignments for the specified Databricks account and Databricks workspace.

databricks account workspace-assignment list WORKSPACE_ID [flags]

Arguments

WORKSPACE_ID

    The workspace ID for the account.

Options

Global flags

Examples

The following example lists permission assignments for a workspace:

databricks account workspace-assignment list 123456789

databricks account workspace-assignment update

Create or update the workspace permissions assignment in a given account and workspace for the specified principal.

databricks account workspace-assignment update WORKSPACE_ID PRINCIPAL_ID [flags]

Arguments

WORKSPACE_ID

    The workspace ID.

PRINCIPAL_ID

    The ID of the user, service principal, or group.

Options

--json JSON

    The inline JSON string or the @path to the JSON file with the request body

Global flags

Examples

The following example updates a workspace assignment using JSON:

databricks account workspace-assignment update 123456789 user-12345 --json '{"permissions": ["USER"]}'

The following example updates a workspace assignment using a JSON file:

databricks account workspace-assignment update 123456789 user-12345 --json @workspace-assignment.json

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