quotas
Creates, updates, deletes, gets or lists a quotas resource.
Overview
| Name | quotas |
| Type | Resource |
| Id | azure_stack.container_registry_admin.quotas |
Fields
The following fields are returned by SELECT queries:
- get
- list
OK -- The container registry quota has been returned.
| 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" |
OK -- The list of container registry quotas has been returned.
| 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
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | subscriptionId, location, quotaName | Returns the specified container registry quota. | |
list | select | subscriptionId, location | Returns a list of container registry quotas at the given location. | |
create_or_update | insert | subscriptionId, location, quotaName | Create or update an existing container registry quota. | |
delete | delete | subscriptionId, location, quotaName | Delete 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.
| Name | Datatype | Description |
|---|---|---|
location | string | The name of Azure region. |
quotaName | string | The name of the container registry quota. |
subscriptionId | string | The ID of the target subscription. |
SELECT examples
- get
- list
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
;
Returns a list of container registry quotas at the given location.
SELECT
id,
name,
properties,
type
FROM azure_stack.container_registry_admin.quotas
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
;
INSERT examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: quotas
props:
- name: subscriptionId
value: string
description: Required parameter for the quotas resource.
- name: location
value: string
description: Required parameter for the quotas resource.
- name: quotaName
value: string
description: Required parameter for the quotas resource.
- name: properties
value: object
description: |
Container registry quota properties.
DELETE examples
- delete
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
;