replication_storage_classification_mappings
Creates, updates, deletes, gets or lists a replication_storage_classification_mappings
resource.
Overview
Name | replication_storage_classification_mappings |
Type | Resource |
Id | azure.recovery_services_site_recovery.replication_storage_classification_mappings |
Fields
- vw_replication_storage_classification_mappings
- replication_storage_classification_mappings
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
fabricName | text | field from the properties object |
location | text | Resource Location |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
storageClassificationMappingName | text | field from the properties object |
storageClassificationName | text | field from the properties object |
subscriptionId | text | field from the properties object |
target_storage_classification_id | text | field from the properties object |
type | text | Resource Type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource Name |
location | string | Resource Location |
properties | object | Storage mapping properties. |
type | string | Resource Type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, resourceGroupName, resourceName, storageClassificationMappingName, storageClassificationName, subscriptionId | Gets the details of the specified storage classification mapping. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Lists the storage classification mappings in the vault. |
list_by_replication_storage_classifications | SELECT | fabricName, resourceGroupName, resourceName, storageClassificationName, subscriptionId | Lists the storage classification mappings for the fabric. |
create | INSERT | fabricName, resourceGroupName, resourceName, storageClassificationMappingName, storageClassificationName, subscriptionId | The operation to create a storage classification mapping. |
delete | DELETE | fabricName, resourceGroupName, resourceName, storageClassificationMappingName, storageClassificationName, subscriptionId | The operation to delete a storage classification mapping. |
SELECT
examples
Lists the storage classification mappings in the vault.
- vw_replication_storage_classification_mappings
- replication_storage_classification_mappings
SELECT
id,
name,
fabricName,
location,
resourceGroupName,
resourceName,
storageClassificationMappingName,
storageClassificationName,
subscriptionId,
target_storage_classification_id,
type
FROM azure.recovery_services_site_recovery.vw_replication_storage_classification_mappings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_storage_classification_mappings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new replication_storage_classification_mappings
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_storage_classification_mappings (
fabricName,
resourceGroupName,
resourceName,
storageClassificationMappingName,
storageClassificationName,
subscriptionId,
properties
)
SELECT
'{{ fabricName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ storageClassificationMappingName }}',
'{{ storageClassificationName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: targetStorageClassificationId
value: string
DELETE
example
Deletes the specified replication_storage_classification_mappings
resource.
/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_storage_classification_mappings
WHERE fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND storageClassificationMappingName = '{{ storageClassificationMappingName }}'
AND storageClassificationName = '{{ storageClassificationName }}'
AND subscriptionId = '{{ subscriptionId }}';