storage_quotas
Creates, updates, deletes, gets or lists a storage_quotas
resource.
Overview
Name | storage_quotas |
Type | Resource |
Id | azure_stack.storage_admin.storage_quotas |
Fields
- vw_storage_quotas
- storage_quotas
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource Name. |
capacity_in_gb | text | field from the properties object |
location | text | Resource Location. |
number_of_storage_accounts | text | field from the properties object |
quotaName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource Type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource Name. |
location | string | Resource Location. |
properties | object | Storage quota properties. |
type | string | Resource Type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | location, quotaName, subscriptionId | Returns the specified storage quota. |
list | SELECT | location, subscriptionId | Returns a list of storage quotas at the given location. |
create_or_update | INSERT | location, quotaName, subscriptionId | Create or update an existing storage quota. |
delete | DELETE | location, quotaName, subscriptionId | Delete an existing quota |
SELECT
examples
Returns a list of storage quotas at the given location.
- vw_storage_quotas
- storage_quotas
SELECT
id,
name,
capacity_in_gb,
location,
number_of_storage_accounts,
quotaName,
subscriptionId,
type
FROM azure_stack.storage_admin.vw_storage_quotas
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.storage_admin.storage_quotas
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new storage_quotas
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.storage_admin.storage_quotas (
location,
quotaName,
subscriptionId,
properties
)
SELECT
'{{ location }}',
'{{ quotaName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: numberOfStorageAccounts
value: integer
- name: capacityInGb
value: integer
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
DELETE
example
Deletes the specified storage_quotas
resource.
/*+ delete */
DELETE FROM azure_stack.storage_admin.storage_quotas
WHERE location = '{{ location }}'
AND quotaName = '{{ quotaName }}'
AND subscriptionId = '{{ subscriptionId }}';