Skip to main content

replication_protection_container_mappings

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

Overview

Namereplication_protection_container_mappings
TypeResource
Idazure.recovery_services_site_recovery.replication_protection_container_mappings

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
fabricNametextfield from the properties object
healthtextfield from the properties object
health_error_detailstextfield from the properties object
locationtextResource Location
mappingNametextfield from the properties object
policy_friendly_nametextfield from the properties object
policy_idtextfield from the properties object
protectionContainerNametextfield from the properties object
provider_specific_detailstextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
source_fabric_friendly_nametextfield from the properties object
source_protection_container_friendly_nametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
target_fabric_friendly_nametextfield from the properties object
target_protection_container_friendly_nametextfield from the properties object
target_protection_container_idtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdGets the details of a protection container mapping.
listSELECTresourceGroupName, resourceName, subscriptionIdLists the protection container mappings in the vault.
list_by_replication_protection_containersSELECTfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdLists the protection container mappings for a protection container.
createINSERTfabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdThe operation to create a protection container mapping.
deleteDELETEfabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdThe operation to delete or remove a protection container mapping.
updateUPDATEfabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdThe operation to update protection container mapping.
purgeEXECfabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdThe operation to purge(force delete) a protection container mapping.

SELECT examples

Lists the protection container mappings in the vault.

SELECT
id,
name,
fabricName,
health,
health_error_details,
location,
mappingName,
policy_friendly_name,
policy_id,
protectionContainerName,
provider_specific_details,
resourceGroupName,
resourceName,
source_fabric_friendly_name,
source_protection_container_friendly_name,
state,
subscriptionId,
target_fabric_friendly_name,
target_protection_container_friendly_name,
target_protection_container_id,
type
FROM azure.recovery_services_site_recovery.vw_replication_protection_container_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_protection_container_mappings resource.

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_protection_container_mappings (
fabricName,
mappingName,
protectionContainerName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ fabricName }}',
'{{ mappingName }}',
'{{ protectionContainerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a replication_protection_container_mappings resource.

/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_protection_container_mappings
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND mappingName = '{{ mappingName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified replication_protection_container_mappings resource.

/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_protection_container_mappings
WHERE fabricName = '{{ fabricName }}'
AND mappingName = '{{ mappingName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';