azure-native.recoveryservices.ReplicationNetworkMapping
Explore with Pulumi AI
Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels as long as there is no difference in structure or method signature. Since there were no base Models for certain fields and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety with references to base models to facilitate extensions in subsequent versions. Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2018-07-10.
Other available API versions: 2021-03-01, 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-10-01.
Example Usage
Creates network mapping.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var replicationNetworkMapping = new AzureNative.RecoveryServices.ReplicationNetworkMapping("replicationNetworkMapping", new()
{
FabricName = "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac",
NetworkMappingName = "corpe2amap",
NetworkName = "e2267b5c-2650-49bd-ab3f-d66aae694c06",
Properties = new AzureNative.RecoveryServices.Inputs.CreateNetworkMappingInputPropertiesArgs
{
FabricSpecificDetails = new AzureNative.RecoveryServices.Inputs.VmmToAzureCreateNetworkMappingInputArgs
{
InstanceType = "VmmToAzure",
},
RecoveryFabricName = "Microsoft Azure",
RecoveryNetworkId = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai",
},
ResourceGroupName = "srcBvte2a14C27",
ResourceName = "srce2avaultbvtaC27",
});
});
package main
import (
recoveryservices "github.com/pulumi/pulumi-azure-native-sdk/recoveryservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recoveryservices.NewReplicationNetworkMapping(ctx, "replicationNetworkMapping", &recoveryservices.ReplicationNetworkMappingArgs{
FabricName: pulumi.String("b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac"),
NetworkMappingName: pulumi.String("corpe2amap"),
NetworkName: pulumi.String("e2267b5c-2650-49bd-ab3f-d66aae694c06"),
Properties: &recoveryservices.CreateNetworkMappingInputPropertiesArgs{
FabricSpecificDetails: recoveryservices.VmmToAzureCreateNetworkMappingInput{
InstanceType: "VmmToAzure",
},
RecoveryFabricName: pulumi.String("Microsoft Azure"),
RecoveryNetworkId: pulumi.String("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai"),
},
ResourceGroupName: pulumi.String("srcBvte2a14C27"),
ResourceName: pulumi.String("srce2avaultbvtaC27"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.recoveryservices.ReplicationNetworkMapping;
import com.pulumi.azurenative.recoveryservices.ReplicationNetworkMappingArgs;
import com.pulumi.azurenative.recoveryservices.inputs.CreateNetworkMappingInputPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var replicationNetworkMapping = new ReplicationNetworkMapping("replicationNetworkMapping", ReplicationNetworkMappingArgs.builder()
.fabricName("b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac")
.networkMappingName("corpe2amap")
.networkName("e2267b5c-2650-49bd-ab3f-d66aae694c06")
.properties(CreateNetworkMappingInputPropertiesArgs.builder()
.fabricSpecificDetails(VmmToAzureCreateNetworkMappingInputArgs.builder()
.instanceType("VmmToAzure")
.build())
.recoveryFabricName("Microsoft Azure")
.recoveryNetworkId("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai")
.build())
.resourceGroupName("srcBvte2a14C27")
.resourceName("srce2avaultbvtaC27")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
replication_network_mapping = azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMapping",
fabric_name="b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac",
network_mapping_name="corpe2amap",
network_name="e2267b5c-2650-49bd-ab3f-d66aae694c06",
properties={
"fabric_specific_details": {
"instance_type": "VmmToAzure",
},
"recovery_fabric_name": "Microsoft Azure",
"recovery_network_id": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai",
},
resource_group_name="srcBvte2a14C27",
resource_name_="srce2avaultbvtaC27")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const replicationNetworkMapping = new azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMapping", {
fabricName: "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac",
networkMappingName: "corpe2amap",
networkName: "e2267b5c-2650-49bd-ab3f-d66aae694c06",
properties: {
fabricSpecificDetails: {
instanceType: "VmmToAzure",
},
recoveryFabricName: "Microsoft Azure",
recoveryNetworkId: "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai",
},
resourceGroupName: "srcBvte2a14C27",
resourceName: "srce2avaultbvtaC27",
});
resources:
replicationNetworkMapping:
type: azure-native:recoveryservices:ReplicationNetworkMapping
properties:
fabricName: b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac
networkMappingName: corpe2amap
networkName: e2267b5c-2650-49bd-ab3f-d66aae694c06
properties:
fabricSpecificDetails:
instanceType: VmmToAzure
recoveryFabricName: Microsoft Azure
recoveryNetworkId: /subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai
resourceGroupName: srcBvte2a14C27
resourceName: srce2avaultbvtaC27
Create ReplicationNetworkMapping Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReplicationNetworkMapping(name: string, args: ReplicationNetworkMappingArgs, opts?: CustomResourceOptions);
@overload
def ReplicationNetworkMapping(resource_name: str,
args: ReplicationNetworkMappingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReplicationNetworkMapping(resource_name: str,
opts: Optional[ResourceOptions] = None,
fabric_name: Optional[str] = None,
network_name: Optional[str] = None,
properties: Optional[CreateNetworkMappingInputPropertiesArgs] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
network_mapping_name: Optional[str] = None)
func NewReplicationNetworkMapping(ctx *Context, name string, args ReplicationNetworkMappingArgs, opts ...ResourceOption) (*ReplicationNetworkMapping, error)
public ReplicationNetworkMapping(string name, ReplicationNetworkMappingArgs args, CustomResourceOptions? opts = null)
public ReplicationNetworkMapping(String name, ReplicationNetworkMappingArgs args)
public ReplicationNetworkMapping(String name, ReplicationNetworkMappingArgs args, CustomResourceOptions options)
type: azure-native:recoveryservices:ReplicationNetworkMapping
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReplicationNetworkMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReplicationNetworkMappingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReplicationNetworkMappingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplicationNetworkMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplicationNetworkMappingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var replicationNetworkMappingResource = new AzureNative.RecoveryServices.ReplicationNetworkMapping("replicationNetworkMappingResource", new()
{
FabricName = "string",
NetworkName = "string",
Properties = new AzureNative.RecoveryServices.Inputs.CreateNetworkMappingInputPropertiesArgs
{
RecoveryNetworkId = "string",
FabricSpecificDetails = new AzureNative.RecoveryServices.Inputs.AzureToAzureCreateNetworkMappingInputArgs
{
InstanceType = "AzureToAzure",
PrimaryNetworkId = "string",
},
RecoveryFabricName = "string",
},
ResourceGroupName = "string",
ResourceName = "string",
NetworkMappingName = "string",
});
example, err := recoveryservices.NewReplicationNetworkMapping(ctx, "replicationNetworkMappingResource", &recoveryservices.ReplicationNetworkMappingArgs{
FabricName: pulumi.String("string"),
NetworkName: pulumi.String("string"),
Properties: &recoveryservices.CreateNetworkMappingInputPropertiesArgs{
RecoveryNetworkId: pulumi.String("string"),
FabricSpecificDetails: recoveryservices.AzureToAzureCreateNetworkMappingInput{
InstanceType: "AzureToAzure",
PrimaryNetworkId: "string",
},
RecoveryFabricName: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
ResourceName: pulumi.String("string"),
NetworkMappingName: pulumi.String("string"),
})
var replicationNetworkMappingResource = new ReplicationNetworkMapping("replicationNetworkMappingResource", ReplicationNetworkMappingArgs.builder()
.fabricName("string")
.networkName("string")
.properties(CreateNetworkMappingInputPropertiesArgs.builder()
.recoveryNetworkId("string")
.fabricSpecificDetails(AzureToAzureCreateNetworkMappingInputArgs.builder()
.instanceType("AzureToAzure")
.primaryNetworkId("string")
.build())
.recoveryFabricName("string")
.build())
.resourceGroupName("string")
.resourceName("string")
.networkMappingName("string")
.build());
replication_network_mapping_resource = azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMappingResource",
fabric_name="string",
network_name="string",
properties={
"recovery_network_id": "string",
"fabric_specific_details": {
"instance_type": "AzureToAzure",
"primary_network_id": "string",
},
"recovery_fabric_name": "string",
},
resource_group_name="string",
resource_name_="string",
network_mapping_name="string")
const replicationNetworkMappingResource = new azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMappingResource", {
fabricName: "string",
networkName: "string",
properties: {
recoveryNetworkId: "string",
fabricSpecificDetails: {
instanceType: "AzureToAzure",
primaryNetworkId: "string",
},
recoveryFabricName: "string",
},
resourceGroupName: "string",
resourceName: "string",
networkMappingName: "string",
});
type: azure-native:recoveryservices:ReplicationNetworkMapping
properties:
fabricName: string
networkMappingName: string
networkName: string
properties:
fabricSpecificDetails:
instanceType: AzureToAzure
primaryNetworkId: string
recoveryFabricName: string
recoveryNetworkId: string
resourceGroupName: string
resourceName: string
ReplicationNetworkMapping Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReplicationNetworkMapping resource accepts the following input properties:
- Fabric
Name string - Primary fabric name.
- Network
Name string - Primary network name.
- Properties
Pulumi.
Azure Native. Recovery Services. Inputs. Create Network Mapping Input Properties - Input properties for creating network mapping.
- Resource
Group stringName - The name of the resource group where the recovery services vault is present.
- Resource
Name string - The name of the recovery services vault.
- Network
Mapping stringName - Network mapping name.
- Fabric
Name string - Primary fabric name.
- Network
Name string - Primary network name.
- Properties
Create
Network Mapping Input Properties Args - Input properties for creating network mapping.
- Resource
Group stringName - The name of the resource group where the recovery services vault is present.
- Resource
Name string - The name of the recovery services vault.
- Network
Mapping stringName - Network mapping name.
- fabric
Name String - Primary fabric name.
- network
Name String - Primary network name.
- properties
Create
Network Mapping Input Properties - Input properties for creating network mapping.
- resource
Group StringName - The name of the resource group where the recovery services vault is present.
- resource
Name String - The name of the recovery services vault.
- network
Mapping StringName - Network mapping name.
- fabric
Name string - Primary fabric name.
- network
Name string - Primary network name.
- properties
Create
Network Mapping Input Properties - Input properties for creating network mapping.
- resource
Group stringName - The name of the resource group where the recovery services vault is present.
- resource
Name string - The name of the recovery services vault.
- network
Mapping stringName - Network mapping name.
- fabric_
name str - Primary fabric name.
- network_
name str - Primary network name.
- properties
Create
Network Mapping Input Properties Args - Input properties for creating network mapping.
- resource_
group_ strname - The name of the resource group where the recovery services vault is present.
- resource_
name str - The name of the recovery services vault.
- network_
mapping_ strname - Network mapping name.
- fabric
Name String - Primary fabric name.
- network
Name String - Primary network name.
- properties Property Map
- Input properties for creating network mapping.
- resource
Group StringName - The name of the resource group where the recovery services vault is present.
- resource
Name String - The name of the recovery services vault.
- network
Mapping StringName - Network mapping name.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicationNetworkMapping resource produces the following output properties:
Supporting Types
AzureToAzureCreateNetworkMappingInput, AzureToAzureCreateNetworkMappingInputArgs
- Primary
Network stringId - The primary azure vnet Id.
- Primary
Network stringId - The primary azure vnet Id.
- primary
Network StringId - The primary azure vnet Id.
- primary
Network stringId - The primary azure vnet Id.
- primary_
network_ strid - The primary azure vnet Id.
- primary
Network StringId - The primary azure vnet Id.
AzureToAzureNetworkMappingSettingsResponse, AzureToAzureNetworkMappingSettingsResponseArgs
- Primary
Fabric stringLocation - The primary fabric location.
- Recovery
Fabric stringLocation - The recovery fabric location.
- Primary
Fabric stringLocation - The primary fabric location.
- Recovery
Fabric stringLocation - The recovery fabric location.
- primary
Fabric StringLocation - The primary fabric location.
- recovery
Fabric StringLocation - The recovery fabric location.
- primary
Fabric stringLocation - The primary fabric location.
- recovery
Fabric stringLocation - The recovery fabric location.
- primary_
fabric_ strlocation - The primary fabric location.
- recovery_
fabric_ strlocation - The recovery fabric location.
- primary
Fabric StringLocation - The primary fabric location.
- recovery
Fabric StringLocation - The recovery fabric location.
CreateNetworkMappingInputProperties, CreateNetworkMappingInputPropertiesArgs
- Recovery
Network stringId - Recovery network Id.
- Fabric
Specific Pulumi.Details Azure | Pulumi.Native. Recovery Services. Inputs. Azure To Azure Create Network Mapping Input Azure | Pulumi.Native. Recovery Services. Inputs. Vmm To Azure Create Network Mapping Input Azure Native. Recovery Services. Inputs. Vmm To Vmm Create Network Mapping Input - Fabric specific input properties.
- Recovery
Fabric stringName - Recovery fabric Name.
- Recovery
Network stringId - Recovery network Id.
- Fabric
Specific AzureDetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input - Fabric specific input properties.
- Recovery
Fabric stringName - Recovery fabric Name.
- recovery
Network StringId - Recovery network Id.
- fabric
Specific AzureDetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input - Fabric specific input properties.
- recovery
Fabric StringName - Recovery fabric Name.
- recovery
Network stringId - Recovery network Id.
- fabric
Specific AzureDetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input - Fabric specific input properties.
- recovery
Fabric stringName - Recovery fabric Name.
- recovery_
network_ strid - Recovery network Id.
- fabric_
specific_ Azuredetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input - Fabric specific input properties.
- recovery_
fabric_ strname - Recovery fabric Name.
- recovery
Network StringId - Recovery network Id.
- fabric
Specific Property Map | Property Map | Property MapDetails - Fabric specific input properties.
- recovery
Fabric StringName - Recovery fabric Name.
NetworkMappingPropertiesResponse, NetworkMappingPropertiesResponseArgs
- Fabric
Specific Pulumi.Settings Azure | Pulumi.Native. Recovery Services. Inputs. Azure To Azure Network Mapping Settings Response Azure | Pulumi.Native. Recovery Services. Inputs. Vmm To Azure Network Mapping Settings Response Azure Native. Recovery Services. Inputs. Vmm To Vmm Network Mapping Settings Response - The fabric specific settings.
- Primary
Fabric stringFriendly Name - The primary fabric friendly name.
- Primary
Network stringFriendly Name - The primary network friendly name.
- Primary
Network stringId - The primary network id for network mapping.
- Recovery
Fabric stringArm Id - The recovery fabric ARM id.
- Recovery
Fabric stringFriendly Name - The recovery fabric friendly name.
- Recovery
Network stringFriendly Name - The recovery network friendly name.
- Recovery
Network stringId - The recovery network id for network mapping.
- State string
- The pairing state for network mapping.
- Fabric
Specific AzureSettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response - The fabric specific settings.
- Primary
Fabric stringFriendly Name - The primary fabric friendly name.
- Primary
Network stringFriendly Name - The primary network friendly name.
- Primary
Network stringId - The primary network id for network mapping.
- Recovery
Fabric stringArm Id - The recovery fabric ARM id.
- Recovery
Fabric stringFriendly Name - The recovery fabric friendly name.
- Recovery
Network stringFriendly Name - The recovery network friendly name.
- Recovery
Network stringId - The recovery network id for network mapping.
- State string
- The pairing state for network mapping.
- fabric
Specific AzureSettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response - The fabric specific settings.
- primary
Fabric StringFriendly Name - The primary fabric friendly name.
- primary
Network StringFriendly Name - The primary network friendly name.
- primary
Network StringId - The primary network id for network mapping.
- recovery
Fabric StringArm Id - The recovery fabric ARM id.
- recovery
Fabric StringFriendly Name - The recovery fabric friendly name.
- recovery
Network StringFriendly Name - The recovery network friendly name.
- recovery
Network StringId - The recovery network id for network mapping.
- state String
- The pairing state for network mapping.
- fabric
Specific AzureSettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response - The fabric specific settings.
- primary
Fabric stringFriendly Name - The primary fabric friendly name.
- primary
Network stringFriendly Name - The primary network friendly name.
- primary
Network stringId - The primary network id for network mapping.
- recovery
Fabric stringArm Id - The recovery fabric ARM id.
- recovery
Fabric stringFriendly Name - The recovery fabric friendly name.
- recovery
Network stringFriendly Name - The recovery network friendly name.
- recovery
Network stringId - The recovery network id for network mapping.
- state string
- The pairing state for network mapping.
- fabric_
specific_ Azuresettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response - The fabric specific settings.
- primary_
fabric_ strfriendly_ name - The primary fabric friendly name.
- primary_
network_ strfriendly_ name - The primary network friendly name.
- primary_
network_ strid - The primary network id for network mapping.
- recovery_
fabric_ strarm_ id - The recovery fabric ARM id.
- recovery_
fabric_ strfriendly_ name - The recovery fabric friendly name.
- recovery_
network_ strfriendly_ name - The recovery network friendly name.
- recovery_
network_ strid - The recovery network id for network mapping.
- state str
- The pairing state for network mapping.
- fabric
Specific Property Map | Property Map | Property MapSettings - The fabric specific settings.
- primary
Fabric StringFriendly Name - The primary fabric friendly name.
- primary
Network StringFriendly Name - The primary network friendly name.
- primary
Network StringId - The primary network id for network mapping.
- recovery
Fabric StringArm Id - The recovery fabric ARM id.
- recovery
Fabric StringFriendly Name - The recovery fabric friendly name.
- recovery
Network StringFriendly Name - The recovery network friendly name.
- recovery
Network StringId - The recovery network id for network mapping.
- state String
- The pairing state for network mapping.
VmmToAzureCreateNetworkMappingInput, VmmToAzureCreateNetworkMappingInputArgs
VmmToAzureNetworkMappingSettingsResponse, VmmToAzureNetworkMappingSettingsResponseArgs
VmmToVmmCreateNetworkMappingInput, VmmToVmmCreateNetworkMappingInputArgs
VmmToVmmNetworkMappingSettingsResponse, VmmToVmmNetworkMappingSettingsResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:recoveryservices:ReplicationNetworkMapping corpe2amap /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0