Skip to main content

quotas

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

Overview

Namequotas
TypeResource
Idazure.quota.quotas

Fields

NameDatatypeDescription
idtextThe resource ID.
nametextThe resource name.
is_quota_applicabletextfield from the properties object
limittextfield from the properties object
propertiestextQuota properties for the specified resource.
quota_periodtextfield from the properties object
resourceNametextfield from the properties object
resource_typetextfield from the properties object
scopetextfield from the properties object
typetextThe resource type.
unittextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceName, scopeGet the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.
listSELECTscopeGet a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.
create_or_updateINSERTresourceName, scopeCreate or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:
  1. Use the GET operation for quotas and usages to determine how much quota remains for the specific resource and to calculate the new quota limit. These steps are detailed in this example.
  2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request. | | update | UPDATE | resourceName, scope | Update the quota limit for a specific resource to the specified value:
  3. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in this example.
  4. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request. |

SELECT examples

Get a list of current quota limits of all resources for the specified scope. The response from this GET operation can be leveraged to submit requests to update a quota.

SELECT
id,
name,
is_quota_applicable,
limit,
properties,
quota_period,
resourceName,
resource_type,
scope,
type,
unit
FROM azure.quota.vw_quotas
WHERE scope = '{{ scope }}';

INSERT example

Use the following StackQL query and manifest file to create a new quotas resource.

/*+ create */
INSERT INTO azure.quota.quotas (
resourceName,
scope,
properties
)
SELECT
'{{ resourceName }}',
'{{ scope }}',
'{{ properties }}'
;

UPDATE example

Updates a quotas resource.

/*+ update */
UPDATE azure.quota.quotas
SET
properties = '{{ properties }}'
WHERE
resourceName = '{{ resourceName }}'
AND scope = '{{ scope }}';