Skip to main content

resource_quotas

Creates, updates, deletes, gets or lists a resource_quotas resource.

Overview

Nameresource_quotas
TypeResource
Iddatabricks_workspace.catalog.resource_quotas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
quota_infoobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectparent_securable_type, parent_full_name, quota_name, deployment_nameThe GetQuota API returns usage information for a single resource quota, defined as a child-parent
listselectdeployment_namemax_results, page_tokenListQuotas returns all quota values under the metastore. There are no SLAs on the freshness of the

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
parent_full_namestringFull name of the parent resource. Provide the metastore ID if the parent is a metastore.
parent_securable_typestringSecurable type of the quota parent.
quota_namestringName of the quota. Follows the pattern of the quota type, with "-quota" added as a suffix.
max_resultsintegerThe number of quotas to return.
page_tokenstringOpaque token for the next page of results.

SELECT examples

The GetQuota API returns usage information for a single resource quota, defined as a child-parent

SELECT
quota_info
FROM databricks_workspace.catalog.resource_quotas
WHERE parent_securable_type = '{{ parent_securable_type }}' -- required
AND parent_full_name = '{{ parent_full_name }}' -- required
AND quota_name = '{{ quota_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;