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

opentelekomcloud.EnterpriseVpnConnectionV5

Explore with Pulumi AI

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

    Create EnterpriseVpnConnectionV5 Resource

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

    Constructor syntax

    new EnterpriseVpnConnectionV5(name: string, args: EnterpriseVpnConnectionV5Args, opts?: CustomResourceOptions);
    @overload
    def EnterpriseVpnConnectionV5(resource_name: str,
                                  args: EnterpriseVpnConnectionV5Args,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnterpriseVpnConnectionV5(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  customer_gateway_id: Optional[str] = None,
                                  vpn_type: Optional[str] = None,
                                  psk: Optional[str] = None,
                                  gateway_id: Optional[str] = None,
                                  gateway_ip: Optional[str] = None,
                                  name: Optional[str] = None,
                                  ikepolicy: Optional[EnterpriseVpnConnectionV5IkepolicyArgs] = None,
                                  ipsecpolicy: Optional[EnterpriseVpnConnectionV5IpsecpolicyArgs] = None,
                                  ha_role: Optional[str] = None,
                                  peer_subnets: Optional[Sequence[str]] = None,
                                  policy_rules: Optional[Sequence[EnterpriseVpnConnectionV5PolicyRuleArgs]] = None,
                                  enterprise_vpn_connection_v5_id: Optional[str] = None,
                                  tags: Optional[Mapping[str, str]] = None,
                                  timeouts: Optional[EnterpriseVpnConnectionV5TimeoutsArgs] = None,
                                  tunnel_local_address: Optional[str] = None,
                                  tunnel_peer_address: Optional[str] = None,
                                  enable_nqa: Optional[bool] = None)
    func NewEnterpriseVpnConnectionV5(ctx *Context, name string, args EnterpriseVpnConnectionV5Args, opts ...ResourceOption) (*EnterpriseVpnConnectionV5, error)
    public EnterpriseVpnConnectionV5(string name, EnterpriseVpnConnectionV5Args args, CustomResourceOptions? opts = null)
    public EnterpriseVpnConnectionV5(String name, EnterpriseVpnConnectionV5Args args)
    public EnterpriseVpnConnectionV5(String name, EnterpriseVpnConnectionV5Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:EnterpriseVpnConnectionV5
    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 EnterpriseVpnConnectionV5Args
    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 EnterpriseVpnConnectionV5Args
    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 EnterpriseVpnConnectionV5Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnterpriseVpnConnectionV5Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnterpriseVpnConnectionV5Args
    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 enterpriseVpnConnectionV5Resource = new Opentelekomcloud.EnterpriseVpnConnectionV5("enterpriseVpnConnectionV5Resource", new()
    {
        CustomerGatewayId = "string",
        VpnType = "string",
        Psk = "string",
        GatewayId = "string",
        GatewayIp = "string",
        Name = "string",
        Ikepolicy = new Opentelekomcloud.Inputs.EnterpriseVpnConnectionV5IkepolicyArgs
        {
            AuthenticationAlgorithm = "string",
            AuthenticationMethod = "string",
            DhGroup = "string",
            Dpd = new Opentelekomcloud.Inputs.EnterpriseVpnConnectionV5IkepolicyDpdArgs
            {
                Interval = 0,
                Msg = "string",
                Timeout = 0,
            },
            EncryptionAlgorithm = "string",
            IkeVersion = "string",
            LifetimeSeconds = 0,
            LocalId = "string",
            LocalIdType = "string",
            PeerId = "string",
            PeerIdType = "string",
            PhaseOneNegotiationMode = "string",
        },
        Ipsecpolicy = new Opentelekomcloud.Inputs.EnterpriseVpnConnectionV5IpsecpolicyArgs
        {
            AuthenticationAlgorithm = "string",
            EncapsulationMode = "string",
            EncryptionAlgorithm = "string",
            LifetimeSeconds = 0,
            Pfs = "string",
            TransformProtocol = "string",
        },
        HaRole = "string",
        PeerSubnets = new[]
        {
            "string",
        },
        PolicyRules = new[]
        {
            new Opentelekomcloud.Inputs.EnterpriseVpnConnectionV5PolicyRuleArgs
            {
                Destinations = new[]
                {
                    "string",
                },
                RuleIndex = 0,
                Source = "string",
            },
        },
        EnterpriseVpnConnectionV5Id = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.EnterpriseVpnConnectionV5TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        TunnelLocalAddress = "string",
        TunnelPeerAddress = "string",
        EnableNqa = false,
    });
    
    example, err := opentelekomcloud.NewEnterpriseVpnConnectionV5(ctx, "enterpriseVpnConnectionV5Resource", &opentelekomcloud.EnterpriseVpnConnectionV5Args{
    	CustomerGatewayId: pulumi.String("string"),
    	VpnType:           pulumi.String("string"),
    	Psk:               pulumi.String("string"),
    	GatewayId:         pulumi.String("string"),
    	GatewayIp:         pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Ikepolicy: &opentelekomcloud.EnterpriseVpnConnectionV5IkepolicyArgs{
    		AuthenticationAlgorithm: pulumi.String("string"),
    		AuthenticationMethod:    pulumi.String("string"),
    		DhGroup:                 pulumi.String("string"),
    		Dpd: &opentelekomcloud.EnterpriseVpnConnectionV5IkepolicyDpdArgs{
    			Interval: pulumi.Float64(0),
    			Msg:      pulumi.String("string"),
    			Timeout:  pulumi.Float64(0),
    		},
    		EncryptionAlgorithm:     pulumi.String("string"),
    		IkeVersion:              pulumi.String("string"),
    		LifetimeSeconds:         pulumi.Float64(0),
    		LocalId:                 pulumi.String("string"),
    		LocalIdType:             pulumi.String("string"),
    		PeerId:                  pulumi.String("string"),
    		PeerIdType:              pulumi.String("string"),
    		PhaseOneNegotiationMode: pulumi.String("string"),
    	},
    	Ipsecpolicy: &opentelekomcloud.EnterpriseVpnConnectionV5IpsecpolicyArgs{
    		AuthenticationAlgorithm: pulumi.String("string"),
    		EncapsulationMode:       pulumi.String("string"),
    		EncryptionAlgorithm:     pulumi.String("string"),
    		LifetimeSeconds:         pulumi.Float64(0),
    		Pfs:                     pulumi.String("string"),
    		TransformProtocol:       pulumi.String("string"),
    	},
    	HaRole: pulumi.String("string"),
    	PeerSubnets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PolicyRules: opentelekomcloud.EnterpriseVpnConnectionV5PolicyRuleArray{
    		&opentelekomcloud.EnterpriseVpnConnectionV5PolicyRuleArgs{
    			Destinations: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			RuleIndex: pulumi.Float64(0),
    			Source:    pulumi.String("string"),
    		},
    	},
    	EnterpriseVpnConnectionV5Id: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.EnterpriseVpnConnectionV5TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	TunnelLocalAddress: pulumi.String("string"),
    	TunnelPeerAddress:  pulumi.String("string"),
    	EnableNqa:          pulumi.Bool(false),
    })
    
    var enterpriseVpnConnectionV5Resource = new EnterpriseVpnConnectionV5("enterpriseVpnConnectionV5Resource", EnterpriseVpnConnectionV5Args.builder()
        .customerGatewayId("string")
        .vpnType("string")
        .psk("string")
        .gatewayId("string")
        .gatewayIp("string")
        .name("string")
        .ikepolicy(EnterpriseVpnConnectionV5IkepolicyArgs.builder()
            .authenticationAlgorithm("string")
            .authenticationMethod("string")
            .dhGroup("string")
            .dpd(EnterpriseVpnConnectionV5IkepolicyDpdArgs.builder()
                .interval(0)
                .msg("string")
                .timeout(0)
                .build())
            .encryptionAlgorithm("string")
            .ikeVersion("string")
            .lifetimeSeconds(0)
            .localId("string")
            .localIdType("string")
            .peerId("string")
            .peerIdType("string")
            .phaseOneNegotiationMode("string")
            .build())
        .ipsecpolicy(EnterpriseVpnConnectionV5IpsecpolicyArgs.builder()
            .authenticationAlgorithm("string")
            .encapsulationMode("string")
            .encryptionAlgorithm("string")
            .lifetimeSeconds(0)
            .pfs("string")
            .transformProtocol("string")
            .build())
        .haRole("string")
        .peerSubnets("string")
        .policyRules(EnterpriseVpnConnectionV5PolicyRuleArgs.builder()
            .destinations("string")
            .ruleIndex(0)
            .source("string")
            .build())
        .enterpriseVpnConnectionV5Id("string")
        .tags(Map.of("string", "string"))
        .timeouts(EnterpriseVpnConnectionV5TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .tunnelLocalAddress("string")
        .tunnelPeerAddress("string")
        .enableNqa(false)
        .build());
    
    enterprise_vpn_connection_v5_resource = opentelekomcloud.EnterpriseVpnConnectionV5("enterpriseVpnConnectionV5Resource",
        customer_gateway_id="string",
        vpn_type="string",
        psk="string",
        gateway_id="string",
        gateway_ip="string",
        name="string",
        ikepolicy={
            "authentication_algorithm": "string",
            "authentication_method": "string",
            "dh_group": "string",
            "dpd": {
                "interval": 0,
                "msg": "string",
                "timeout": 0,
            },
            "encryption_algorithm": "string",
            "ike_version": "string",
            "lifetime_seconds": 0,
            "local_id": "string",
            "local_id_type": "string",
            "peer_id": "string",
            "peer_id_type": "string",
            "phase_one_negotiation_mode": "string",
        },
        ipsecpolicy={
            "authentication_algorithm": "string",
            "encapsulation_mode": "string",
            "encryption_algorithm": "string",
            "lifetime_seconds": 0,
            "pfs": "string",
            "transform_protocol": "string",
        },
        ha_role="string",
        peer_subnets=["string"],
        policy_rules=[{
            "destinations": ["string"],
            "rule_index": 0,
            "source": "string",
        }],
        enterprise_vpn_connection_v5_id="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        tunnel_local_address="string",
        tunnel_peer_address="string",
        enable_nqa=False)
    
    const enterpriseVpnConnectionV5Resource = new opentelekomcloud.EnterpriseVpnConnectionV5("enterpriseVpnConnectionV5Resource", {
        customerGatewayId: "string",
        vpnType: "string",
        psk: "string",
        gatewayId: "string",
        gatewayIp: "string",
        name: "string",
        ikepolicy: {
            authenticationAlgorithm: "string",
            authenticationMethod: "string",
            dhGroup: "string",
            dpd: {
                interval: 0,
                msg: "string",
                timeout: 0,
            },
            encryptionAlgorithm: "string",
            ikeVersion: "string",
            lifetimeSeconds: 0,
            localId: "string",
            localIdType: "string",
            peerId: "string",
            peerIdType: "string",
            phaseOneNegotiationMode: "string",
        },
        ipsecpolicy: {
            authenticationAlgorithm: "string",
            encapsulationMode: "string",
            encryptionAlgorithm: "string",
            lifetimeSeconds: 0,
            pfs: "string",
            transformProtocol: "string",
        },
        haRole: "string",
        peerSubnets: ["string"],
        policyRules: [{
            destinations: ["string"],
            ruleIndex: 0,
            source: "string",
        }],
        enterpriseVpnConnectionV5Id: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        tunnelLocalAddress: "string",
        tunnelPeerAddress: "string",
        enableNqa: false,
    });
    
    type: opentelekomcloud:EnterpriseVpnConnectionV5
    properties:
        customerGatewayId: string
        enableNqa: false
        enterpriseVpnConnectionV5Id: string
        gatewayId: string
        gatewayIp: string
        haRole: string
        ikepolicy:
            authenticationAlgorithm: string
            authenticationMethod: string
            dhGroup: string
            dpd:
                interval: 0
                msg: string
                timeout: 0
            encryptionAlgorithm: string
            ikeVersion: string
            lifetimeSeconds: 0
            localId: string
            localIdType: string
            peerId: string
            peerIdType: string
            phaseOneNegotiationMode: string
        ipsecpolicy:
            authenticationAlgorithm: string
            encapsulationMode: string
            encryptionAlgorithm: string
            lifetimeSeconds: 0
            pfs: string
            transformProtocol: string
        name: string
        peerSubnets:
            - string
        policyRules:
            - destinations:
                - string
              ruleIndex: 0
              source: string
        psk: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
        tunnelLocalAddress: string
        tunnelPeerAddress: string
        vpnType: string
    

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

    Outputs

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

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Status string
    UpdatedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Status string
    UpdatedAt string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    status String
    updatedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    status string
    updatedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    status str
    updated_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    status String
    updatedAt String

    Look up Existing EnterpriseVpnConnectionV5 Resource

    Get an existing EnterpriseVpnConnectionV5 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?: EnterpriseVpnConnectionV5State, opts?: CustomResourceOptions): EnterpriseVpnConnectionV5
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            customer_gateway_id: Optional[str] = None,
            enable_nqa: Optional[bool] = None,
            enterprise_vpn_connection_v5_id: Optional[str] = None,
            gateway_id: Optional[str] = None,
            gateway_ip: Optional[str] = None,
            ha_role: Optional[str] = None,
            ikepolicy: Optional[EnterpriseVpnConnectionV5IkepolicyArgs] = None,
            ipsecpolicy: Optional[EnterpriseVpnConnectionV5IpsecpolicyArgs] = None,
            name: Optional[str] = None,
            peer_subnets: Optional[Sequence[str]] = None,
            policy_rules: Optional[Sequence[EnterpriseVpnConnectionV5PolicyRuleArgs]] = None,
            psk: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[EnterpriseVpnConnectionV5TimeoutsArgs] = None,
            tunnel_local_address: Optional[str] = None,
            tunnel_peer_address: Optional[str] = None,
            updated_at: Optional[str] = None,
            vpn_type: Optional[str] = None) -> EnterpriseVpnConnectionV5
    func GetEnterpriseVpnConnectionV5(ctx *Context, name string, id IDInput, state *EnterpriseVpnConnectionV5State, opts ...ResourceOption) (*EnterpriseVpnConnectionV5, error)
    public static EnterpriseVpnConnectionV5 Get(string name, Input<string> id, EnterpriseVpnConnectionV5State? state, CustomResourceOptions? opts = null)
    public static EnterpriseVpnConnectionV5 get(String name, Output<String> id, EnterpriseVpnConnectionV5State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:EnterpriseVpnConnectionV5    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:

    Supporting Types

    EnterpriseVpnConnectionV5Ikepolicy, EnterpriseVpnConnectionV5IkepolicyArgs

    EnterpriseVpnConnectionV5IkepolicyDpd, EnterpriseVpnConnectionV5IkepolicyDpdArgs

    Interval double
    Msg string
    Timeout double
    Interval float64
    Msg string
    Timeout float64
    interval Double
    msg String
    timeout Double
    interval number
    msg string
    timeout number
    interval float
    msg str
    timeout float
    interval Number
    msg String
    timeout Number

    EnterpriseVpnConnectionV5Ipsecpolicy, EnterpriseVpnConnectionV5IpsecpolicyArgs

    EnterpriseVpnConnectionV5PolicyRule, EnterpriseVpnConnectionV5PolicyRuleArgs

    Destinations List<string>
    RuleIndex double
    Source string
    Destinations []string
    RuleIndex float64
    Source string
    destinations List<String>
    ruleIndex Double
    source String
    destinations string[]
    ruleIndex number
    source string
    destinations Sequence[str]
    rule_index float
    source str
    destinations List<String>
    ruleIndex Number
    source String

    EnterpriseVpnConnectionV5Timeouts, EnterpriseVpnConnectionV5TimeoutsArgs

    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

    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