quotas
Creates, updates, deletes, gets or lists a quotas
resource.
Overview
Name | quotas |
Type | Resource |
Id | azure_stack.container_registry_admin.quotas |
Fields
- vw_quotas
- quotas
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
capacity_per_registry_in_gib | text | field from the properties object |
location | text | field from the properties object |
number_of_registries | text | field from the properties object |
quotaName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
properties | object | Container registry quota properties. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | location, quotaName, subscriptionId | Returns the specified container registry quota. |
list | SELECT | location, subscriptionId | Returns a list of container registry quotas at the given location. |
create_or_update | INSERT | location, quotaName, subscriptionId | Create or update an existing container registry quota. |
delete | DELETE | location, quotaName, subscriptionId | Delete an existing container registry quota |
SELECT
examples
Returns a list of container registry quotas at the given location.
- vw_quotas
- quotas
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 }}';
SELECT
id,
name,
properties,
type
FROM azure_stack.container_registry_admin.quotas
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new quotas
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.container_registry_admin.quotas (
location,
quotaName,
subscriptionId,
properties
)
SELECT
'{{ location }}',
'{{ quotaName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: numberOfRegistries
value: integer
- name: capacityPerRegistryInGiB
value: integer
- name: id
value: string
- name: name
value: string
- name: type
value: string
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 }}';