1. Packages
  2. Ibm Provider
  3. API Docs
  4. PiVpnConnection
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.PiVpnConnection

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Update or delete a VPN connection. For more information, about IBM power virtual server cloud, see getting started with IBM Power Systems Virtual Servers.

    Deprecated: Create VPN connection is deprecated and no longer supported. Existing pi_vpn_connection will still have support for update and delete. See a new method for creating a VPN connection

    Example Usage

    The following example creates a VPN Connection.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = new ibm.PiVpnConnection("example", {
        piCloudInstanceId: "<value of the cloud_instance_id>",
        piVpnConnectionName: "test",
        piIkePolicyId: ibm_pi_ike_policy.policy.policy_id,
        piIpsecPolicyId: ibm_pi_ipsec_policy.policy.policy_id,
        piVpnConnectionMode: "policy",
        piNetworks: [ibm_pi_network.private_network1.network_id],
        piPeerGatewayAddress: "1.22.124.1",
        piPeerSubnets: ["107.0.0.0/24"],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.PiVpnConnection("example",
        pi_cloud_instance_id="<value of the cloud_instance_id>",
        pi_vpn_connection_name="test",
        pi_ike_policy_id=ibm_pi_ike_policy["policy"]["policy_id"],
        pi_ipsec_policy_id=ibm_pi_ipsec_policy["policy"]["policy_id"],
        pi_vpn_connection_mode="policy",
        pi_networks=[ibm_pi_network["private_network1"]["network_id"]],
        pi_peer_gateway_address="1.22.124.1",
        pi_peer_subnets=["107.0.0.0/24"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewPiVpnConnection(ctx, "example", &ibm.PiVpnConnectionArgs{
    			PiCloudInstanceId:   pulumi.String("<value of the cloud_instance_id>"),
    			PiVpnConnectionName: pulumi.String("test"),
    			PiIkePolicyId:       pulumi.Any(ibm_pi_ike_policy.Policy.Policy_id),
    			PiIpsecPolicyId:     pulumi.Any(ibm_pi_ipsec_policy.Policy.Policy_id),
    			PiVpnConnectionMode: pulumi.String("policy"),
    			PiNetworks: pulumi.StringArray{
    				ibm_pi_network.Private_network1.Network_id,
    			},
    			PiPeerGatewayAddress: pulumi.String("1.22.124.1"),
    			PiPeerSubnets: pulumi.StringArray{
    				pulumi.String("107.0.0.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ibm.PiVpnConnection("example", new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
            PiVpnConnectionName = "test",
            PiIkePolicyId = ibm_pi_ike_policy.Policy.Policy_id,
            PiIpsecPolicyId = ibm_pi_ipsec_policy.Policy.Policy_id,
            PiVpnConnectionMode = "policy",
            PiNetworks = new[]
            {
                ibm_pi_network.Private_network1.Network_id,
            },
            PiPeerGatewayAddress = "1.22.124.1",
            PiPeerSubnets = new[]
            {
                "107.0.0.0/24",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.PiVpnConnection;
    import com.pulumi.ibm.PiVpnConnectionArgs;
    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 example = new PiVpnConnection("example", PiVpnConnectionArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .piVpnConnectionName("test")
                .piIkePolicyId(ibm_pi_ike_policy.policy().policy_id())
                .piIpsecPolicyId(ibm_pi_ipsec_policy.policy().policy_id())
                .piVpnConnectionMode("policy")
                .piNetworks(ibm_pi_network.private_network1().network_id())
                .piPeerGatewayAddress("1.22.124.1")
                .piPeerSubnets("107.0.0.0/24")
                .build());
    
        }
    }
    
    resources:
      example:
        type: ibm:PiVpnConnection
        properties:
          piCloudInstanceId: <value of the cloud_instance_id>
          piVpnConnectionName: test
          piIkePolicyId: ${ibm_pi_ike_policy.policy.policy_id}
          piIpsecPolicyId: ${ibm_pi_ipsec_policy.policy.policy_id}
          piVpnConnectionMode: policy
          piNetworks:
            - ${ibm_pi_network.private_network1.network_id}
          piPeerGatewayAddress: 1.22.124.1
          piPeerSubnets:
            - 107.0.0.0/24
    

    Note

    • Please find supported Regions for endpoints.

    • If a Power cloud instance is provisioned at lon04, The provider level attributes should be as follows:

      • region - lon
      • zone - lon04

      Example usage:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Argument reference

    Review the argument references that you can specify for your resource.

    • pi_cloud_instance_id - (Required, String) The GUID of the service instance associated with an account.
    • pi_ike_policy_id - (Required, String) Unique identifier of IKE Policy selected for this VPN Connection.
    • pi_ipsec_policy_id- (Required, String) Unique identifier of IPSec Policy selected for this VPN Connection.
    • pi_networks - (Required, Set of String) Set of network IDs to attach to this VPN connection.
    • pi_peer_gateway_address - (Required, String) Peer Gateway address.
    • pi_peer_subnets - (Required, Set of String) Set of CIDR of peer subnets.
    • pi_vpn_connection_mode - (Required, String) Mode used by this VPN Connection, either policy or route.
    • pi_vpn_connection_name - (Required, String) Name of the VPN Connection.

    Create PiVpnConnection Resource

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

    Constructor syntax

    new PiVpnConnection(name: string, args: PiVpnConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def PiVpnConnection(resource_name: str,
                        args: PiVpnConnectionArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def PiVpnConnection(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        pi_cloud_instance_id: Optional[str] = None,
                        pi_ike_policy_id: Optional[str] = None,
                        pi_ipsec_policy_id: Optional[str] = None,
                        pi_networks: Optional[Sequence[str]] = None,
                        pi_peer_gateway_address: Optional[str] = None,
                        pi_peer_subnets: Optional[Sequence[str]] = None,
                        pi_vpn_connection_mode: Optional[str] = None,
                        pi_vpn_connection_name: Optional[str] = None,
                        pi_vpn_connection_id: Optional[str] = None,
                        timeouts: Optional[PiVpnConnectionTimeoutsArgs] = None)
    func NewPiVpnConnection(ctx *Context, name string, args PiVpnConnectionArgs, opts ...ResourceOption) (*PiVpnConnection, error)
    public PiVpnConnection(string name, PiVpnConnectionArgs args, CustomResourceOptions? opts = null)
    public PiVpnConnection(String name, PiVpnConnectionArgs args)
    public PiVpnConnection(String name, PiVpnConnectionArgs args, CustomResourceOptions options)
    
    type: ibm:PiVpnConnection
    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 PiVpnConnectionArgs
    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 PiVpnConnectionArgs
    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 PiVpnConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PiVpnConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PiVpnConnectionArgs
    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 piVpnConnectionResource = new Ibm.PiVpnConnection("piVpnConnectionResource", new()
    {
        PiCloudInstanceId = "string",
        PiIkePolicyId = "string",
        PiIpsecPolicyId = "string",
        PiNetworks = new[]
        {
            "string",
        },
        PiPeerGatewayAddress = "string",
        PiPeerSubnets = new[]
        {
            "string",
        },
        PiVpnConnectionMode = "string",
        PiVpnConnectionName = "string",
        PiVpnConnectionId = "string",
        Timeouts = new Ibm.Inputs.PiVpnConnectionTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewPiVpnConnection(ctx, "piVpnConnectionResource", &ibm.PiVpnConnectionArgs{
    	PiCloudInstanceId: pulumi.String("string"),
    	PiIkePolicyId:     pulumi.String("string"),
    	PiIpsecPolicyId:   pulumi.String("string"),
    	PiNetworks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PiPeerGatewayAddress: pulumi.String("string"),
    	PiPeerSubnets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PiVpnConnectionMode: pulumi.String("string"),
    	PiVpnConnectionName: pulumi.String("string"),
    	PiVpnConnectionId:   pulumi.String("string"),
    	Timeouts: &ibm.PiVpnConnectionTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var piVpnConnectionResource = new PiVpnConnection("piVpnConnectionResource", PiVpnConnectionArgs.builder()
        .piCloudInstanceId("string")
        .piIkePolicyId("string")
        .piIpsecPolicyId("string")
        .piNetworks("string")
        .piPeerGatewayAddress("string")
        .piPeerSubnets("string")
        .piVpnConnectionMode("string")
        .piVpnConnectionName("string")
        .piVpnConnectionId("string")
        .timeouts(PiVpnConnectionTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    pi_vpn_connection_resource = ibm.PiVpnConnection("piVpnConnectionResource",
        pi_cloud_instance_id="string",
        pi_ike_policy_id="string",
        pi_ipsec_policy_id="string",
        pi_networks=["string"],
        pi_peer_gateway_address="string",
        pi_peer_subnets=["string"],
        pi_vpn_connection_mode="string",
        pi_vpn_connection_name="string",
        pi_vpn_connection_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const piVpnConnectionResource = new ibm.PiVpnConnection("piVpnConnectionResource", {
        piCloudInstanceId: "string",
        piIkePolicyId: "string",
        piIpsecPolicyId: "string",
        piNetworks: ["string"],
        piPeerGatewayAddress: "string",
        piPeerSubnets: ["string"],
        piVpnConnectionMode: "string",
        piVpnConnectionName: "string",
        piVpnConnectionId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ibm:PiVpnConnection
    properties:
        piCloudInstanceId: string
        piIkePolicyId: string
        piIpsecPolicyId: string
        piNetworks:
            - string
        piPeerGatewayAddress: string
        piPeerSubnets:
            - string
        piVpnConnectionId: string
        piVpnConnectionMode: string
        piVpnConnectionName: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    PiCloudInstanceId string
    PI cloud instance ID
    PiIkePolicyId string
    Unique identifier of IKE Policy selected for this VPN Connection
    PiIpsecPolicyId string
    Unique identifier of IPSec Policy selected for this VPN Connection
    PiNetworks List<string>
    Set of network IDs to attach to this VPN connection
    PiPeerGatewayAddress string
    Peer Gateway address
    PiPeerSubnets List<string>
    Set of CIDR of peer subnets
    PiVpnConnectionMode string
    Mode used by this VPN Connection, either 'policy' or 'route'
    PiVpnConnectionName string
    Name of the VPN Connection
    PiVpnConnectionId string
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    Timeouts PiVpnConnectionTimeouts
    PiCloudInstanceId string
    PI cloud instance ID
    PiIkePolicyId string
    Unique identifier of IKE Policy selected for this VPN Connection
    PiIpsecPolicyId string
    Unique identifier of IPSec Policy selected for this VPN Connection
    PiNetworks []string
    Set of network IDs to attach to this VPN connection
    PiPeerGatewayAddress string
    Peer Gateway address
    PiPeerSubnets []string
    Set of CIDR of peer subnets
    PiVpnConnectionMode string
    Mode used by this VPN Connection, either 'policy' or 'route'
    PiVpnConnectionName string
    Name of the VPN Connection
    PiVpnConnectionId string
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    Timeouts PiVpnConnectionTimeoutsArgs
    piCloudInstanceId String
    PI cloud instance ID
    piIkePolicyId String
    Unique identifier of IKE Policy selected for this VPN Connection
    piIpsecPolicyId String
    Unique identifier of IPSec Policy selected for this VPN Connection
    piNetworks List<String>
    Set of network IDs to attach to this VPN connection
    piPeerGatewayAddress String
    Peer Gateway address
    piPeerSubnets List<String>
    Set of CIDR of peer subnets
    piVpnConnectionMode String
    Mode used by this VPN Connection, either 'policy' or 'route'
    piVpnConnectionName String
    Name of the VPN Connection
    piVpnConnectionId String
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    timeouts PiVpnConnectionTimeouts
    piCloudInstanceId string
    PI cloud instance ID
    piIkePolicyId string
    Unique identifier of IKE Policy selected for this VPN Connection
    piIpsecPolicyId string
    Unique identifier of IPSec Policy selected for this VPN Connection
    piNetworks string[]
    Set of network IDs to attach to this VPN connection
    piPeerGatewayAddress string
    Peer Gateway address
    piPeerSubnets string[]
    Set of CIDR of peer subnets
    piVpnConnectionMode string
    Mode used by this VPN Connection, either 'policy' or 'route'
    piVpnConnectionName string
    Name of the VPN Connection
    piVpnConnectionId string
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    timeouts PiVpnConnectionTimeouts
    pi_cloud_instance_id str
    PI cloud instance ID
    pi_ike_policy_id str
    Unique identifier of IKE Policy selected for this VPN Connection
    pi_ipsec_policy_id str
    Unique identifier of IPSec Policy selected for this VPN Connection
    pi_networks Sequence[str]
    Set of network IDs to attach to this VPN connection
    pi_peer_gateway_address str
    Peer Gateway address
    pi_peer_subnets Sequence[str]
    Set of CIDR of peer subnets
    pi_vpn_connection_mode str
    Mode used by this VPN Connection, either 'policy' or 'route'
    pi_vpn_connection_name str
    Name of the VPN Connection
    pi_vpn_connection_id str
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    timeouts PiVpnConnectionTimeoutsArgs
    piCloudInstanceId String
    PI cloud instance ID
    piIkePolicyId String
    Unique identifier of IKE Policy selected for this VPN Connection
    piIpsecPolicyId String
    Unique identifier of IPSec Policy selected for this VPN Connection
    piNetworks List<String>
    Set of network IDs to attach to this VPN connection
    piPeerGatewayAddress String
    Peer Gateway address
    piPeerSubnets List<String>
    Set of CIDR of peer subnets
    piVpnConnectionMode String
    Mode used by this VPN Connection, either 'policy' or 'route'
    piVpnConnectionName String
    Name of the VPN Connection
    piVpnConnectionId String
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    timeouts Property Map

    Outputs

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

    ConnectionId string
    (String) VPN Connection ID.
    ConnectionStatus string
    (String) Status of the VPN connection.
    DeadPeerDetections Dictionary<string, string>
    (Map) Dead Peer Detection.
    GatewayAddress string
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalGatewayAddress string
    (String) Local Gateway address, only in route mode.
    ConnectionId string
    (String) VPN Connection ID.
    ConnectionStatus string
    (String) Status of the VPN connection.
    DeadPeerDetections map[string]string
    (Map) Dead Peer Detection.
    GatewayAddress string
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalGatewayAddress string
    (String) Local Gateway address, only in route mode.
    connectionId String
    (String) VPN Connection ID.
    connectionStatus String
    (String) Status of the VPN connection.
    deadPeerDetections Map<String,String>
    (Map) Dead Peer Detection.
    gatewayAddress String
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    id String
    The provider-assigned unique ID for this managed resource.
    localGatewayAddress String
    (String) Local Gateway address, only in route mode.
    connectionId string
    (String) VPN Connection ID.
    connectionStatus string
    (String) Status of the VPN connection.
    deadPeerDetections {[key: string]: string}
    (Map) Dead Peer Detection.
    gatewayAddress string
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    id string
    The provider-assigned unique ID for this managed resource.
    localGatewayAddress string
    (String) Local Gateway address, only in route mode.
    connection_id str
    (String) VPN Connection ID.
    connection_status str
    (String) Status of the VPN connection.
    dead_peer_detections Mapping[str, str]
    (Map) Dead Peer Detection.
    gateway_address str
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    id str
    The provider-assigned unique ID for this managed resource.
    local_gateway_address str
    (String) Local Gateway address, only in route mode.
    connectionId String
    (String) VPN Connection ID.
    connectionStatus String
    (String) Status of the VPN connection.
    deadPeerDetections Map<String>
    (Map) Dead Peer Detection.
    gatewayAddress String
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    id String
    The provider-assigned unique ID for this managed resource.
    localGatewayAddress String
    (String) Local Gateway address, only in route mode.

    Look up Existing PiVpnConnection Resource

    Get an existing PiVpnConnection 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?: PiVpnConnectionState, opts?: CustomResourceOptions): PiVpnConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connection_id: Optional[str] = None,
            connection_status: Optional[str] = None,
            dead_peer_detections: Optional[Mapping[str, str]] = None,
            gateway_address: Optional[str] = None,
            local_gateway_address: Optional[str] = None,
            pi_cloud_instance_id: Optional[str] = None,
            pi_ike_policy_id: Optional[str] = None,
            pi_ipsec_policy_id: Optional[str] = None,
            pi_networks: Optional[Sequence[str]] = None,
            pi_peer_gateway_address: Optional[str] = None,
            pi_peer_subnets: Optional[Sequence[str]] = None,
            pi_vpn_connection_id: Optional[str] = None,
            pi_vpn_connection_mode: Optional[str] = None,
            pi_vpn_connection_name: Optional[str] = None,
            timeouts: Optional[PiVpnConnectionTimeoutsArgs] = None) -> PiVpnConnection
    func GetPiVpnConnection(ctx *Context, name string, id IDInput, state *PiVpnConnectionState, opts ...ResourceOption) (*PiVpnConnection, error)
    public static PiVpnConnection Get(string name, Input<string> id, PiVpnConnectionState? state, CustomResourceOptions? opts = null)
    public static PiVpnConnection get(String name, Output<String> id, PiVpnConnectionState state, CustomResourceOptions options)
    resources:  _:    type: ibm:PiVpnConnection    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:
    ConnectionId string
    (String) VPN Connection ID.
    ConnectionStatus string
    (String) Status of the VPN connection.
    DeadPeerDetections Dictionary<string, string>
    (Map) Dead Peer Detection.
    GatewayAddress string
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    LocalGatewayAddress string
    (String) Local Gateway address, only in route mode.
    PiCloudInstanceId string
    PI cloud instance ID
    PiIkePolicyId string
    Unique identifier of IKE Policy selected for this VPN Connection
    PiIpsecPolicyId string
    Unique identifier of IPSec Policy selected for this VPN Connection
    PiNetworks List<string>
    Set of network IDs to attach to this VPN connection
    PiPeerGatewayAddress string
    Peer Gateway address
    PiPeerSubnets List<string>
    Set of CIDR of peer subnets
    PiVpnConnectionId string
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    PiVpnConnectionMode string
    Mode used by this VPN Connection, either 'policy' or 'route'
    PiVpnConnectionName string
    Name of the VPN Connection
    Timeouts PiVpnConnectionTimeouts
    ConnectionId string
    (String) VPN Connection ID.
    ConnectionStatus string
    (String) Status of the VPN connection.
    DeadPeerDetections map[string]string
    (Map) Dead Peer Detection.
    GatewayAddress string
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    LocalGatewayAddress string
    (String) Local Gateway address, only in route mode.
    PiCloudInstanceId string
    PI cloud instance ID
    PiIkePolicyId string
    Unique identifier of IKE Policy selected for this VPN Connection
    PiIpsecPolicyId string
    Unique identifier of IPSec Policy selected for this VPN Connection
    PiNetworks []string
    Set of network IDs to attach to this VPN connection
    PiPeerGatewayAddress string
    Peer Gateway address
    PiPeerSubnets []string
    Set of CIDR of peer subnets
    PiVpnConnectionId string
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    PiVpnConnectionMode string
    Mode used by this VPN Connection, either 'policy' or 'route'
    PiVpnConnectionName string
    Name of the VPN Connection
    Timeouts PiVpnConnectionTimeoutsArgs
    connectionId String
    (String) VPN Connection ID.
    connectionStatus String
    (String) Status of the VPN connection.
    deadPeerDetections Map<String,String>
    (Map) Dead Peer Detection.
    gatewayAddress String
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    localGatewayAddress String
    (String) Local Gateway address, only in route mode.
    piCloudInstanceId String
    PI cloud instance ID
    piIkePolicyId String
    Unique identifier of IKE Policy selected for this VPN Connection
    piIpsecPolicyId String
    Unique identifier of IPSec Policy selected for this VPN Connection
    piNetworks List<String>
    Set of network IDs to attach to this VPN connection
    piPeerGatewayAddress String
    Peer Gateway address
    piPeerSubnets List<String>
    Set of CIDR of peer subnets
    piVpnConnectionId String
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    piVpnConnectionMode String
    Mode used by this VPN Connection, either 'policy' or 'route'
    piVpnConnectionName String
    Name of the VPN Connection
    timeouts PiVpnConnectionTimeouts
    connectionId string
    (String) VPN Connection ID.
    connectionStatus string
    (String) Status of the VPN connection.
    deadPeerDetections {[key: string]: string}
    (Map) Dead Peer Detection.
    gatewayAddress string
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    localGatewayAddress string
    (String) Local Gateway address, only in route mode.
    piCloudInstanceId string
    PI cloud instance ID
    piIkePolicyId string
    Unique identifier of IKE Policy selected for this VPN Connection
    piIpsecPolicyId string
    Unique identifier of IPSec Policy selected for this VPN Connection
    piNetworks string[]
    Set of network IDs to attach to this VPN connection
    piPeerGatewayAddress string
    Peer Gateway address
    piPeerSubnets string[]
    Set of CIDR of peer subnets
    piVpnConnectionId string
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    piVpnConnectionMode string
    Mode used by this VPN Connection, either 'policy' or 'route'
    piVpnConnectionName string
    Name of the VPN Connection
    timeouts PiVpnConnectionTimeouts
    connection_id str
    (String) VPN Connection ID.
    connection_status str
    (String) Status of the VPN connection.
    dead_peer_detections Mapping[str, str]
    (Map) Dead Peer Detection.
    gateway_address str
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    local_gateway_address str
    (String) Local Gateway address, only in route mode.
    pi_cloud_instance_id str
    PI cloud instance ID
    pi_ike_policy_id str
    Unique identifier of IKE Policy selected for this VPN Connection
    pi_ipsec_policy_id str
    Unique identifier of IPSec Policy selected for this VPN Connection
    pi_networks Sequence[str]
    Set of network IDs to attach to this VPN connection
    pi_peer_gateway_address str
    Peer Gateway address
    pi_peer_subnets Sequence[str]
    Set of CIDR of peer subnets
    pi_vpn_connection_id str
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    pi_vpn_connection_mode str
    Mode used by this VPN Connection, either 'policy' or 'route'
    pi_vpn_connection_name str
    Name of the VPN Connection
    timeouts PiVpnConnectionTimeoutsArgs
    connectionId String
    (String) VPN Connection ID.
    connectionStatus String
    (String) Status of the VPN connection.
    deadPeerDetections Map<String>
    (Map) Dead Peer Detection.
    gatewayAddress String
    (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
    localGatewayAddress String
    (String) Local Gateway address, only in route mode.
    piCloudInstanceId String
    PI cloud instance ID
    piIkePolicyId String
    Unique identifier of IKE Policy selected for this VPN Connection
    piIpsecPolicyId String
    Unique identifier of IPSec Policy selected for this VPN Connection
    piNetworks List<String>
    Set of network IDs to attach to this VPN connection
    piPeerGatewayAddress String
    Peer Gateway address
    piPeerSubnets List<String>
    Set of CIDR of peer subnets
    piVpnConnectionId String
    (String) The unique identifier of the VPN Connection. The ID is composed of <power_instance_id>/<vpn_connection_id>.
    piVpnConnectionMode String
    Mode used by this VPN Connection, either 'policy' or 'route'
    piVpnConnectionName String
    Name of the VPN Connection
    timeouts Property Map

    Supporting Types

    PiVpnConnectionTimeouts, PiVpnConnectionTimeoutsArgs

    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

    The ibm_pi_vpn_connection resource can be imported by using power_instance_id and vpn_connection_id.

    Example

    $ pulumi import ibm:index/piVpnConnection:PiVpnConnection example d7bec597-4726-451f-8a63-e62e6f19c32c/cea6651a-bc0a-4438-9f8a-a0770bbf451f
    

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

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud