storage_domains
Creates, updates, deletes, gets or lists a storage_domains
resource.
Overview
Name | storage_domains |
Type | Resource |
Id | azure_extras.storsimple_1200_series.storage_domains |
Fields
- vw_storage_domains
- storage_domains
Name | Datatype | Description |
---|---|---|
id | text | The identifier. |
name | text | The name. |
encryption_key | text | field from the properties object |
encryption_status | text | field from the properties object |
managerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
storageDomainName | text | field from the properties object |
storage_account_credential_ids | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type. |
Name | Datatype | Description |
---|---|---|
id | string | The identifier. |
name | string | The name. |
properties | object | The storage domain properties. |
type | string | The type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | managerName, resourceGroupName, storageDomainName, subscriptionId | Returns the properties of the specified storage domain name. |
list_by_manager | SELECT | managerName, resourceGroupName, subscriptionId | Retrieves all the storage domains in a manager. |
create_or_update | INSERT | managerName, resourceGroupName, storageDomainName, subscriptionId, data__properties | Creates or updates the storage domain. |
delete | DELETE | managerName, resourceGroupName, storageDomainName, subscriptionId | Deletes the storage domain. |
SELECT
examples
Retrieves all the storage domains in a manager.
- vw_storage_domains
- storage_domains
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 }}';
SELECT
id,
name,
properties,
type
FROM azure_extras.storsimple_1200_series.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: storageAccountCredentialIds
value:
- string
- name: encryptionKey
value:
- name: value
value: string
- name: encryptionCertificateThumbprint
value: string
- name: encryptionAlgorithm
value: string
- name: encryptionStatus
value: string
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 }}';