Skip to main content

quotas

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

Overview

Namequotas
TypeResource
Idazure_stack.container_registry_admin.quotas

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
capacity_per_registry_in_gibtextfield from the properties object
locationtextfield from the properties object
number_of_registriestextfield from the properties object
quotaNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, quotaName, subscriptionIdReturns the specified container registry quota.
listSELECTlocation, subscriptionIdReturns a list of container registry quotas at the given location.
create_or_updateINSERTlocation, quotaName, subscriptionIdCreate or update an existing container registry quota.
deleteDELETElocation, quotaName, subscriptionIdDelete an existing container registry quota

SELECT examples

Returns a list of container registry quotas at the given location.

SELECT
id,
name,
capacity_per_registry_in_gib,
location,
number_of_registries,
quotaName,
subscriptionId,
type
FROM azure_stack.container_registry_admin.vw_quotas
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_stack.container_registry_admin.quotas (
location,
quotaName,
subscriptionId,
properties
)
SELECT
'{{ location }}',
'{{ quotaName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified quotas resource.

/*+ delete */
DELETE FROM azure_stack.container_registry_admin.quotas
WHERE location = '{{ location }}'
AND quotaName = '{{ quotaName }}'
AND subscriptionId = '{{ subscriptionId }}';