Skip to main content

resource_quotas

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

Overview

Nameresource_quotas
TypeResource
Iddatabricks_workspace.unitycatalog.resource_quotas

Fields

The following fields are returned by SELECT queries:

Request completed successfully.

NameDatatypeDescription
parent_full_namestring
quota_namestring
last_refreshed_atinteger
parent_securable_typestring
quota_countinteger
quota_limitinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listquotasselectdeployment_nameListQuotas returns all quota values under the metastore. There are no SLAs on the freshness of the counts returned. This API does not trigger a refresh of quota counts.
getquotaselectdeployment_nameThe GetQuota API returns usage information for a single resource quota, defined as a child-parent pair. This API 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.

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)

SELECT examples

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

SELECT
parent_full_name,
quota_name,
last_refreshed_at,
parent_securable_type,
quota_count,
quota_limit
FROM databricks_workspace.unitycatalog.resource_quotas
WHERE deployment_name = '{{ deployment_name }}' -- required;