ucloud.VpnGateway
Explore with Pulumi AI
Provides a VPN Gateway resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const fooVpc = new ucloud.Vpc("fooVpc", {
tag: "tf-acc",
cidrBlocks: ["192.168.0.0/16"],
});
const fooEip = new ucloud.Eip("fooEip", {
bandwidth: 1,
internetType: "bgp",
chargeMode: "bandwidth",
tag: "tf-acc",
});
const fooVpnGateway = new ucloud.VpnGateway("fooVpnGateway", {
vpcId: fooVpc.vpcId,
grade: "enhanced",
eipId: fooEip.eipId,
tag: "tf-acc",
});
import pulumi
import pulumi_ucloud as ucloud
foo_vpc = ucloud.Vpc("fooVpc",
tag="tf-acc",
cidr_blocks=["192.168.0.0/16"])
foo_eip = ucloud.Eip("fooEip",
bandwidth=1,
internet_type="bgp",
charge_mode="bandwidth",
tag="tf-acc")
foo_vpn_gateway = ucloud.VpnGateway("fooVpnGateway",
vpc_id=foo_vpc.vpc_id,
grade="enhanced",
eip_id=foo_eip.eip_id,
tag="tf-acc")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooVpc, err := ucloud.NewVpc(ctx, "fooVpc", &ucloud.VpcArgs{
Tag: pulumi.String("tf-acc"),
CidrBlocks: pulumi.StringArray{
pulumi.String("192.168.0.0/16"),
},
})
if err != nil {
return err
}
fooEip, err := ucloud.NewEip(ctx, "fooEip", &ucloud.EipArgs{
Bandwidth: pulumi.Float64(1),
InternetType: pulumi.String("bgp"),
ChargeMode: pulumi.String("bandwidth"),
Tag: pulumi.String("tf-acc"),
})
if err != nil {
return err
}
_, err = ucloud.NewVpnGateway(ctx, "fooVpnGateway", &ucloud.VpnGatewayArgs{
VpcId: fooVpc.VpcId,
Grade: pulumi.String("enhanced"),
EipId: fooEip.EipId,
Tag: pulumi.String("tf-acc"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
var fooVpc = new Ucloud.Vpc("fooVpc", new()
{
Tag = "tf-acc",
CidrBlocks = new[]
{
"192.168.0.0/16",
},
});
var fooEip = new Ucloud.Eip("fooEip", new()
{
Bandwidth = 1,
InternetType = "bgp",
ChargeMode = "bandwidth",
Tag = "tf-acc",
});
var fooVpnGateway = new Ucloud.VpnGateway("fooVpnGateway", new()
{
VpcId = fooVpc.VpcId,
Grade = "enhanced",
EipId = fooEip.EipId,
Tag = "tf-acc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.Vpc;
import com.pulumi.ucloud.VpcArgs;
import com.pulumi.ucloud.Eip;
import com.pulumi.ucloud.EipArgs;
import com.pulumi.ucloud.VpnGateway;
import com.pulumi.ucloud.VpnGatewayArgs;
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 fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.tag("tf-acc")
.cidrBlocks("192.168.0.0/16")
.build());
var fooEip = new Eip("fooEip", EipArgs.builder()
.bandwidth(1)
.internetType("bgp")
.chargeMode("bandwidth")
.tag("tf-acc")
.build());
var fooVpnGateway = new VpnGateway("fooVpnGateway", VpnGatewayArgs.builder()
.vpcId(fooVpc.vpcId())
.grade("enhanced")
.eipId(fooEip.eipId())
.tag("tf-acc")
.build());
}
}
resources:
fooVpc:
type: ucloud:Vpc
properties:
tag: tf-acc
cidrBlocks:
- 192.168.0.0/16
fooEip:
type: ucloud:Eip
properties:
bandwidth: 1
internetType: bgp
chargeMode: bandwidth
tag: tf-acc
fooVpnGateway:
type: ucloud:VpnGateway
properties:
vpcId: ${fooVpc.vpcId}
grade: enhanced
eipId: ${fooEip.eipId}
tag: tf-acc
Create VpnGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnGateway(name: string, args: VpnGatewayArgs, opts?: CustomResourceOptions);
@overload
def VpnGateway(resource_name: str,
args: VpnGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpnGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
eip_id: Optional[str] = None,
grade: Optional[str] = None,
vpc_id: Optional[str] = None,
charge_type: Optional[str] = None,
duration: Optional[float] = None,
name: Optional[str] = None,
remark: Optional[str] = None,
tag: Optional[str] = None,
vpn_gateway_id: Optional[str] = None)
func NewVpnGateway(ctx *Context, name string, args VpnGatewayArgs, opts ...ResourceOption) (*VpnGateway, error)
public VpnGateway(string name, VpnGatewayArgs args, CustomResourceOptions? opts = null)
public VpnGateway(String name, VpnGatewayArgs args)
public VpnGateway(String name, VpnGatewayArgs args, CustomResourceOptions options)
type: ucloud:VpnGateway
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 VpnGatewayArgs
- 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 VpnGatewayArgs
- 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 VpnGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnGatewayArgs
- 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 vpnGatewayResource = new Ucloud.VpnGateway("vpnGatewayResource", new()
{
EipId = "string",
Grade = "string",
VpcId = "string",
ChargeType = "string",
Duration = 0,
Name = "string",
Remark = "string",
Tag = "string",
VpnGatewayId = "string",
});
example, err := ucloud.NewVpnGateway(ctx, "vpnGatewayResource", &ucloud.VpnGatewayArgs{
EipId: pulumi.String("string"),
Grade: pulumi.String("string"),
VpcId: pulumi.String("string"),
ChargeType: pulumi.String("string"),
Duration: pulumi.Float64(0),
Name: pulumi.String("string"),
Remark: pulumi.String("string"),
Tag: pulumi.String("string"),
VpnGatewayId: pulumi.String("string"),
})
var vpnGatewayResource = new VpnGateway("vpnGatewayResource", VpnGatewayArgs.builder()
.eipId("string")
.grade("string")
.vpcId("string")
.chargeType("string")
.duration(0)
.name("string")
.remark("string")
.tag("string")
.vpnGatewayId("string")
.build());
vpn_gateway_resource = ucloud.VpnGateway("vpnGatewayResource",
eip_id="string",
grade="string",
vpc_id="string",
charge_type="string",
duration=0,
name="string",
remark="string",
tag="string",
vpn_gateway_id="string")
const vpnGatewayResource = new ucloud.VpnGateway("vpnGatewayResource", {
eipId: "string",
grade: "string",
vpcId: "string",
chargeType: "string",
duration: 0,
name: "string",
remark: "string",
tag: "string",
vpnGatewayId: "string",
});
type: ucloud:VpnGateway
properties:
chargeType: string
duration: 0
eipId: string
grade: string
name: string
remark: string
tag: string
vpcId: string
vpnGatewayId: string
VpnGateway 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 VpnGateway resource accepts the following input properties:
- Eip
Id string - The ID of eip associate to the VPN Gateway.
- Grade string
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - Vpc
Id string - The ID of VPC linked to the VPN Gateway.
- Charge
Type string - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Duration double
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Name string
- Remark string
- The remarks of the VPN Gateway. (Default:
""
). - Tag string
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Vpn
Gateway stringId - The ID of the resource VPN Gateway.
- Eip
Id string - The ID of eip associate to the VPN Gateway.
- Grade string
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - Vpc
Id string - The ID of VPC linked to the VPN Gateway.
- Charge
Type string - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Duration float64
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Name string
- Remark string
- The remarks of the VPN Gateway. (Default:
""
). - Tag string
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Vpn
Gateway stringId - The ID of the resource VPN Gateway.
- eip
Id String - The ID of eip associate to the VPN Gateway.
- grade String
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - vpc
Id String - The ID of VPC linked to the VPN Gateway.
- charge
Type String - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration Double
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name String
- remark String
- The remarks of the VPN Gateway. (Default:
""
). - tag String
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpn
Gateway StringId - The ID of the resource VPN Gateway.
- eip
Id string - The ID of eip associate to the VPN Gateway.
- grade string
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - vpc
Id string - The ID of VPC linked to the VPN Gateway.
- charge
Type string - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration number
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name string
- remark string
- The remarks of the VPN Gateway. (Default:
""
). - tag string
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpn
Gateway stringId - The ID of the resource VPN Gateway.
- eip_
id str - The ID of eip associate to the VPN Gateway.
- grade str
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - vpc_
id str - The ID of VPC linked to the VPN Gateway.
- charge_
type str - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration float
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name str
- remark str
- The remarks of the VPN Gateway. (Default:
""
). - tag str
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpn_
gateway_ strid - The ID of the resource VPN Gateway.
- eip
Id String - The ID of eip associate to the VPN Gateway.
- grade String
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - vpc
Id String - The ID of VPC linked to the VPN Gateway.
- charge
Type String - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration Number
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - name String
- remark String
- The remarks of the VPN Gateway. (Default:
""
). - tag String
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpn
Gateway StringId - The ID of the resource VPN Gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnGateway resource produces the following output properties:
- Create
Time string - The creation time for VPN Gateway, formatted in RFC3339 time string.
- Expire
Time string - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The creation time for VPN Gateway, formatted in RFC3339 time string.
- Expire
Time string - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time for VPN Gateway, formatted in RFC3339 time string.
- expire
Time String - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The creation time for VPN Gateway, formatted in RFC3339 time string.
- expire
Time string - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The creation time for VPN Gateway, formatted in RFC3339 time string.
- expire_
time str - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time for VPN Gateway, formatted in RFC3339 time string.
- expire
Time String - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VpnGateway Resource
Get an existing VpnGateway 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?: VpnGatewayState, opts?: CustomResourceOptions): VpnGateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
charge_type: Optional[str] = None,
create_time: Optional[str] = None,
duration: Optional[float] = None,
eip_id: Optional[str] = None,
expire_time: Optional[str] = None,
grade: Optional[str] = None,
name: Optional[str] = None,
remark: Optional[str] = None,
tag: Optional[str] = None,
vpc_id: Optional[str] = None,
vpn_gateway_id: Optional[str] = None) -> VpnGateway
func GetVpnGateway(ctx *Context, name string, id IDInput, state *VpnGatewayState, opts ...ResourceOption) (*VpnGateway, error)
public static VpnGateway Get(string name, Input<string> id, VpnGatewayState? state, CustomResourceOptions? opts = null)
public static VpnGateway get(String name, Output<String> id, VpnGatewayState state, CustomResourceOptions options)
resources: _: type: ucloud:VpnGateway 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.
- Charge
Type string - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Create
Time string - The creation time for VPN Gateway, formatted in RFC3339 time string.
- Duration double
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Eip
Id string - The ID of eip associate to the VPN Gateway.
- Expire
Time string - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- Grade string
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - Name string
- Remark string
- The remarks of the VPN Gateway. (Default:
""
). - Tag string
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Vpc
Id string - The ID of VPC linked to the VPN Gateway.
- Vpn
Gateway stringId - The ID of the resource VPN Gateway.
- Charge
Type string - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Create
Time string - The creation time for VPN Gateway, formatted in RFC3339 time string.
- Duration float64
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Eip
Id string - The ID of eip associate to the VPN Gateway.
- Expire
Time string - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- Grade string
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - Name string
- Remark string
- The remarks of the VPN Gateway. (Default:
""
). - Tag string
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - Vpc
Id string - The ID of VPC linked to the VPN Gateway.
- Vpn
Gateway stringId - The ID of the resource VPN Gateway.
- charge
Type String - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time String - The creation time for VPN Gateway, formatted in RFC3339 time string.
- duration Double
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - eip
Id String - The ID of eip associate to the VPN Gateway.
- expire
Time String - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- grade String
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - name String
- remark String
- The remarks of the VPN Gateway. (Default:
""
). - tag String
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpc
Id String - The ID of VPC linked to the VPN Gateway.
- vpn
Gateway StringId - The ID of the resource VPN Gateway.
- charge
Type string - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time string - The creation time for VPN Gateway, formatted in RFC3339 time string.
- duration number
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - eip
Id string - The ID of eip associate to the VPN Gateway.
- expire
Time string - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- grade string
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - name string
- remark string
- The remarks of the VPN Gateway. (Default:
""
). - tag string
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpc
Id string - The ID of VPC linked to the VPN Gateway.
- vpn
Gateway stringId - The ID of the resource VPN Gateway.
- charge_
type str - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create_
time str - The creation time for VPN Gateway, formatted in RFC3339 time string.
- duration float
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - eip_
id str - The ID of eip associate to the VPN Gateway.
- expire_
time str - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- grade str
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - name str
- remark str
- The remarks of the VPN Gateway. (Default:
""
). - tag str
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpc_
id str - The ID of VPC linked to the VPN Gateway.
- vpn_
gateway_ strid - The ID of the resource VPN Gateway.
- charge
Type String - The charge type of VPN Gateway, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time String - The creation time for VPN Gateway, formatted in RFC3339 time string.
- duration Number
- The duration that you will buy the VPN Gateway (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - eip
Id String - The ID of eip associate to the VPN Gateway.
- expire
Time String - The expiration time for VPN Gateway, formatted in RFC3339 time string.
- grade String
- The type of the VPN Gateway. Possible values:
standard
,enhanced
.standard
recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M;enhanced
recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. - name String
- remark String
- The remarks of the VPN Gateway. (Default:
""
). - tag String
- A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default:
Default
). - vpc
Id String - The ID of VPC linked to the VPN Gateway.
- vpn
Gateway StringId - The ID of the resource VPN Gateway.
Import
VPN Gateway can be imported using the id
, e.g.
$ pulumi import ucloud:index/vpnGateway:VpnGateway example vpngw-abc123456
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloud
Terraform Provider.