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
The following fields are returned by SELECT queries:
- get
- list_by_replication_storage_classifications
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
location | string | Resource Location. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetStorageClassificationId | string | Target storage object Id. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
location | string | Resource Location. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetStorageClassificationId | string | Target storage object Id. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
location | string | Resource Location. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetStorageClassificationId | string | Target storage object Id. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, resource_name, fabric_name, storage_classification_name, storage_classification_mapping_name, subscription_id | Gets the details of a storage classification mapping. Gets the details of the specified storage classification mapping. | |
list_by_replication_storage_classifications | select | resource_group_name, resource_name, fabric_name, storage_classification_name, subscription_id | Gets the list of storage classification mappings objects under a storage. Lists the storage classification mappings for the fabric. | |
list | select | resource_group_name, resource_name, subscription_id | Gets the list of storage classification mappings objects under a vault. Lists the storage classification mappings in the vault. | |
create | insert | resource_group_name, resource_name, fabric_name, storage_classification_name, storage_classification_mapping_name, subscription_id | Create storage classification mapping. The operation to create a storage classification mapping. | |
delete | delete | resource_group_name, resource_name, fabric_name, storage_classification_name, storage_classification_mapping_name, subscription_id | Delete 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.
| Name | Datatype | Description |
|---|---|---|
fabric_name | string | Fabric name. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
resource_name | string | The name of the Vault. Required. |
storage_classification_mapping_name | string | Storage classification mapping name. Required. |
storage_classification_name | string | Storage classification name. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_replication_storage_classifications
- list
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
;
Gets the list of storage classification mappings objects under a storage. Lists the storage classification mappings for the fabric.
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 subscription_id = '{{ subscription_id }}' -- required
;
Gets the list of storage classification mappings objects under a vault. Lists the storage classification mappings in the vault.
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 subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: replication_storage_classification_mappings
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the replication_storage_classification_mappings resource.
- name: resource_name
value: "{{ resource_name }}"
description: Required parameter for the replication_storage_classification_mappings resource.
- name: fabric_name
value: "{{ fabric_name }}"
description: Required parameter for the replication_storage_classification_mappings resource.
- name: storage_classification_name
value: "{{ storage_classification_name }}"
description: Required parameter for the replication_storage_classification_mappings resource.
- name: storage_classification_mapping_name
value: "{{ storage_classification_mapping_name }}"
description: Required parameter for the replication_storage_classification_mappings resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the replication_storage_classification_mappings resource.
- name: properties
description: |
Storage mapping input properties.
value:
targetStorageClassificationId: "{{ targetStorageClassificationId }}"
DELETE examples
- delete
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
;