Skip to main content

quotas

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

Overview

Namequotas
TypeResource
Idazure_stack.container_registry_admin.quotas

Fields

The following fields are returned by SELECT queries:

OK -- The container registry quota has been returned.

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectContainer registry quota properties.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, location, quotaNameReturns the specified container registry quota.
listselectsubscriptionId, locationReturns a list of container registry quotas at the given location.
create_or_updateinsertsubscriptionId, location, quotaNameCreate or update an existing container registry quota.
deletedeletesubscriptionId, location, quotaNameDelete an existing container registry 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.
quotaNamestringThe name of the container registry quota.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Returns the specified container registry quota.

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

INSERT examples

Create or update an existing container registry quota.

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

DELETE examples

Delete an existing container registry quota

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