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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource Name
locationstringResource Location
propertiesobjectThe custom data.
typestringResource Type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, mappingNameapi-versionGets the details of a protection container mapping.
list_by_replication_protection_containersselectresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerNameapi-versionLists the protection container mappings for a protection container.
listselectresourceName, resourceGroupName, subscriptionIdapi-versionLists the protection container mappings in the vault.
createinsertresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, mappingNameapi-versionThe operation to create a protection container mapping.
updateupdateresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, mappingNameapi-versionThe operation to update protection container mapping.
purgeexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, mappingNameapi-versionThe operation to purge(force delete) a protection container mapping.
deleteexecresourceName, resourceGroupName, subscriptionId, fabricName, protectionContainerName, mappingNameapi-versionThe operation to delete or remove a protection container 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.
mappingNamestringProtection container mapping name.
protectionContainerNamestringProtection container name.
resourceGroupNamestringThe name of the resource group where the recovery services vault is present.
resourceNamestringThe name of the recovery services vault.
subscriptionIdstringThe subscription Id.
api-versionstringClient Api Version.

SELECT examples

Gets the details of a protection container mapping.

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

INSERT examples

The operation to create a protection container mapping.

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

UPDATE examples

The operation to update protection container mapping.

UPDATE azure.recovery_services_site_recovery.replication_protection_container_mappings
SET
data__properties = '{{ properties }}'
WHERE
resourceName = '{{ resourceName }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND fabricName = '{{ fabricName }}' --required
AND protectionContainerName = '{{ protectionContainerName }}' --required
AND mappingName = '{{ mappingName }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
location,
properties,
type;

Lifecycle Methods

The operation to purge(force delete) a protection container mapping.

EXEC azure.recovery_services_site_recovery.replication_protection_container_mappings.purge 
@resourceName='{{ resourceName }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@fabricName='{{ fabricName }}' --required,
@protectionContainerName='{{ protectionContainerName }}' --required,
@mappingName='{{ mappingName }}' --required,
@api-version='{{ api-version }}'
;