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
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
locationstringResource Location.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetStorageClassificationIdstringTarget storage object Id.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, fabric_name, storage_classification_name, storage_classification_mapping_name, subscription_idGets the details of a storage classification mapping. Gets the details of the specified storage classification mapping.
list_by_replication_storage_classificationsselectresource_group_name, resource_name, fabric_name, storage_classification_name, subscription_idGets the list of storage classification mappings objects under a storage. Lists the storage classification mappings for the fabric.
listselectresource_group_name, resource_name, subscription_idGets the list of storage classification mappings objects under a vault. Lists the storage classification mappings in the vault.
createinsertresource_group_name, resource_name, fabric_name, storage_classification_name, storage_classification_mapping_name, subscription_idCreate storage classification mapping. The operation to create a storage classification mapping.
deletedeleteresource_group_name, resource_name, fabric_name, storage_classification_name, storage_classification_mapping_name, subscription_idDelete a storage classification mapping. The 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
fabric_namestringFabric name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the Vault. Required.
storage_classification_mapping_namestringStorage classification mapping name. Required.
storage_classification_namestringStorage classification name. Required.
subscription_idstring

SELECT examples

Gets the details of a storage classification mapping. Gets the details of the specified storage classification mapping.

SELECT
id,
name,
location,
systemData,
targetStorageClassificationId,
type
FROM azure.recovery_services_site_recovery.replication_storage_classification_mappings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND storage_classification_name = '{{ storage_classification_name }}' -- required
AND storage_classification_mapping_name = '{{ storage_classification_mapping_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create storage classification mapping. The operation to create a storage classification mapping.

INSERT INTO azure.recovery_services_site_recovery.replication_storage_classification_mappings (
properties,
resource_group_name,
resource_name,
fabric_name,
storage_classification_name,
storage_classification_mapping_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ fabric_name }}',
'{{ storage_classification_name }}',
'{{ storage_classification_mapping_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

DELETE examples

Delete a storage classification mapping. The operation to delete a storage classification mapping.

DELETE FROM azure.recovery_services_site_recovery.replication_storage_classification_mappings
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND storage_classification_name = '{{ storage_classification_name }}' --required
AND storage_classification_mapping_name = '{{ storage_classification_mapping_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;