storages
Creates, updates, deletes, gets or lists a storages
resource.
Overview
Name | storages |
Type | Resource |
Id | azure.spring_apps.storages |
Fields
- vw_storages
- storages
Name | Datatype | Description |
---|---|---|
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
storageName | text | field from the properties object |
storage_type | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Storage resource payload. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, serviceName, storageName, subscriptionId | Get the storage resource. |
list | SELECT | resourceGroupName, serviceName, subscriptionId | List all the storages of one Azure Spring Apps resource. |
create_or_update | INSERT | resourceGroupName, serviceName, storageName, subscriptionId | Create or update storage resource. |
delete | DELETE | resourceGroupName, serviceName, storageName, subscriptionId | Delete the storage resource. |
SELECT
examples
List all the storages of one Azure Spring Apps resource.
- vw_storages
- storages
SELECT
resourceGroupName,
serviceName,
storageName,
storage_type,
subscriptionId
FROM azure.spring_apps.vw_storages
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.spring_apps.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.spring_apps.storages (
resourceGroupName,
serviceName,
storageName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ storageName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: storageType
value: string
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 }}';