ibm.PiVpnConnection
Explore with Pulumi AI
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 forupdate
anddelete
. 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, eitherpolicy
orroute
.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:
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ike stringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- Pi
Ipsec stringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- Pi
Networks List<string> - Set of network IDs to attach to this VPN connection
- Pi
Peer stringGateway Address - Peer Gateway address
- Pi
Peer List<string>Subnets - Set of CIDR of peer subnets
- Pi
Vpn stringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- Pi
Vpn stringConnection Name - Name of the VPN Connection
- Pi
Vpn stringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - Timeouts
Pi
Vpn Connection Timeouts
- Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ike stringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- Pi
Ipsec stringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- Pi
Networks []string - Set of network IDs to attach to this VPN connection
- Pi
Peer stringGateway Address - Peer Gateway address
- Pi
Peer []stringSubnets - Set of CIDR of peer subnets
- Pi
Vpn stringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- Pi
Vpn stringConnection Name - Name of the VPN Connection
- Pi
Vpn stringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - Timeouts
Pi
Vpn Connection Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ike StringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- pi
Ipsec StringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- pi
Networks List<String> - Set of network IDs to attach to this VPN connection
- pi
Peer StringGateway Address - Peer Gateway address
- pi
Peer List<String>Subnets - Set of CIDR of peer subnets
- pi
Vpn StringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi
Vpn StringConnection Name - Name of the VPN Connection
- pi
Vpn StringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - timeouts
Pi
Vpn Connection Timeouts
- pi
Cloud stringInstance Id - PI cloud instance ID
- pi
Ike stringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- pi
Ipsec stringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- pi
Networks string[] - Set of network IDs to attach to this VPN connection
- pi
Peer stringGateway Address - Peer Gateway address
- pi
Peer string[]Subnets - Set of CIDR of peer subnets
- pi
Vpn stringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi
Vpn stringConnection Name - Name of the VPN Connection
- pi
Vpn stringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - timeouts
Pi
Vpn Connection Timeouts
- pi_
cloud_ strinstance_ id - PI cloud instance ID
- pi_
ike_ strpolicy_ id - Unique identifier of IKE Policy selected for this VPN Connection
- pi_
ipsec_ strpolicy_ id - 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_ strgateway_ address - Peer Gateway address
- pi_
peer_ Sequence[str]subnets - Set of CIDR of peer subnets
- pi_
vpn_ strconnection_ mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi_
vpn_ strconnection_ name - Name of the VPN Connection
- pi_
vpn_ strconnection_ id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - timeouts
Pi
Vpn Connection Timeouts Args
- pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ike StringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- pi
Ipsec StringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- pi
Networks List<String> - Set of network IDs to attach to this VPN connection
- pi
Peer StringGateway Address - Peer Gateway address
- pi
Peer List<String>Subnets - Set of CIDR of peer subnets
- pi
Vpn StringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi
Vpn StringConnection Name - Name of the VPN Connection
- pi
Vpn StringConnection Id - (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:
- Connection
Id string - (String) VPN Connection ID.
- Connection
Status string - (String) Status of the VPN connection.
- Dead
Peer Dictionary<string, string>Detections - (Map) Dead Peer Detection.
- Gateway
Address 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.
- Local
Gateway stringAddress - (String) Local Gateway address, only in
route
mode.
- Connection
Id string - (String) VPN Connection ID.
- Connection
Status string - (String) Status of the VPN connection.
- Dead
Peer map[string]stringDetections - (Map) Dead Peer Detection.
- Gateway
Address 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.
- Local
Gateway stringAddress - (String) Local Gateway address, only in
route
mode.
- connection
Id String - (String) VPN Connection ID.
- connection
Status String - (String) Status of the VPN connection.
- dead
Peer Map<String,String>Detections - (Map) Dead Peer Detection.
- gateway
Address 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.
- local
Gateway StringAddress - (String) Local Gateway address, only in
route
mode.
- connection
Id string - (String) VPN Connection ID.
- connection
Status string - (String) Status of the VPN connection.
- dead
Peer {[key: string]: string}Detections - (Map) Dead Peer Detection.
- gateway
Address 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.
- local
Gateway stringAddress - (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_ Mapping[str, str]detections - (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_ straddress - (String) Local Gateway address, only in
route
mode.
- connection
Id String - (String) VPN Connection ID.
- connection
Status String - (String) Status of the VPN connection.
- dead
Peer Map<String>Detections - (Map) Dead Peer Detection.
- gateway
Address 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.
- local
Gateway StringAddress - (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: - Connection
Id string - (String) VPN Connection ID.
- Connection
Status string - (String) Status of the VPN connection.
- Dead
Peer Dictionary<string, string>Detections - (Map) Dead Peer Detection.
- Gateway
Address string - (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
- Local
Gateway stringAddress - (String) Local Gateway address, only in
route
mode. - Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ike stringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- Pi
Ipsec stringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- Pi
Networks List<string> - Set of network IDs to attach to this VPN connection
- Pi
Peer stringGateway Address - Peer Gateway address
- Pi
Peer List<string>Subnets - Set of CIDR of peer subnets
- Pi
Vpn stringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - Pi
Vpn stringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- Pi
Vpn stringConnection Name - Name of the VPN Connection
- Timeouts
Pi
Vpn Connection Timeouts
- Connection
Id string - (String) VPN Connection ID.
- Connection
Status string - (String) Status of the VPN connection.
- Dead
Peer map[string]stringDetections - (Map) Dead Peer Detection.
- Gateway
Address string - (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
- Local
Gateway stringAddress - (String) Local Gateway address, only in
route
mode. - Pi
Cloud stringInstance Id - PI cloud instance ID
- Pi
Ike stringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- Pi
Ipsec stringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- Pi
Networks []string - Set of network IDs to attach to this VPN connection
- Pi
Peer stringGateway Address - Peer Gateway address
- Pi
Peer []stringSubnets - Set of CIDR of peer subnets
- Pi
Vpn stringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - Pi
Vpn stringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- Pi
Vpn stringConnection Name - Name of the VPN Connection
- Timeouts
Pi
Vpn Connection Timeouts Args
- connection
Id String - (String) VPN Connection ID.
- connection
Status String - (String) Status of the VPN connection.
- dead
Peer Map<String,String>Detections - (Map) Dead Peer Detection.
- gateway
Address String - (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
- local
Gateway StringAddress - (String) Local Gateway address, only in
route
mode. - pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ike StringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- pi
Ipsec StringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- pi
Networks List<String> - Set of network IDs to attach to this VPN connection
- pi
Peer StringGateway Address - Peer Gateway address
- pi
Peer List<String>Subnets - Set of CIDR of peer subnets
- pi
Vpn StringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - pi
Vpn StringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi
Vpn StringConnection Name - Name of the VPN Connection
- timeouts
Pi
Vpn Connection Timeouts
- connection
Id string - (String) VPN Connection ID.
- connection
Status string - (String) Status of the VPN connection.
- dead
Peer {[key: string]: string}Detections - (Map) Dead Peer Detection.
- gateway
Address string - (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
- local
Gateway stringAddress - (String) Local Gateway address, only in
route
mode. - pi
Cloud stringInstance Id - PI cloud instance ID
- pi
Ike stringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- pi
Ipsec stringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- pi
Networks string[] - Set of network IDs to attach to this VPN connection
- pi
Peer stringGateway Address - Peer Gateway address
- pi
Peer string[]Subnets - Set of CIDR of peer subnets
- pi
Vpn stringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - pi
Vpn stringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi
Vpn stringConnection Name - Name of the VPN Connection
- timeouts
Pi
Vpn Connection Timeouts
- connection_
id str - (String) VPN Connection ID.
- connection_
status str - (String) Status of the VPN connection.
- dead_
peer_ Mapping[str, str]detections - (Map) Dead Peer Detection.
- gateway_
address str - (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
- local_
gateway_ straddress - (String) Local Gateway address, only in
route
mode. - pi_
cloud_ strinstance_ id - PI cloud instance ID
- pi_
ike_ strpolicy_ id - Unique identifier of IKE Policy selected for this VPN Connection
- pi_
ipsec_ strpolicy_ id - 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_ strgateway_ address - Peer Gateway address
- pi_
peer_ Sequence[str]subnets - Set of CIDR of peer subnets
- pi_
vpn_ strconnection_ id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - pi_
vpn_ strconnection_ mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi_
vpn_ strconnection_ name - Name of the VPN Connection
- timeouts
Pi
Vpn Connection Timeouts Args
- connection
Id String - (String) VPN Connection ID.
- connection
Status String - (String) Status of the VPN connection.
- dead
Peer Map<String>Detections - (Map) Dead Peer Detection.
- gateway
Address String - (String) Public IP address of the VPN Gateway (vSRX) attached to this VPN Connection.
- local
Gateway StringAddress - (String) Local Gateway address, only in
route
mode. - pi
Cloud StringInstance Id - PI cloud instance ID
- pi
Ike StringPolicy Id - Unique identifier of IKE Policy selected for this VPN Connection
- pi
Ipsec StringPolicy Id - Unique identifier of IPSec Policy selected for this VPN Connection
- pi
Networks List<String> - Set of network IDs to attach to this VPN connection
- pi
Peer StringGateway Address - Peer Gateway address
- pi
Peer List<String>Subnets - Set of CIDR of peer subnets
- pi
Vpn StringConnection Id - (String) The unique identifier of the VPN Connection. The ID is composed of
<power_instance_id>/<vpn_connection_id>
. - pi
Vpn StringConnection Mode - Mode used by this VPN Connection, either 'policy' or 'route'
- pi
Vpn StringConnection Name - Name of the VPN Connection
- timeouts Property Map
Supporting Types
Pi
Vpn Connection Timeouts , Pi Vpn Connection Timeouts Args Import
The
ibm_pi_vpn_connection
resource can be imported by usingpower_instance_id
andvpn_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.