Skip to main content

replication_storage_classification_mappings

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

Overview

Namereplication_storage_classification_mappings
TypeResource
Idazure.recovery_services_site_recovery.replication_storage_classification_mappings

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
fabricNametextfield from the properties object
locationtextResource Location
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
storageClassificationMappingNametextfield from the properties object
storageClassificationNametextfield from the properties object
subscriptionIdtextfield from the properties object
target_storage_classification_idtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, resourceGroupName, resourceName, storageClassificationMappingName, storageClassificationName, subscriptionIdGets the details of the specified storage classification mapping.
listSELECTresourceGroupName, resourceName, subscriptionIdLists the storage classification mappings in the vault.
list_by_replication_storage_classificationsSELECTfabricName, resourceGroupName, resourceName, storageClassificationName, subscriptionIdLists the storage classification mappings for the fabric.
createINSERTfabricName, resourceGroupName, resourceName, storageClassificationMappingName, storageClassificationName, subscriptionIdThe operation to create a storage classification mapping.
deleteDELETEfabricName, resourceGroupName, resourceName, storageClassificationMappingName, storageClassificationName, subscriptionIdThe operation to delete a storage classification mapping.

SELECT examples

Lists the storage classification mappings in the vault.

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 }}';

INSERT example

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

/*+ 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 }}'
;

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 }}';