Skip to main content

storage_domains

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

Overview

Namestorage_domains
TypeResource
Idazure_extras.storsimple_1200_series.storage_domains

Fields

NameDatatypeDescription
idtextThe identifier.
nametextThe name.
encryption_keytextfield from the properties object
encryption_statustextfield from the properties object
managerNametextfield from the properties object
resourceGroupNametextfield from the properties object
storageDomainNametextfield from the properties object
storage_account_credential_idstextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagerName, resourceGroupName, storageDomainName, subscriptionIdReturns the properties of the specified storage domain name.
list_by_managerSELECTmanagerName, resourceGroupName, subscriptionIdRetrieves all the storage domains in a manager.
create_or_updateINSERTmanagerName, resourceGroupName, storageDomainName, subscriptionId, data__propertiesCreates or updates the storage domain.
deleteDELETEmanagerName, resourceGroupName, storageDomainName, subscriptionIdDeletes the storage domain.

SELECT examples

Retrieves all the storage domains in a manager.

SELECT
id,
name,
encryption_key,
encryption_status,
managerName,
resourceGroupName,
storageDomainName,
storage_account_credential_ids,
subscriptionId,
type
FROM azure_extras.storsimple_1200_series.vw_storage_domains
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.storsimple_1200_series.storage_domains (
managerName,
resourceGroupName,
storageDomainName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ storageDomainName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified storage_domains resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_1200_series.storage_domains
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageDomainName = '{{ storageDomainName }}'
AND subscriptionId = '{{ subscriptionId }}';