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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource Name
locationstringResource Location
propertiesobjectProperties of the storage mapping object.
typestringResource Type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceName, resourceGroupName, subscriptionId, fabricName, storageClassificationName, storageClassificationMappingNameapi-versionGets the details of the specified storage classification mapping.
list_by_replication_storage_classificationsselectresourceName, resourceGroupName, subscriptionId, fabricName, storageClassificationNameapi-versionLists the storage classification mappings for the fabric.
listselectresourceName, resourceGroupName, subscriptionIdapi-versionLists the storage classification mappings in the vault.
createinsertresourceName, resourceGroupName, subscriptionId, fabricName, storageClassificationName, storageClassificationMappingNameapi-versionThe operation to create a storage classification mapping.
deletedeleteresourceName, resourceGroupName, subscriptionId, fabricName, storageClassificationName, storageClassificationMappingNameapi-versionThe operation to delete a storage classification mapping.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
fabricNamestringFabric name.
resourceGroupNamestringThe name of the resource group where the recovery services vault is present.
resourceNamestringThe name of the recovery services vault.
storageClassificationMappingNamestringStorage classification mapping name.
storageClassificationNamestringStorage classification name.
subscriptionIdstringThe subscription Id.
api-versionstringClient Api Version.

SELECT examples

Gets the details of the specified storage classification mapping.

SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_storage_classification_mappings
WHERE resourceName = '{{ resourceName }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND fabricName = '{{ fabricName }}' -- required
AND storageClassificationName = '{{ storageClassificationName }}' -- required
AND storageClassificationMappingName = '{{ storageClassificationMappingName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

The operation to create a storage classification mapping.

INSERT INTO azure.recovery_services_site_recovery.replication_storage_classification_mappings (
data__properties,
resourceName,
resourceGroupName,
subscriptionId,
fabricName,
storageClassificationName,
storageClassificationMappingName,
api-version
)
SELECT
'{{ properties }}',
'{{ resourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ fabricName }}',
'{{ storageClassificationName }}',
'{{ storageClassificationMappingName }}',
'{{ api-version }}'
RETURNING
id,
name,
location,
properties,
type
;

DELETE examples

The operation to delete a storage classification mapping.

DELETE FROM azure.recovery_services_site_recovery.replication_storage_classification_mappings
WHERE resourceName = '{{ resourceName }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND fabricName = '{{ fabricName }}' --required
AND storageClassificationName = '{{ storageClassificationName }}' --required
AND storageClassificationMappingName = '{{ storageClassificationMappingName }}' --required
AND api-version = '{{ api-version }}'
;