Skip to main content

storage_quotas

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

Overview

Namestorage_quotas
TypeResource
Idazure_stack.storage_admin.storage_quotas

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource Name.
capacity_in_gbtextfield from the properties object
locationtextResource Location.
number_of_storage_accountstextfield from the properties object
quotaNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type.

Methods

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

SELECT examples

Returns a list of storage quotas at the given location.

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 }}';

INSERT example

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

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

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 }}';