Share via


resource-quotas 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 resource-quotas command group within the Databricks CLI contains commands to manage resource quotas in Unity Catalog. Unity Catalog enforces resource quotas on all securable objects, which limits the number of resources that can be created. Resource quotas enable you to monitor your current usage and limits. See Resource quotas.

databricks resource-quotas get-quota

Get usage information for a single resource quota, defined as a child-parent pair. It also refreshes the quota count if it is out of date. Refreshes are triggered asynchronously. The updated count might not be returned in the first call.

databricks resource-quotas get-quota PARENT_SECURABLE_TYPE PARENT_FULL_NAME QUOTA_NAME [flags]

Arguments

PARENT_SECURABLE_TYPE

    Securable type of the quota parent.

PARENT_FULL_NAME

    Full name of the parent resource. Provide the metastore ID if the parent is a metastore.

QUOTA_NAME

    Name of the quota. Follows the pattern of the quota type, with -quota added as a suffix.

Options

Global flags

Examples

The following example gets quota information for a specific resource:

databricks resource-quotas get-quota METASTORE metastore-id catalogs-quota

databricks resource-quotas list-quotas

List all quota values under the metastore. There are no SLAs on the freshness of the counts returned. This command does not trigger a refresh of quota counts.

databricks resource-quotas list-quotas [flags]

Options

--max-results int

    The number of quotas to return.

--page-token string

    Opaque token for the next page of results.

Global flags

Examples

The following example lists all resource quotas under the metastore:

databricks resource-quotas list-quotas

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