replication_network_mappings
Creates, updates, deletes, gets or lists a replication_network_mappings
resource.
Overview
Name | replication_network_mappings |
Type | Resource |
Id | azure.recovery_services_site_recovery.replication_network_mappings |
Fields
- vw_replication_network_mappings
- replication_network_mappings
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
fabricName | text | field from the properties object |
fabric_specific_settings | text | field from the properties object |
location | text | Resource Location |
networkMappingName | text | field from the properties object |
networkName | text | field from the properties object |
primary_fabric_friendly_name | text | field from the properties object |
primary_network_friendly_name | text | field from the properties object |
primary_network_id | text | field from the properties object |
recovery_fabric_arm_id | text | field from the properties object |
recovery_fabric_friendly_name | text | field from the properties object |
recovery_network_friendly_name | text | field from the properties object |
recovery_network_id | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
state | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource Type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource Name |
location | string | Resource Location |
properties | object | Network Mapping Properties. |
type | string | Resource Type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionId | Gets the details of an ASR network mapping. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Lists all ASR network mappings in the vault. |
list_by_replication_networks | SELECT | fabricName, networkName, resourceGroupName, resourceName, subscriptionId | Lists all ASR network mappings for the specified network. |
create | INSERT | fabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to create an ASR network mapping. |
delete | DELETE | fabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionId | The operation to delete a network mapping. |
update | UPDATE | fabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionId | The operation to update an ASR network mapping. |
SELECT
examples
Lists all ASR network mappings in the vault.
- vw_replication_network_mappings
- replication_network_mappings
SELECT
id,
name,
fabricName,
fabric_specific_settings,
location,
networkMappingName,
networkName,
primary_fabric_friendly_name,
primary_network_friendly_name,
primary_network_id,
recovery_fabric_arm_id,
recovery_fabric_friendly_name,
recovery_network_friendly_name,
recovery_network_id,
resourceGroupName,
resourceName,
state,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_network_mappings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_network_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_network_mappings
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_network_mappings (
fabricName,
networkMappingName,
networkName,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ fabricName }}',
'{{ networkMappingName }}',
'{{ networkName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: recoveryFabricName
value: string
- name: recoveryNetworkId
value: string
- name: fabricSpecificDetails
value:
- name: instanceType
value: string
UPDATE
example
Updates a replication_network_mappings
resource.
/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_network_mappings
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND networkMappingName = '{{ networkMappingName }}'
AND networkName = '{{ networkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified replication_network_mappings
resource.
/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_network_mappings
WHERE fabricName = '{{ fabricName }}'
AND networkMappingName = '{{ networkMappingName }}'
AND networkName = '{{ networkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';