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.
Uses Azure REST API version 2024-10-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01.
Other available API versions: 2023-02-01, 2023-04-01, 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native recoveryservices [ApiVersion]
. See the version guide for details.
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
This property is required. string - The unique name of the resource.
- args
This property is required. ReplicationNetworkMappingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. ReplicationNetworkMappingArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ReplicationNetworkMappingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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 This property is required. Changes to this property will trigger replacement.
- Primary fabric name.
- Network
Name This property is required. Changes to this property will trigger replacement.
- Primary network name.
- Properties
This property is required. Pulumi.Azure Native. Recovery Services. Inputs. Create Network Mapping Input Properties - Input properties for creating network mapping.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- Resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- Network
Mapping Name Changes to this property will trigger replacement.
- Network mapping name.
- Fabric
Name This property is required. Changes to this property will trigger replacement.
- Primary fabric name.
- Network
Name This property is required. Changes to this property will trigger replacement.
- Primary network name.
- Properties
This property is required. CreateNetwork Mapping Input Properties Args - Input properties for creating network mapping.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- Resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- Network
Mapping Name Changes to this property will trigger replacement.
- Network mapping name.
- fabric
Name This property is required. Changes to this property will trigger replacement.
- Primary fabric name.
- network
Name This property is required. Changes to this property will trigger replacement.
- Primary network name.
- properties
This property is required. CreateNetwork Mapping Input Properties - Input properties for creating network mapping.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- network
Mapping Name Changes to this property will trigger replacement.
- Network mapping name.
- fabric
Name This property is required. Changes to this property will trigger replacement.
- Primary fabric name.
- network
Name This property is required. Changes to this property will trigger replacement.
- Primary network name.
- properties
This property is required. CreateNetwork Mapping Input Properties - Input properties for creating network mapping.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- network
Mapping Name Changes to this property will trigger replacement.
- Network mapping name.
- fabric_
name This property is required. Changes to this property will trigger replacement.
- Primary fabric name.
- network_
name This property is required. Changes to this property will trigger replacement.
- Primary network name.
- properties
This property is required. CreateNetwork Mapping Input Properties Args - Input properties for creating network mapping.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource_
name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- network_
mapping_ name Changes to this property will trigger replacement.
- Network mapping name.
- fabric
Name This property is required. Changes to this property will trigger replacement.
- Primary fabric name.
- network
Name This property is required. Changes to this property will trigger replacement.
- Primary network name.
- properties
This property is required. Property Map - Input properties for creating network mapping.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- network
Mapping Name Changes to this property will trigger replacement.
- Network mapping name.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicationNetworkMapping resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource Name
- Type string
- Resource Type
- Location string
- Resource Location
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource Name
- Type string
- Resource Type
- Location string
- Resource Location
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource Name
- type String
- Resource Type
- location String
- Resource Location
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource Name
- type string
- Resource Type
- location string
- Resource Location
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource Name
- type str
- Resource Type
- location str
- Resource Location
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource Name
- type String
- Resource Type
- location String
- Resource Location
Supporting Types
AzureToAzureCreateNetworkMappingInput, AzureToAzureCreateNetworkMappingInputArgs
- Primary
Network Id This property is required. string - The primary azure vnet Id.
- Primary
Network Id This property is required. string - The primary azure vnet Id.
- primary
Network Id This property is required. String - The primary azure vnet Id.
- primary
Network Id This property is required. string - The primary azure vnet Id.
- primary_
network_ id This property is required. str - The primary azure vnet Id.
- primary
Network Id This property is required. String - 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 Id This property is required. string - 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 Id This property is required. string - 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 Id This property is required. String - 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 Id This property is required. string - 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_ id This property is required. str - 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 Id This property is required. String - 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