ibm.IsVpnGateway
Explore with Pulumi AI
Create, update, or delete a VPN gateway. For more information, about VPN gateway, see adding connections to a VPN gateway.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
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) {
}
}
{}
Example Usage
The following example creates a VPN gateway:
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
vpc: exampleIsVpc.isVpcId,
zone: "us-south-1",
ipv4CidrBlock: "10.240.0.0/24",
});
const exampleIsVpnGateway = new ibm.IsVpnGateway("exampleIsVpnGateway", {
subnet: exampleIsSubnet.isSubnetId,
mode: "route",
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
vpc=example_is_vpc.is_vpc_id,
zone="us-south-1",
ipv4_cidr_block="10.240.0.0/24")
example_is_vpn_gateway = ibm.IsVpnGateway("exampleIsVpnGateway",
subnet=example_is_subnet.is_subnet_id,
mode="route")
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 {
exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
if err != nil {
return err
}
exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("us-south-1"),
Ipv4CidrBlock: pulumi.String("10.240.0.0/24"),
})
if err != nil {
return err
}
_, err = ibm.NewIsVpnGateway(ctx, "exampleIsVpnGateway", &ibm.IsVpnGatewayArgs{
Subnet: exampleIsSubnet.IsSubnetId,
Mode: pulumi.String("route"),
})
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 exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
{
Vpc = exampleIsVpc.IsVpcId,
Zone = "us-south-1",
Ipv4CidrBlock = "10.240.0.0/24",
});
var exampleIsVpnGateway = new Ibm.IsVpnGateway("exampleIsVpnGateway", new()
{
Subnet = exampleIsSubnet.IsSubnetId,
Mode = "route",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsVpnGateway;
import com.pulumi.ibm.IsVpnGatewayArgs;
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 exampleIsVpc = new IsVpc("exampleIsVpc");
var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.zone("us-south-1")
.ipv4CidrBlock("10.240.0.0/24")
.build());
var exampleIsVpnGateway = new IsVpnGateway("exampleIsVpnGateway", IsVpnGatewayArgs.builder()
.subnet(exampleIsSubnet.isSubnetId())
.mode("route")
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
exampleIsSubnet:
type: ibm:IsSubnet
properties:
vpc: ${exampleIsVpc.isVpcId}
zone: us-south-1
ipv4CidrBlock: 10.240.0.0/24
exampleIsVpnGateway:
type: ibm:IsVpnGateway
properties:
subnet: ${exampleIsSubnet.isSubnetId}
mode: route
Create IsVpnGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsVpnGateway(name: string, args: IsVpnGatewayArgs, opts?: CustomResourceOptions);
@overload
def IsVpnGateway(resource_name: str,
args: IsVpnGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsVpnGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
subnet: Optional[str] = None,
access_tags: Optional[Sequence[str]] = None,
is_vpn_gateway_id: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[IsVpnGatewayTimeoutsArgs] = None)
func NewIsVpnGateway(ctx *Context, name string, args IsVpnGatewayArgs, opts ...ResourceOption) (*IsVpnGateway, error)
public IsVpnGateway(string name, IsVpnGatewayArgs args, CustomResourceOptions? opts = null)
public IsVpnGateway(String name, IsVpnGatewayArgs args)
public IsVpnGateway(String name, IsVpnGatewayArgs args, CustomResourceOptions options)
type: ibm:IsVpnGateway
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 IsVpnGatewayArgs
- 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 IsVpnGatewayArgs
- 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 IsVpnGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsVpnGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsVpnGatewayArgs
- 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 isVpnGatewayResource = new Ibm.IsVpnGateway("isVpnGatewayResource", new()
{
Subnet = "string",
AccessTags = new[]
{
"string",
},
IsVpnGatewayId = "string",
Mode = "string",
Name = "string",
ResourceGroup = "string",
Tags = new[]
{
"string",
},
Timeouts = new Ibm.Inputs.IsVpnGatewayTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := ibm.NewIsVpnGateway(ctx, "isVpnGatewayResource", &ibm.IsVpnGatewayArgs{
Subnet: pulumi.String("string"),
AccessTags: pulumi.StringArray{
pulumi.String("string"),
},
IsVpnGatewayId: pulumi.String("string"),
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &ibm.IsVpnGatewayTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var isVpnGatewayResource = new IsVpnGateway("isVpnGatewayResource", IsVpnGatewayArgs.builder()
.subnet("string")
.accessTags("string")
.isVpnGatewayId("string")
.mode("string")
.name("string")
.resourceGroup("string")
.tags("string")
.timeouts(IsVpnGatewayTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
is_vpn_gateway_resource = ibm.IsVpnGateway("isVpnGatewayResource",
subnet="string",
access_tags=["string"],
is_vpn_gateway_id="string",
mode="string",
name="string",
resource_group="string",
tags=["string"],
timeouts={
"create": "string",
"delete": "string",
})
const isVpnGatewayResource = new ibm.IsVpnGateway("isVpnGatewayResource", {
subnet: "string",
accessTags: ["string"],
isVpnGatewayId: "string",
mode: "string",
name: "string",
resourceGroup: "string",
tags: ["string"],
timeouts: {
create: "string",
"delete": "string",
},
});
type: ibm:IsVpnGateway
properties:
accessTags:
- string
isVpnGatewayId: string
mode: string
name: string
resourceGroup: string
subnet: string
tags:
- string
timeouts:
create: string
delete: string
IsVpnGateway 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 IsVpnGateway resource accepts the following input properties:
- Subnet string
- The unique identifier for this subnet.
- List<string>
- List of access management tags
- Is
Vpn stringGateway Id - (String) - The unique identifier for this VPC.
- Mode string
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - Name string
- The name of the VPN gateway.
- Resource
Group string - The resource group (id), where the VPN gateway to be created.
- List<string>
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- Timeouts
Is
Vpn Gateway Timeouts
- Subnet string
- The unique identifier for this subnet.
- []string
- List of access management tags
- Is
Vpn stringGateway Id - (String) - The unique identifier for this VPC.
- Mode string
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - Name string
- The name of the VPN gateway.
- Resource
Group string - The resource group (id), where the VPN gateway to be created.
- []string
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- Timeouts
Is
Vpn Gateway Timeouts Args
- subnet String
- The unique identifier for this subnet.
- List<String>
- List of access management tags
- is
Vpn StringGateway Id - (String) - The unique identifier for this VPC.
- mode String
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name String
- The name of the VPN gateway.
- resource
Group String - The resource group (id), where the VPN gateway to be created.
- List<String>
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts
Is
Vpn Gateway Timeouts
- subnet string
- The unique identifier for this subnet.
- string[]
- List of access management tags
- is
Vpn stringGateway Id - (String) - The unique identifier for this VPC.
- mode string
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name string
- The name of the VPN gateway.
- resource
Group string - The resource group (id), where the VPN gateway to be created.
- string[]
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts
Is
Vpn Gateway Timeouts
- subnet str
- The unique identifier for this subnet.
- Sequence[str]
- List of access management tags
- is_
vpn_ strgateway_ id - (String) - The unique identifier for this VPC.
- mode str
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name str
- The name of the VPN gateway.
- resource_
group str - The resource group (id), where the VPN gateway to be created.
- Sequence[str]
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts
Is
Vpn Gateway Timeouts Args
- subnet String
- The unique identifier for this subnet.
- List<String>
- List of access management tags
- is
Vpn StringGateway Id - (String) - The unique identifier for this VPC.
- mode String
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name String
- The name of the VPN gateway.
- resource
Group String - The resource group (id), where the VPN gateway to be created.
- List<String>
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the IsVpnGateway resource produces the following output properties:
- Created
At string - (String) The Second IP address assigned to this VPN gateway.
- Crn string
- (String) The CRN for this VPC.
- Health
Reasons List<IsVpn Gateway Health Reason> - (List) The reasons for the current health_state (if any).
- Health
State string - (String) The health of this resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Reasons List<IsVpn Gateway Lifecycle Reason> - (List) The reasons for the current lifecycle_reasons (if any).
- Lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- Members
List<Is
Vpn Gateway Member> - (List) Collection of VPN gateway members.
- Private
Ip stringAddress - (String) The Private IP address assigned to this VPN gateway member.
- Private
Ip stringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- Public
Ip stringAddress - (String) The IP address assigned to this VPN gateway.
- Public
Ip stringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- The status of the VPN gateway
- Vpcs
List<Is
Vpn Gateway Vpc> - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- Created
At string - (String) The Second IP address assigned to this VPN gateway.
- Crn string
- (String) The CRN for this VPC.
- Health
Reasons []IsVpn Gateway Health Reason - (List) The reasons for the current health_state (if any).
- Health
State string - (String) The health of this resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Reasons []IsVpn Gateway Lifecycle Reason - (List) The reasons for the current lifecycle_reasons (if any).
- Lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- Members
[]Is
Vpn Gateway Member - (List) Collection of VPN gateway members.
- Private
Ip stringAddress - (String) The Private IP address assigned to this VPN gateway member.
- Private
Ip stringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- Public
Ip stringAddress - (String) The IP address assigned to this VPN gateway.
- Public
Ip stringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- The status of the VPN gateway
- Vpcs
[]Is
Vpn Gateway Vpc - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- created
At String - (String) The Second IP address assigned to this VPN gateway.
- crn String
- (String) The CRN for this VPC.
- health
Reasons List<IsVpn Gateway Health Reason> - (List) The reasons for the current health_state (if any).
- health
State String - (String) The health of this resource.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Reasons List<IsVpn Gateway Lifecycle Reason> - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State String - (String) The lifecycle state of the VPN gateway.
- members
List<Is
Vpn Gateway Member> - (List) Collection of VPN gateway members.
- private
Ip StringAddress - (String) The Private IP address assigned to this VPN gateway member.
- private
Ip StringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public
Ip StringAddress - (String) The IP address assigned to this VPN gateway.
- public
Ip StringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- The status of the VPN gateway
- vpcs
List<Is
Vpn Gateway Vpc> - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- created
At string - (String) The Second IP address assigned to this VPN gateway.
- crn string
- (String) The CRN for this VPC.
- health
Reasons IsVpn Gateway Health Reason[] - (List) The reasons for the current health_state (if any).
- health
State string - (String) The health of this resource.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Reasons IsVpn Gateway Lifecycle Reason[] - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- members
Is
Vpn Gateway Member[] - (List) Collection of VPN gateway members.
- private
Ip stringAddress - (String) The Private IP address assigned to this VPN gateway member.
- private
Ip stringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public
Ip stringAddress - (String) The IP address assigned to this VPN gateway.
- public
Ip stringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- resource
Status string - The status of the resource
- status string
- The status of the VPN gateway
- vpcs
Is
Vpn Gateway Vpc[] - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- created_
at str - (String) The Second IP address assigned to this VPN gateway.
- crn str
- (String) The CRN for this VPC.
- health_
reasons Sequence[IsVpn Gateway Health Reason] - (List) The reasons for the current health_state (if any).
- health_
state str - (String) The health of this resource.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
reasons Sequence[IsVpn Gateway Lifecycle Reason] - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle_
state str - (String) The lifecycle state of the VPN gateway.
- members
Sequence[Is
Vpn Gateway Member] - (List) Collection of VPN gateway members.
- private_
ip_ straddress - (String) The Private IP address assigned to this VPN gateway member.
- private_
ip_ straddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public_
ip_ straddress - (String) The IP address assigned to this VPN gateway.
- public_
ip_ straddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
crn str - The crn of the resource
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- resource_
status str - The status of the resource
- status str
- The status of the VPN gateway
- vpcs
Sequence[Is
Vpn Gateway Vpc] - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- created
At String - (String) The Second IP address assigned to this VPN gateway.
- crn String
- (String) The CRN for this VPC.
- health
Reasons List<Property Map> - (List) The reasons for the current health_state (if any).
- health
State String - (String) The health of this resource.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Reasons List<Property Map> - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State String - (String) The lifecycle state of the VPN gateway.
- members List<Property Map>
- (List) Collection of VPN gateway members.
- private
Ip StringAddress - (String) The Private IP address assigned to this VPN gateway member.
- private
Ip StringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public
Ip StringAddress - (String) The IP address assigned to this VPN gateway.
- public
Ip StringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- The status of the VPN gateway
- vpcs List<Property Map>
- (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
Look up Existing IsVpnGateway Resource
Get an existing IsVpnGateway 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?: IsVpnGatewayState, opts?: CustomResourceOptions): IsVpnGateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_tags: Optional[Sequence[str]] = None,
created_at: Optional[str] = None,
crn: Optional[str] = None,
health_reasons: Optional[Sequence[IsVpnGatewayHealthReasonArgs]] = None,
health_state: Optional[str] = None,
is_vpn_gateway_id: Optional[str] = None,
lifecycle_reasons: Optional[Sequence[IsVpnGatewayLifecycleReasonArgs]] = None,
lifecycle_state: Optional[str] = None,
members: Optional[Sequence[IsVpnGatewayMemberArgs]] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
private_ip_address: Optional[str] = None,
private_ip_address2: Optional[str] = None,
public_ip_address: Optional[str] = None,
public_ip_address2: Optional[str] = None,
resource_controller_url: Optional[str] = None,
resource_crn: Optional[str] = None,
resource_group: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name: Optional[str] = None,
resource_status: Optional[str] = None,
status: Optional[str] = None,
subnet: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[IsVpnGatewayTimeoutsArgs] = None,
vpcs: Optional[Sequence[IsVpnGatewayVpcArgs]] = None) -> IsVpnGateway
func GetIsVpnGateway(ctx *Context, name string, id IDInput, state *IsVpnGatewayState, opts ...ResourceOption) (*IsVpnGateway, error)
public static IsVpnGateway Get(string name, Input<string> id, IsVpnGatewayState? state, CustomResourceOptions? opts = null)
public static IsVpnGateway get(String name, Output<String> id, IsVpnGatewayState state, CustomResourceOptions options)
resources: _: type: ibm:IsVpnGateway 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.
- List<string>
- List of access management tags
- Created
At string - (String) The Second IP address assigned to this VPN gateway.
- Crn string
- (String) The CRN for this VPC.
- Health
Reasons List<IsVpn Gateway Health Reason> - (List) The reasons for the current health_state (if any).
- Health
State string - (String) The health of this resource.
- Is
Vpn stringGateway Id - (String) - The unique identifier for this VPC.
- Lifecycle
Reasons List<IsVpn Gateway Lifecycle Reason> - (List) The reasons for the current lifecycle_reasons (if any).
- Lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- Members
List<Is
Vpn Gateway Member> - (List) Collection of VPN gateway members.
- Mode string
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - Name string
- The name of the VPN gateway.
- Private
Ip stringAddress - (String) The Private IP address assigned to this VPN gateway member.
- Private
Ip stringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- Public
Ip stringAddress - (String) The IP address assigned to this VPN gateway.
- Public
Ip stringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group (id), where the VPN gateway to be created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- The status of the VPN gateway
- Subnet string
- The unique identifier for this subnet.
- List<string>
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- Timeouts
Is
Vpn Gateway Timeouts - Vpcs
List<Is
Vpn Gateway Vpc> - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- []string
- List of access management tags
- Created
At string - (String) The Second IP address assigned to this VPN gateway.
- Crn string
- (String) The CRN for this VPC.
- Health
Reasons []IsVpn Gateway Health Reason Args - (List) The reasons for the current health_state (if any).
- Health
State string - (String) The health of this resource.
- Is
Vpn stringGateway Id - (String) - The unique identifier for this VPC.
- Lifecycle
Reasons []IsVpn Gateway Lifecycle Reason Args - (List) The reasons for the current lifecycle_reasons (if any).
- Lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- Members
[]Is
Vpn Gateway Member Args - (List) Collection of VPN gateway members.
- Mode string
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - Name string
- The name of the VPN gateway.
- Private
Ip stringAddress - (String) The Private IP address assigned to this VPN gateway member.
- Private
Ip stringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- Public
Ip stringAddress - (String) The IP address assigned to this VPN gateway.
- Public
Ip stringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group (id), where the VPN gateway to be created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Status string
- The status of the VPN gateway
- Subnet string
- The unique identifier for this subnet.
- []string
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- Timeouts
Is
Vpn Gateway Timeouts Args - Vpcs
[]Is
Vpn Gateway Vpc Args - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- List<String>
- List of access management tags
- created
At String - (String) The Second IP address assigned to this VPN gateway.
- crn String
- (String) The CRN for this VPC.
- health
Reasons List<IsVpn Gateway Health Reason> - (List) The reasons for the current health_state (if any).
- health
State String - (String) The health of this resource.
- is
Vpn StringGateway Id - (String) - The unique identifier for this VPC.
- lifecycle
Reasons List<IsVpn Gateway Lifecycle Reason> - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State String - (String) The lifecycle state of the VPN gateway.
- members
List<Is
Vpn Gateway Member> - (List) Collection of VPN gateway members.
- mode String
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name String
- The name of the VPN gateway.
- private
Ip StringAddress - (String) The Private IP address assigned to this VPN gateway member.
- private
Ip StringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public
Ip StringAddress - (String) The IP address assigned to this VPN gateway.
- public
Ip StringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group (id), where the VPN gateway to be created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- The status of the VPN gateway
- subnet String
- The unique identifier for this subnet.
- List<String>
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts
Is
Vpn Gateway Timeouts - vpcs
List<Is
Vpn Gateway Vpc> - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- string[]
- List of access management tags
- created
At string - (String) The Second IP address assigned to this VPN gateway.
- crn string
- (String) The CRN for this VPC.
- health
Reasons IsVpn Gateway Health Reason[] - (List) The reasons for the current health_state (if any).
- health
State string - (String) The health of this resource.
- is
Vpn stringGateway Id - (String) - The unique identifier for this VPC.
- lifecycle
Reasons IsVpn Gateway Lifecycle Reason[] - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State string - (String) The lifecycle state of the VPN gateway.
- members
Is
Vpn Gateway Member[] - (List) Collection of VPN gateway members.
- mode string
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name string
- The name of the VPN gateway.
- private
Ip stringAddress - (String) The Private IP address assigned to this VPN gateway member.
- private
Ip stringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public
Ip stringAddress - (String) The IP address assigned to this VPN gateway.
- public
Ip stringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group string - The resource group (id), where the VPN gateway to be created.
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- resource
Status string - The status of the resource
- status string
- The status of the VPN gateway
- subnet string
- The unique identifier for this subnet.
- string[]
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts
Is
Vpn Gateway Timeouts - vpcs
Is
Vpn Gateway Vpc[] - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- Sequence[str]
- List of access management tags
- created_
at str - (String) The Second IP address assigned to this VPN gateway.
- crn str
- (String) The CRN for this VPC.
- health_
reasons Sequence[IsVpn Gateway Health Reason Args] - (List) The reasons for the current health_state (if any).
- health_
state str - (String) The health of this resource.
- is_
vpn_ strgateway_ id - (String) - The unique identifier for this VPC.
- lifecycle_
reasons Sequence[IsVpn Gateway Lifecycle Reason Args] - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle_
state str - (String) The lifecycle state of the VPN gateway.
- members
Sequence[Is
Vpn Gateway Member Args] - (List) Collection of VPN gateway members.
- mode str
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name str
- The name of the VPN gateway.
- private_
ip_ straddress - (String) The Private IP address assigned to this VPN gateway member.
- private_
ip_ straddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public_
ip_ straddress - (String) The IP address assigned to this VPN gateway.
- public_
ip_ straddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
crn str - The crn of the resource
- resource_
group str - The resource group (id), where the VPN gateway to be created.
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- resource_
status str - The status of the resource
- status str
- The status of the VPN gateway
- subnet str
- The unique identifier for this subnet.
- Sequence[str]
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts
Is
Vpn Gateway Timeouts Args - vpcs
Sequence[Is
Vpn Gateway Vpc Args] - (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
- List<String>
- List of access management tags
- created
At String - (String) The Second IP address assigned to this VPN gateway.
- crn String
- (String) The CRN for this VPC.
- health
Reasons List<Property Map> - (List) The reasons for the current health_state (if any).
- health
State String - (String) The health of this resource.
- is
Vpn StringGateway Id - (String) - The unique identifier for this VPC.
- lifecycle
Reasons List<Property Map> - (List) The reasons for the current lifecycle_reasons (if any).
- lifecycle
State String - (String) The lifecycle state of the VPN gateway.
- members List<Property Map>
- (List) Collection of VPN gateway members.
- mode String
- Mode in VPN gateway. Supported values are
route
orpolicy
. The default value isroute
. - name String
- The name of the VPN gateway.
- private
Ip StringAddress - (String) The Private IP address assigned to this VPN gateway member.
- private
Ip StringAddress2 - (String) The Second Private IP address assigned to this VPN gateway.
- public
Ip StringAddress - (String) The IP address assigned to this VPN gateway.
- public
Ip StringAddress2 - (String) The Second Public IP address assigned to this VPN gateway member.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group (id), where the VPN gateway to be created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- status String
- The status of the VPN gateway
- subnet String
- The unique identifier for this subnet.
- List<String>
- A list of tags that you want to add to your VPN gateway. Tags can help you find your VPN gateway more easily later.
- timeouts Property Map
- vpcs List<Property Map>
- (String) The VPC this VPN server resides in.
Nested scheme for
vpc
:
Supporting Types
IsVpnGatewayHealthReason, IsVpnGatewayHealthReasonArgs
IsVpnGatewayLifecycleReason, IsVpnGatewayLifecycleReasonArgs
IsVpnGatewayMember, IsVpnGatewayMemberArgs
- Address string
- (String) The public IP address assigned to the VPN gateway member.
- Private
Address string - (String) The private IP address assigned to the VPN gateway member.
- Role string
- (String) The high availability role assigned to the VPN gateway member.
- Status string
- Address string
- (String) The public IP address assigned to the VPN gateway member.
- Private
Address string - (String) The private IP address assigned to the VPN gateway member.
- Role string
- (String) The high availability role assigned to the VPN gateway member.
- Status string
- address String
- (String) The public IP address assigned to the VPN gateway member.
- private
Address String - (String) The private IP address assigned to the VPN gateway member.
- role String
- (String) The high availability role assigned to the VPN gateway member.
- status String
- address string
- (String) The public IP address assigned to the VPN gateway member.
- private
Address string - (String) The private IP address assigned to the VPN gateway member.
- role string
- (String) The high availability role assigned to the VPN gateway member.
- status string
- address str
- (String) The public IP address assigned to the VPN gateway member.
- private_
address str - (String) The private IP address assigned to the VPN gateway member.
- role str
- (String) The high availability role assigned to the VPN gateway member.
- status str
- address String
- (String) The public IP address assigned to the VPN gateway member.
- private
Address String - (String) The private IP address assigned to the VPN gateway member.
- role String
- (String) The high availability role assigned to the VPN gateway member.
- status String
IsVpnGatewayTimeouts, IsVpnGatewayTimeoutsArgs
IsVpnGatewayVpc, IsVpnGatewayVpcArgs
- Crn string
- (String) The CRN for this VPC.
- Deleteds
List<Is
Vpn Gateway Vpc Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- Href string
- (String) - The URL for this VPC
- Id string
- (String) - The unique identifier for this VPC.
- Name string
- The name of the VPN gateway.
- Crn string
- (String) The CRN for this VPC.
- Deleteds
[]Is
Vpn Gateway Vpc Deleted - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- Href string
- (String) - The URL for this VPC
- Id string
- (String) - The unique identifier for this VPC.
- Name string
- The name of the VPN gateway.
- crn String
- (String) The CRN for this VPC.
- deleteds
List<Is
Vpn Gateway Vpc Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href String
- (String) - The URL for this VPC
- id String
- (String) - The unique identifier for this VPC.
- name String
- The name of the VPN gateway.
- crn string
- (String) The CRN for this VPC.
- deleteds
Is
Vpn Gateway Vpc Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href string
- (String) - The URL for this VPC
- id string
- (String) - The unique identifier for this VPC.
- name string
- The name of the VPN gateway.
- crn str
- (String) The CRN for this VPC.
- deleteds
Sequence[Is
Vpn Gateway Vpc Deleted] - (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href str
- (String) - The URL for this VPC
- id str
- (String) - The unique identifier for this VPC.
- name str
- The name of the VPN gateway.
- crn String
- (String) The CRN for this VPC.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted and provides some supplementary information. Nested scheme for deleted:
- href String
- (String) - The URL for this VPC
- id String
- (String) - The unique identifier for this VPC.
- name String
- The name of the VPN gateway.
IsVpnGatewayVpcDeleted, IsVpnGatewayVpcDeletedArgs
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
Import
The ibm_is_vpn_gateway
resource can be imported by using the VPN gateway ID.
Syntax
$ pulumi import ibm:index/isVpnGateway:IsVpnGateway example <vpn_gateway_ID>
Example
$ pulumi import ibm:index/isVpnGateway:IsVpnGateway example d7bec597-4726-451f-8a63-e621111119c32c
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.