Skip to main content

storages

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

Overview

Namestorages
TypeResource
Idazure.spring_apps.storages

Fields

NameDatatypeDescription
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
storageNametextfield from the properties object
storage_typetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceName, storageName, subscriptionIdGet the storage resource.
listSELECTresourceGroupName, serviceName, subscriptionIdList all the storages of one Azure Spring Apps resource.
create_or_updateINSERTresourceGroupName, serviceName, storageName, subscriptionIdCreate or update storage resource.
deleteDELETEresourceGroupName, serviceName, storageName, subscriptionIdDelete the storage resource.

SELECT examples

List all the storages of one Azure Spring Apps resource.

SELECT
resourceGroupName,
serviceName,
storageName,
storage_type,
subscriptionId
FROM azure.spring_apps.vw_storages
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.storages (
resourceGroupName,
serviceName,
storageName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ storageName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified storages resource.

/*+ delete */
DELETE FROM azure.spring_apps.storages
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND storageName = '{{ storageName }}'
AND subscriptionId = '{{ subscriptionId }}';