Skip to main content

quotas

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

Overview

Namequotas
TypeResource
Idazure_stack.compute_admin.quotas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
locationstringLocation of the resource.
propertiesobjectCompute Quota properties.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, location, quotaNameGet an existing Compute Quota.
listselectsubscriptionId, locationGet a list of existing Compute quotas.
create_or_updateinsertsubscriptionId, location, quotaNameCreates or Updates a Compute Quota with the provided quota parameters.
deletedeletesubscriptionId, location, quotaNameDelete an existing Compute quota.

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
locationstringThe name of Azure region.
quotaNamestringName of the quota.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get an existing Compute Quota.

SELECT
id,
name,
location,
properties,
type
FROM azure_stack.compute_admin.quotas
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND quotaName = '{{ quotaName }}' -- required
;

INSERT examples

Creates or Updates a Compute Quota with the provided quota parameters.

INSERT INTO azure_stack.compute_admin.quotas (
data__properties,
data__location,
subscriptionId,
location,
quotaName
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ quotaName }}'
RETURNING
id,
name,
location,
properties,
type
;

DELETE examples

Delete an existing Compute quota.

DELETE FROM azure_stack.compute_admin.quotas
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND location = '{{ location }}' --required
AND quotaName = '{{ quotaName }}' --required
;