Skip to main content

storage_services

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

Overview

Namestorage_services
TypeResource
Idazure_stack.storage_admin.storage_services

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource Name.
locationtextResource Location.
resourceGrouptextfield from the properties object
serviceNametextfield from the properties object
service_nametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroup, serviceName, subscriptionIdReturns the specified storage service.
createINSERTresourceGroup, serviceName, subscriptionIdCreate the specified storage resource.

SELECT examples

Returns the specified storage service.

SELECT
id,
name,
location,
resourceGroup,
serviceName,
service_name,
subscriptionId,
type
FROM azure_stack.storage_admin.vw_storage_services
WHERE resourceGroup = '{{ resourceGroup }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_stack.storage_admin.storage_services (
resourceGroup,
serviceName,
subscriptionId
)
SELECT
'{{ resourceGroup }}',
'{{ serviceName }}',
'{{ subscriptionId }}'
;