แชร์ผ่าน


account ip-access-lists 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 ip-access-lists command group within the Databricks CLI contains commands to manage IP access lists for access to the account console. Account IP Access Lists affect web application access and REST API access to the account console and account APIs. See Manage IP access lists.

databricks account ip-access-lists create

Create an IP access list for the account. A list can be an allow list or a block list.

databricks account ip-access-lists create LABEL LIST_TYPE [flags]

Arguments

LABEL

    Label for the IP access list. This cannot be empty.

LIST_TYPE

    Type of IP access list. Supported values: ALLOW, BLOCK.

Options

--json JSON

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

Global flags

Examples

The following example creates an allow list:

databricks account ip-access-lists create "Office IPs" ALLOW --json '{"ip_addresses": ["1.2.3.4/32", "5.6.7.0/24"]}'

The following example creates a block list using a JSON file:

databricks account ip-access-lists create "Blocked IPs" BLOCK --json @ip-access-list.json

databricks account ip-access-lists delete

Delete an IP access list, specified by its list ID.

databricks account ip-access-lists delete IP_ACCESS_LIST_ID [flags]

Arguments

IP_ACCESS_LIST_ID

    The ID for the corresponding IP access list.

Options

Global flags

Examples

The following example deletes an IP access list:

databricks account ip-access-lists delete acl-12345

databricks account ip-access-lists get

Get an IP access list, specified by its list ID.

databricks account ip-access-lists get IP_ACCESS_LIST_ID [flags]

Arguments

IP_ACCESS_LIST_ID

    The ID for the corresponding IP access list.

Options

Global flags

Examples

The following example gets an IP access list:

databricks account ip-access-lists get acl-12345

databricks account ip-access-lists list

Get all IP access lists for the specified account.

databricks account ip-access-lists list [flags]

Options

Global flags

Examples

The following example lists all IP access lists:

databricks account ip-access-lists list

databricks account ip-access-lists replace

Replace an IP access list, specified by its ID. A list can include allow lists and block lists.

databricks account ip-access-lists replace IP_ACCESS_LIST_ID LABEL LIST_TYPE ENABLED [flags]

Arguments

IP_ACCESS_LIST_ID

    The ID for the corresponding IP access list.

LABEL

    Label for the IP access list. This cannot be empty.

LIST_TYPE

    Type of IP access list. Supported values: ALLOW, BLOCK.

ENABLED

    Specifies whether this IP access list is enabled.

Options

--json JSON

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

Global flags

Examples

The following example replaces an IP access list:

databricks account ip-access-lists replace acl-12345 "Updated Office IPs" ALLOW true --json '{"ip_addresses": ["1.2.3.4/32", "5.6.7.0/24", "8.9.10.0/24"]}'

The following example replaces an IP access list using a JSON file:

databricks account ip-access-lists replace acl-12345 "Updated Office IPs" ALLOW true --json @replace-ip-access-list.json

databricks account ip-access-lists update

Update an existing IP access list, specified by its ID.

databricks account ip-access-lists update IP_ACCESS_LIST_ID [flags]

Arguments

IP_ACCESS_LIST_ID

    The ID for the corresponding IP access list.

Options

--enabled

    Specifies whether this IP access list is enabled.

--label string

    Label for the IP access list.

--list-type ListType

    Type of IP access list. Supported values: ALLOW, BLOCK.

--json JSON

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

Global flags

Examples

The following example updates an IP access list label:

databricks account ip-access-lists update acl-12345 --label "Updated Label"

The following example updates an IP access list using JSON:

databricks account ip-access-lists update acl-12345 --json '{"ip_addresses": ["1.2.3.4/32", "5.6.7.0/24"], "enabled": true}'

The following example updates an IP access list using a JSON file:

databricks account ip-access-lists update acl-12345 --json @update-ip-access-list.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