1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VpnaasSiteConnectionV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.VpnaasSiteConnectionV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPNAAS site connection you can get at documentation portal

    Manages a V2 site connection resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const conn1 = new opentelekomcloud.VpnaasSiteConnectionV2("conn1", {
        ikepolicyId: opentelekomcloud_vpnaas_ike_policy_v2.policy_2.id,
        ipsecpolicyId: opentelekomcloud_vpnaas_ipsec_policy_v2.policy_1.id,
        vpnserviceId: opentelekomcloud_vpnaas_service_v2.service_1.id,
        psk: "secret",
        peerAddress: "192.168.10.1",
        peerId: "192.168.10.1",
        localEpGroupId: opentelekomcloud_vpnaas_endpoint_group_v2.group_2.id,
        peerEpGroupId: opentelekomcloud_vpnaas_endpoint_group_v2.group_1.id,
        tags: {
            foo: "bar",
            key: "value",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    conn1 = opentelekomcloud.VpnaasSiteConnectionV2("conn1",
        ikepolicy_id=opentelekomcloud_vpnaas_ike_policy_v2["policy_2"]["id"],
        ipsecpolicy_id=opentelekomcloud_vpnaas_ipsec_policy_v2["policy_1"]["id"],
        vpnservice_id=opentelekomcloud_vpnaas_service_v2["service_1"]["id"],
        psk="secret",
        peer_address="192.168.10.1",
        peer_id="192.168.10.1",
        local_ep_group_id=opentelekomcloud_vpnaas_endpoint_group_v2["group_2"]["id"],
        peer_ep_group_id=opentelekomcloud_vpnaas_endpoint_group_v2["group_1"]["id"],
        tags={
            "foo": "bar",
            "key": "value",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewVpnaasSiteConnectionV2(ctx, "conn1", &opentelekomcloud.VpnaasSiteConnectionV2Args{
    			IkepolicyId:    pulumi.Any(opentelekomcloud_vpnaas_ike_policy_v2.Policy_2.Id),
    			IpsecpolicyId:  pulumi.Any(opentelekomcloud_vpnaas_ipsec_policy_v2.Policy_1.Id),
    			VpnserviceId:   pulumi.Any(opentelekomcloud_vpnaas_service_v2.Service_1.Id),
    			Psk:            pulumi.String("secret"),
    			PeerAddress:    pulumi.String("192.168.10.1"),
    			PeerId:         pulumi.String("192.168.10.1"),
    			LocalEpGroupId: pulumi.Any(opentelekomcloud_vpnaas_endpoint_group_v2.Group_2.Id),
    			PeerEpGroupId:  pulumi.Any(opentelekomcloud_vpnaas_endpoint_group_v2.Group_1.Id),
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    				"key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var conn1 = new Opentelekomcloud.VpnaasSiteConnectionV2("conn1", new()
        {
            IkepolicyId = opentelekomcloud_vpnaas_ike_policy_v2.Policy_2.Id,
            IpsecpolicyId = opentelekomcloud_vpnaas_ipsec_policy_v2.Policy_1.Id,
            VpnserviceId = opentelekomcloud_vpnaas_service_v2.Service_1.Id,
            Psk = "secret",
            PeerAddress = "192.168.10.1",
            PeerId = "192.168.10.1",
            LocalEpGroupId = opentelekomcloud_vpnaas_endpoint_group_v2.Group_2.Id,
            PeerEpGroupId = opentelekomcloud_vpnaas_endpoint_group_v2.Group_1.Id,
            Tags = 
            {
                { "foo", "bar" },
                { "key", "value" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpnaasSiteConnectionV2;
    import com.pulumi.opentelekomcloud.VpnaasSiteConnectionV2Args;
    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 conn1 = new VpnaasSiteConnectionV2("conn1", VpnaasSiteConnectionV2Args.builder()
                .ikepolicyId(opentelekomcloud_vpnaas_ike_policy_v2.policy_2().id())
                .ipsecpolicyId(opentelekomcloud_vpnaas_ipsec_policy_v2.policy_1().id())
                .vpnserviceId(opentelekomcloud_vpnaas_service_v2.service_1().id())
                .psk("secret")
                .peerAddress("192.168.10.1")
                .peerId("192.168.10.1")
                .localEpGroupId(opentelekomcloud_vpnaas_endpoint_group_v2.group_2().id())
                .peerEpGroupId(opentelekomcloud_vpnaas_endpoint_group_v2.group_1().id())
                .tags(Map.ofEntries(
                    Map.entry("foo", "bar"),
                    Map.entry("key", "value")
                ))
                .build());
    
        }
    }
    
    resources:
      conn1:
        type: opentelekomcloud:VpnaasSiteConnectionV2
        properties:
          ikepolicyId: ${opentelekomcloud_vpnaas_ike_policy_v2.policy_2.id}
          ipsecpolicyId: ${opentelekomcloud_vpnaas_ipsec_policy_v2.policy_1.id}
          vpnserviceId: ${opentelekomcloud_vpnaas_service_v2.service_1.id}
          psk: secret
          peerAddress: 192.168.10.1
          peerId: 192.168.10.1
          localEpGroupId: ${opentelekomcloud_vpnaas_endpoint_group_v2.group_2.id}
          peerEpGroupId: ${opentelekomcloud_vpnaas_endpoint_group_v2.group_1.id}
          tags:
            foo: bar
            key: value
    

    Create VpnaasSiteConnectionV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpnaasSiteConnectionV2(name: string, args: VpnaasSiteConnectionV2Args, opts?: CustomResourceOptions);
    @overload
    def VpnaasSiteConnectionV2(resource_name: str,
                               args: VpnaasSiteConnectionV2Args,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpnaasSiteConnectionV2(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               peer_address: Optional[str] = None,
                               peer_id: Optional[str] = None,
                               vpnservice_id: Optional[str] = None,
                               ikepolicy_id: Optional[str] = None,
                               psk: Optional[str] = None,
                               ipsecpolicy_id: Optional[str] = None,
                               peer_cidrs: Optional[Sequence[str]] = None,
                               local_ep_group_id: Optional[str] = None,
                               mtu: Optional[float] = None,
                               peer_ep_group_id: Optional[str] = None,
                               description: Optional[str] = None,
                               admin_state_up: Optional[bool] = None,
                               name: Optional[str] = None,
                               local_id: Optional[str] = None,
                               initiator: Optional[str] = None,
                               region: Optional[str] = None,
                               tags: Optional[Mapping[str, str]] = None,
                               tenant_id: Optional[str] = None,
                               timeouts: Optional[VpnaasSiteConnectionV2TimeoutsArgs] = None,
                               value_specs: Optional[Mapping[str, str]] = None,
                               vpnaas_site_connection_v2_id: Optional[str] = None,
                               dpds: Optional[Sequence[VpnaasSiteConnectionV2DpdArgs]] = None)
    func NewVpnaasSiteConnectionV2(ctx *Context, name string, args VpnaasSiteConnectionV2Args, opts ...ResourceOption) (*VpnaasSiteConnectionV2, error)
    public VpnaasSiteConnectionV2(string name, VpnaasSiteConnectionV2Args args, CustomResourceOptions? opts = null)
    public VpnaasSiteConnectionV2(String name, VpnaasSiteConnectionV2Args args)
    public VpnaasSiteConnectionV2(String name, VpnaasSiteConnectionV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpnaasSiteConnectionV2
    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 VpnaasSiteConnectionV2Args
    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 VpnaasSiteConnectionV2Args
    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 VpnaasSiteConnectionV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnaasSiteConnectionV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnaasSiteConnectionV2Args
    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 vpnaasSiteConnectionV2Resource = new Opentelekomcloud.VpnaasSiteConnectionV2("vpnaasSiteConnectionV2Resource", new()
    {
        PeerAddress = "string",
        PeerId = "string",
        VpnserviceId = "string",
        IkepolicyId = "string",
        Psk = "string",
        IpsecpolicyId = "string",
        PeerCidrs = new[]
        {
            "string",
        },
        LocalEpGroupId = "string",
        Mtu = 0,
        PeerEpGroupId = "string",
        Description = "string",
        AdminStateUp = false,
        Name = "string",
        LocalId = "string",
        Initiator = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.VpnaasSiteConnectionV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        ValueSpecs = 
        {
            { "string", "string" },
        },
        VpnaasSiteConnectionV2Id = "string",
        Dpds = new[]
        {
            new Opentelekomcloud.Inputs.VpnaasSiteConnectionV2DpdArgs
            {
                Action = "string",
                Interval = 0,
                Timeout = 0,
            },
        },
    });
    
    example, err := opentelekomcloud.NewVpnaasSiteConnectionV2(ctx, "vpnaasSiteConnectionV2Resource", &opentelekomcloud.VpnaasSiteConnectionV2Args{
    	PeerAddress:   pulumi.String("string"),
    	PeerId:        pulumi.String("string"),
    	VpnserviceId:  pulumi.String("string"),
    	IkepolicyId:   pulumi.String("string"),
    	Psk:           pulumi.String("string"),
    	IpsecpolicyId: pulumi.String("string"),
    	PeerCidrs: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LocalEpGroupId: pulumi.String("string"),
    	Mtu:            pulumi.Float64(0),
    	PeerEpGroupId:  pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	AdminStateUp:   pulumi.Bool(false),
    	Name:           pulumi.String("string"),
    	LocalId:        pulumi.String("string"),
    	Initiator:      pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TenantId: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.VpnaasSiteConnectionV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	ValueSpecs: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VpnaasSiteConnectionV2Id: pulumi.String("string"),
    	Dpds: opentelekomcloud.VpnaasSiteConnectionV2DpdArray{
    		&opentelekomcloud.VpnaasSiteConnectionV2DpdArgs{
    			Action:   pulumi.String("string"),
    			Interval: pulumi.Float64(0),
    			Timeout:  pulumi.Float64(0),
    		},
    	},
    })
    
    var vpnaasSiteConnectionV2Resource = new VpnaasSiteConnectionV2("vpnaasSiteConnectionV2Resource", VpnaasSiteConnectionV2Args.builder()
        .peerAddress("string")
        .peerId("string")
        .vpnserviceId("string")
        .ikepolicyId("string")
        .psk("string")
        .ipsecpolicyId("string")
        .peerCidrs("string")
        .localEpGroupId("string")
        .mtu(0)
        .peerEpGroupId("string")
        .description("string")
        .adminStateUp(false)
        .name("string")
        .localId("string")
        .initiator("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .tenantId("string")
        .timeouts(VpnaasSiteConnectionV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .valueSpecs(Map.of("string", "string"))
        .vpnaasSiteConnectionV2Id("string")
        .dpds(VpnaasSiteConnectionV2DpdArgs.builder()
            .action("string")
            .interval(0)
            .timeout(0)
            .build())
        .build());
    
    vpnaas_site_connection_v2_resource = opentelekomcloud.VpnaasSiteConnectionV2("vpnaasSiteConnectionV2Resource",
        peer_address="string",
        peer_id="string",
        vpnservice_id="string",
        ikepolicy_id="string",
        psk="string",
        ipsecpolicy_id="string",
        peer_cidrs=["string"],
        local_ep_group_id="string",
        mtu=0,
        peer_ep_group_id="string",
        description="string",
        admin_state_up=False,
        name="string",
        local_id="string",
        initiator="string",
        region="string",
        tags={
            "string": "string",
        },
        tenant_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        value_specs={
            "string": "string",
        },
        vpnaas_site_connection_v2_id="string",
        dpds=[{
            "action": "string",
            "interval": 0,
            "timeout": 0,
        }])
    
    const vpnaasSiteConnectionV2Resource = new opentelekomcloud.VpnaasSiteConnectionV2("vpnaasSiteConnectionV2Resource", {
        peerAddress: "string",
        peerId: "string",
        vpnserviceId: "string",
        ikepolicyId: "string",
        psk: "string",
        ipsecpolicyId: "string",
        peerCidrs: ["string"],
        localEpGroupId: "string",
        mtu: 0,
        peerEpGroupId: "string",
        description: "string",
        adminStateUp: false,
        name: "string",
        localId: "string",
        initiator: "string",
        region: "string",
        tags: {
            string: "string",
        },
        tenantId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        valueSpecs: {
            string: "string",
        },
        vpnaasSiteConnectionV2Id: "string",
        dpds: [{
            action: "string",
            interval: 0,
            timeout: 0,
        }],
    });
    
    type: opentelekomcloud:VpnaasSiteConnectionV2
    properties:
        adminStateUp: false
        description: string
        dpds:
            - action: string
              interval: 0
              timeout: 0
        ikepolicyId: string
        initiator: string
        ipsecpolicyId: string
        localEpGroupId: string
        localId: string
        mtu: 0
        name: string
        peerAddress: string
        peerCidrs:
            - string
        peerEpGroupId: string
        peerId: string
        psk: string
        region: string
        tags:
            string: string
        tenantId: string
        timeouts:
            create: string
            delete: string
            update: string
        valueSpecs:
            string: string
        vpnaasSiteConnectionV2Id: string
        vpnserviceId: string
    

    VpnaasSiteConnectionV2 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 VpnaasSiteConnectionV2 resource accepts the following input properties:

    IkepolicyId string
    The ID of the IKE policy. Changing this creates a new connection.
    IpsecpolicyId string
    The ID of the IPsec policy. Changing this creates a new connection.
    PeerAddress string
    The peer gateway public IPv4 or IPv6 address or FQDN.
    PeerId string
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    Psk string
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    VpnserviceId string
    The ID of the VPN service. Changing this creates a new connection.
    AdminStateUp bool
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    Description string
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    Dpds List<VpnaasSiteConnectionV2Dpd>
    A dictionary with dead peer detection (DPD) protocol controls.
    Initiator string
    A valid value is response-only or bi-directional.
    LocalEpGroupId string
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    LocalId string
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    Mtu double
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    Name string
    The name of the connection. Changing this updates the name of the existing connection.
    PeerCidrs List<string>
    Unique list of valid peer private CIDRs in the form <net_address>/.
    PeerEpGroupId string
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    Tags Dictionary<string, string>
    The key/value pairs to associate with the connection.
    TenantId string
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    Timeouts VpnaasSiteConnectionV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    VpnaasSiteConnectionV2Id string
    IkepolicyId string
    The ID of the IKE policy. Changing this creates a new connection.
    IpsecpolicyId string
    The ID of the IPsec policy. Changing this creates a new connection.
    PeerAddress string
    The peer gateway public IPv4 or IPv6 address or FQDN.
    PeerId string
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    Psk string
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    VpnserviceId string
    The ID of the VPN service. Changing this creates a new connection.
    AdminStateUp bool
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    Description string
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    Dpds []VpnaasSiteConnectionV2DpdArgs
    A dictionary with dead peer detection (DPD) protocol controls.
    Initiator string
    A valid value is response-only or bi-directional.
    LocalEpGroupId string
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    LocalId string
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    Mtu float64
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    Name string
    The name of the connection. Changing this updates the name of the existing connection.
    PeerCidrs []string
    Unique list of valid peer private CIDRs in the form <net_address>/.
    PeerEpGroupId string
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    Tags map[string]string
    The key/value pairs to associate with the connection.
    TenantId string
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    Timeouts VpnaasSiteConnectionV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional options.
    VpnaasSiteConnectionV2Id string
    ikepolicyId String
    The ID of the IKE policy. Changing this creates a new connection.
    ipsecpolicyId String
    The ID of the IPsec policy. Changing this creates a new connection.
    peerAddress String
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peerId String
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk String
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    vpnserviceId String
    The ID of the VPN service. Changing this creates a new connection.
    adminStateUp Boolean
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description String
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds List<VpnaasSiteConnectionV2Dpd>
    A dictionary with dead peer detection (DPD) protocol controls.
    initiator String
    A valid value is response-only or bi-directional.
    localEpGroupId String
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    localId String
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu Double
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name String
    The name of the connection. Changing this updates the name of the existing connection.
    peerCidrs List<String>
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peerEpGroupId String
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags Map<String,String>
    The key/value pairs to associate with the connection.
    tenantId String
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts VpnaasSiteConnectionV2Timeouts
    valueSpecs Map<String,String>
    Map of additional options.
    vpnaasSiteConnectionV2Id String
    ikepolicyId string
    The ID of the IKE policy. Changing this creates a new connection.
    ipsecpolicyId string
    The ID of the IPsec policy. Changing this creates a new connection.
    peerAddress string
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peerId string
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk string
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    vpnserviceId string
    The ID of the VPN service. Changing this creates a new connection.
    adminStateUp boolean
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description string
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds VpnaasSiteConnectionV2Dpd[]
    A dictionary with dead peer detection (DPD) protocol controls.
    initiator string
    A valid value is response-only or bi-directional.
    localEpGroupId string
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    localId string
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu number
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name string
    The name of the connection. Changing this updates the name of the existing connection.
    peerCidrs string[]
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peerEpGroupId string
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags {[key: string]: string}
    The key/value pairs to associate with the connection.
    tenantId string
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts VpnaasSiteConnectionV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional options.
    vpnaasSiteConnectionV2Id string
    ikepolicy_id str
    The ID of the IKE policy. Changing this creates a new connection.
    ipsecpolicy_id str
    The ID of the IPsec policy. Changing this creates a new connection.
    peer_address str
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peer_id str
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk str
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    vpnservice_id str
    The ID of the VPN service. Changing this creates a new connection.
    admin_state_up bool
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description str
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds Sequence[VpnaasSiteConnectionV2DpdArgs]
    A dictionary with dead peer detection (DPD) protocol controls.
    initiator str
    A valid value is response-only or bi-directional.
    local_ep_group_id str
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    local_id str
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu float
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name str
    The name of the connection. Changing this updates the name of the existing connection.
    peer_cidrs Sequence[str]
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peer_ep_group_id str
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags Mapping[str, str]
    The key/value pairs to associate with the connection.
    tenant_id str
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts VpnaasSiteConnectionV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional options.
    vpnaas_site_connection_v2_id str
    ikepolicyId String
    The ID of the IKE policy. Changing this creates a new connection.
    ipsecpolicyId String
    The ID of the IPsec policy. Changing this creates a new connection.
    peerAddress String
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peerId String
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk String
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    vpnserviceId String
    The ID of the VPN service. Changing this creates a new connection.
    adminStateUp Boolean
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description String
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds List<Property Map>
    A dictionary with dead peer detection (DPD) protocol controls.
    initiator String
    A valid value is response-only or bi-directional.
    localEpGroupId String
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    localId String
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu Number
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name String
    The name of the connection. Changing this updates the name of the existing connection.
    peerCidrs List<String>
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peerEpGroupId String
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags Map<String>
    The key/value pairs to associate with the connection.
    tenantId String
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional options.
    vpnaasSiteConnectionV2Id String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpnaasSiteConnectionV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VpnaasSiteConnectionV2 Resource

    Get an existing VpnaasSiteConnectionV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpnaasSiteConnectionV2State, opts?: CustomResourceOptions): VpnaasSiteConnectionV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            description: Optional[str] = None,
            dpds: Optional[Sequence[VpnaasSiteConnectionV2DpdArgs]] = None,
            ikepolicy_id: Optional[str] = None,
            initiator: Optional[str] = None,
            ipsecpolicy_id: Optional[str] = None,
            local_ep_group_id: Optional[str] = None,
            local_id: Optional[str] = None,
            mtu: Optional[float] = None,
            name: Optional[str] = None,
            peer_address: Optional[str] = None,
            peer_cidrs: Optional[Sequence[str]] = None,
            peer_ep_group_id: Optional[str] = None,
            peer_id: Optional[str] = None,
            psk: Optional[str] = None,
            region: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[VpnaasSiteConnectionV2TimeoutsArgs] = None,
            value_specs: Optional[Mapping[str, str]] = None,
            vpnaas_site_connection_v2_id: Optional[str] = None,
            vpnservice_id: Optional[str] = None) -> VpnaasSiteConnectionV2
    func GetVpnaasSiteConnectionV2(ctx *Context, name string, id IDInput, state *VpnaasSiteConnectionV2State, opts ...ResourceOption) (*VpnaasSiteConnectionV2, error)
    public static VpnaasSiteConnectionV2 Get(string name, Input<string> id, VpnaasSiteConnectionV2State? state, CustomResourceOptions? opts = null)
    public static VpnaasSiteConnectionV2 get(String name, Output<String> id, VpnaasSiteConnectionV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpnaasSiteConnectionV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminStateUp bool
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    Description string
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    Dpds List<VpnaasSiteConnectionV2Dpd>
    A dictionary with dead peer detection (DPD) protocol controls.
    IkepolicyId string
    The ID of the IKE policy. Changing this creates a new connection.
    Initiator string
    A valid value is response-only or bi-directional.
    IpsecpolicyId string
    The ID of the IPsec policy. Changing this creates a new connection.
    LocalEpGroupId string
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    LocalId string
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    Mtu double
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    Name string
    The name of the connection. Changing this updates the name of the existing connection.
    PeerAddress string
    The peer gateway public IPv4 or IPv6 address or FQDN.
    PeerCidrs List<string>
    Unique list of valid peer private CIDRs in the form <net_address>/.
    PeerEpGroupId string
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    PeerId string
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    Psk string
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    Tags Dictionary<string, string>
    The key/value pairs to associate with the connection.
    TenantId string
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    Timeouts VpnaasSiteConnectionV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    VpnaasSiteConnectionV2Id string
    VpnserviceId string
    The ID of the VPN service. Changing this creates a new connection.
    AdminStateUp bool
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    Description string
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    Dpds []VpnaasSiteConnectionV2DpdArgs
    A dictionary with dead peer detection (DPD) protocol controls.
    IkepolicyId string
    The ID of the IKE policy. Changing this creates a new connection.
    Initiator string
    A valid value is response-only or bi-directional.
    IpsecpolicyId string
    The ID of the IPsec policy. Changing this creates a new connection.
    LocalEpGroupId string
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    LocalId string
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    Mtu float64
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    Name string
    The name of the connection. Changing this updates the name of the existing connection.
    PeerAddress string
    The peer gateway public IPv4 or IPv6 address or FQDN.
    PeerCidrs []string
    Unique list of valid peer private CIDRs in the form <net_address>/.
    PeerEpGroupId string
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    PeerId string
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    Psk string
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    Tags map[string]string
    The key/value pairs to associate with the connection.
    TenantId string
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    Timeouts VpnaasSiteConnectionV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional options.
    VpnaasSiteConnectionV2Id string
    VpnserviceId string
    The ID of the VPN service. Changing this creates a new connection.
    adminStateUp Boolean
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description String
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds List<VpnaasSiteConnectionV2Dpd>
    A dictionary with dead peer detection (DPD) protocol controls.
    ikepolicyId String
    The ID of the IKE policy. Changing this creates a new connection.
    initiator String
    A valid value is response-only or bi-directional.
    ipsecpolicyId String
    The ID of the IPsec policy. Changing this creates a new connection.
    localEpGroupId String
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    localId String
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu Double
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name String
    The name of the connection. Changing this updates the name of the existing connection.
    peerAddress String
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peerCidrs List<String>
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peerEpGroupId String
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    peerId String
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk String
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags Map<String,String>
    The key/value pairs to associate with the connection.
    tenantId String
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts VpnaasSiteConnectionV2Timeouts
    valueSpecs Map<String,String>
    Map of additional options.
    vpnaasSiteConnectionV2Id String
    vpnserviceId String
    The ID of the VPN service. Changing this creates a new connection.
    adminStateUp boolean
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description string
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds VpnaasSiteConnectionV2Dpd[]
    A dictionary with dead peer detection (DPD) protocol controls.
    ikepolicyId string
    The ID of the IKE policy. Changing this creates a new connection.
    initiator string
    A valid value is response-only or bi-directional.
    ipsecpolicyId string
    The ID of the IPsec policy. Changing this creates a new connection.
    localEpGroupId string
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    localId string
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu number
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name string
    The name of the connection. Changing this updates the name of the existing connection.
    peerAddress string
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peerCidrs string[]
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peerEpGroupId string
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    peerId string
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk string
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags {[key: string]: string}
    The key/value pairs to associate with the connection.
    tenantId string
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts VpnaasSiteConnectionV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional options.
    vpnaasSiteConnectionV2Id string
    vpnserviceId string
    The ID of the VPN service. Changing this creates a new connection.
    admin_state_up bool
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description str
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds Sequence[VpnaasSiteConnectionV2DpdArgs]
    A dictionary with dead peer detection (DPD) protocol controls.
    ikepolicy_id str
    The ID of the IKE policy. Changing this creates a new connection.
    initiator str
    A valid value is response-only or bi-directional.
    ipsecpolicy_id str
    The ID of the IPsec policy. Changing this creates a new connection.
    local_ep_group_id str
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    local_id str
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu float
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name str
    The name of the connection. Changing this updates the name of the existing connection.
    peer_address str
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peer_cidrs Sequence[str]
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peer_ep_group_id str
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    peer_id str
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk str
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags Mapping[str, str]
    The key/value pairs to associate with the connection.
    tenant_id str
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts VpnaasSiteConnectionV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional options.
    vpnaas_site_connection_v2_id str
    vpnservice_id str
    The ID of the VPN service. Changing this creates a new connection.
    adminStateUp Boolean
    The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing connection.
    description String
    The human-readable description for the connection. Changing this updates the description of the existing connection.
    dpds List<Property Map>
    A dictionary with dead peer detection (DPD) protocol controls.
    ikepolicyId String
    The ID of the IKE policy. Changing this creates a new connection.
    initiator String
    A valid value is response-only or bi-directional.
    ipsecpolicyId String
    The ID of the IPsec policy. Changing this creates a new connection.
    localEpGroupId String
    The ID for the endpoint group that contains private subnets for the local side of the connection. You must specify this parameter with the peer_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service. Changing this updates the existing connection.
    localId String
    An ID to be used instead of the external IP address for a virtual router used in traffic between instances on different networks in east-west traffic. Most often, local ID would be domain name, email address, etc. If this is not configured then the external IP address will be used as the ID.
    mtu Number
    The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
    name String
    The name of the connection. Changing this updates the name of the existing connection.
    peerAddress String
    The peer gateway public IPv4 or IPv6 address or FQDN.
    peerCidrs List<String>
    Unique list of valid peer private CIDRs in the form <net_address>/.
    peerEpGroupId String
    The ID for the endpoint group that contains private CIDRs in the form <net_address>/ for the peer side of the connection. You must specify this parameter with the local_ep_group_id parameter unless in backward-compatible mode where peer_cidrs is provided with a subnet_id for the VPN service.
    peerId String
    The peer router identity for authentication. A valid value is an IPv4 address, IPv6 address, e-mail address, key ID, or FQDN. Typically, this value matches the peer_address value. Changing this updates the existing policy.
    psk String
    The pre-shared key. A PSK can contain 6 to 128 characters. Spaces and the following special characters are not allowed: <>&?*'".
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create an IPSec site connection. If omitted, the region argument of the provider is used. Changing this creates a new site connection.
    tags Map<String>
    The key/value pairs to associate with the connection.
    tenantId String
    The owner of the connection. Required if admin wants to create a connection for another project. Changing this creates a new connection.
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional options.
    vpnaasSiteConnectionV2Id String
    vpnserviceId String
    The ID of the VPN service. Changing this creates a new connection.

    Supporting Types

    VpnaasSiteConnectionV2Dpd, VpnaasSiteConnectionV2DpdArgs

    Action string
    The dead peer detection (DPD) action. A valid value is clear, hold, restart, disabled or restart-by-peer. Default value is hold.
    Interval double
    The dead peer detection (DPD) interval, in seconds. A valid value is a positive integer. Default is 30.
    Timeout double
    The dead peer detection (DPD) timeout in seconds. A valid value is a positive integer that is greater than the DPD interval value. Default is 120.
    Action string
    The dead peer detection (DPD) action. A valid value is clear, hold, restart, disabled or restart-by-peer. Default value is hold.
    Interval float64
    The dead peer detection (DPD) interval, in seconds. A valid value is a positive integer. Default is 30.
    Timeout float64
    The dead peer detection (DPD) timeout in seconds. A valid value is a positive integer that is greater than the DPD interval value. Default is 120.
    action String
    The dead peer detection (DPD) action. A valid value is clear, hold, restart, disabled or restart-by-peer. Default value is hold.
    interval Double
    The dead peer detection (DPD) interval, in seconds. A valid value is a positive integer. Default is 30.
    timeout Double
    The dead peer detection (DPD) timeout in seconds. A valid value is a positive integer that is greater than the DPD interval value. Default is 120.
    action string
    The dead peer detection (DPD) action. A valid value is clear, hold, restart, disabled or restart-by-peer. Default value is hold.
    interval number
    The dead peer detection (DPD) interval, in seconds. A valid value is a positive integer. Default is 30.
    timeout number
    The dead peer detection (DPD) timeout in seconds. A valid value is a positive integer that is greater than the DPD interval value. Default is 120.
    action str
    The dead peer detection (DPD) action. A valid value is clear, hold, restart, disabled or restart-by-peer. Default value is hold.
    interval float
    The dead peer detection (DPD) interval, in seconds. A valid value is a positive integer. Default is 30.
    timeout float
    The dead peer detection (DPD) timeout in seconds. A valid value is a positive integer that is greater than the DPD interval value. Default is 120.
    action String
    The dead peer detection (DPD) action. A valid value is clear, hold, restart, disabled or restart-by-peer. Default value is hold.
    interval Number
    The dead peer detection (DPD) interval, in seconds. A valid value is a positive integer. Default is 30.
    timeout Number
    The dead peer detection (DPD) timeout in seconds. A valid value is a positive integer that is greater than the DPD interval value. Default is 120.

    VpnaasSiteConnectionV2Timeouts, VpnaasSiteConnectionV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Site Connections can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/vpnaasSiteConnectionV2:VpnaasSiteConnectionV2 conn_1 832cb7f3-59fe-40cf-8f64-8350ffc03272
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud