resource_quotas
Creates, updates, deletes, gets or lists a resource_quotas
resource.
Overview
Name | resource_quotas |
Type | Resource |
Id | databricks_workspace.unitycatalog.resource_quotas |
Fields
The following fields are returned by SELECT
queries:
- listquotas
- getquota
Request completed successfully.
Name | Datatype | Description |
---|---|---|
parent_full_name | string | |
quota_name | string | |
last_refreshed_at | integer | |
parent_securable_type | string | |
quota_count | integer | |
quota_limit | integer |
Request completed successfully.
Name | Datatype | Description |
---|---|---|
parent_full_name | string | |
quota_name | string | |
last_refreshed_at | integer | |
parent_securable_type | string | |
quota_count | integer | |
quota_limit | integer |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
listquotas | select | deployment_name | 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. | |
getquota | select | deployment_name | The 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.
Name | Datatype | Description |
---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT
examples
- listquotas
- getquota
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;
The 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.
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;