Skip to main content

replication_network_mappings

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

Overview

Namereplication_network_mappings
TypeResource
Idazure.recovery_services_site_recovery.replication_network_mappings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource Name
locationstringResource Location
propertiesobjectThe Network Mapping Properties.
typestringResource Type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceName, resourceGroupName, subscriptionId, fabricName, networkName, networkMappingNameapi-versionGets the details of an ASR network mapping.
list_by_replication_networksselectresourceName, resourceGroupName, subscriptionId, fabricName, networkNameapi-versionLists all ASR network mappings for the specified network.
listselectresourceName, resourceGroupName, subscriptionIdapi-versionLists all ASR network mappings in the vault.
createinsertresourceName, resourceGroupName, subscriptionId, fabricName, networkName, networkMappingName, data__propertiesapi-versionThe operation to create an ASR network mapping.
updateupdateresourceName, resourceGroupName, subscriptionId, fabricName, networkName, networkMappingNameapi-versionThe operation to update an ASR network mapping.
deletedeleteresourceName, resourceGroupName, subscriptionId, fabricName, networkName, networkMappingNameapi-versionThe operation to delete a network 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
fabricNamestringPrimary fabric name.
networkMappingNamestringARM Resource Name for network mapping.
networkNamestringPrimary network 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 an ASR network mapping.

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

INSERT examples

The operation to create an ASR network mapping.

INSERT INTO azure.recovery_services_site_recovery.replication_network_mappings (
data__properties,
resourceName,
resourceGroupName,
subscriptionId,
fabricName,
networkName,
networkMappingName,
api-version
)
SELECT
'{{ properties }}' /* required */,
'{{ resourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ fabricName }}',
'{{ networkName }}',
'{{ networkMappingName }}',
'{{ api-version }}'
RETURNING
id,
name,
location,
properties,
type
;

UPDATE examples

The operation to update an ASR network mapping.

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

DELETE examples

The operation to delete a network mapping.

DELETE FROM azure.recovery_services_site_recovery.replication_network_mappings
WHERE resourceName = '{{ resourceName }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND fabricName = '{{ fabricName }}' --required
AND networkName = '{{ networkName }}' --required
AND networkMappingName = '{{ networkMappingName }}' --required
AND api-version = '{{ api-version }}'
;