当您需要通过VPN连接实现私有网络与本地数据中心或其他私有网络之间的通信,您需要先创建一个VPN网关。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const vpnVpnGatewayDemo = new bytepluscc.vpn.VpnGateway("VpnVpnGatewayDemo", {
bandwidth: 5,
billingType: 2,
description: "this is a test description",
dualTunnelEnabled: false,
ipStackType: "ipv4_only",
ipVersion: "ipv4",
vpnGatewayName: "VpnVpnGatewayDemo",
ipsecEnabled: true,
sslEnabled: true,
sslMaxConnections: 5,
projectName: "default",
vpcId: "vpc-3nr6adxxxxu8931eb64y4z2",
subnetId: "subnet-btepcsxxxxw5h0b2u6hppyd",
});
import pulumi
import pulumi_bytepluscc as bytepluscc
vpn_vpn_gateway_demo = bytepluscc.vpn.VpnGateway("VpnVpnGatewayDemo",
bandwidth=5,
billing_type=2,
description="this is a test description",
dual_tunnel_enabled=False,
ip_stack_type="ipv4_only",
ip_version="ipv4",
vpn_gateway_name="VpnVpnGatewayDemo",
ipsec_enabled=True,
ssl_enabled=True,
ssl_max_connections=5,
project_name="default",
vpc_id="vpc-3nr6adxxxxu8931eb64y4z2",
subnet_id="subnet-btepcsxxxxw5h0b2u6hppyd")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/vpn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpn.NewVpnGateway(ctx, "VpnVpnGatewayDemo", &vpn.VpnGatewayArgs{
Bandwidth: pulumi.Int(5),
BillingType: pulumi.Int(2),
Description: pulumi.String("this is a test description"),
DualTunnelEnabled: pulumi.Bool(false),
IpStackType: pulumi.String("ipv4_only"),
IpVersion: pulumi.String("ipv4"),
VpnGatewayName: pulumi.String("VpnVpnGatewayDemo"),
IpsecEnabled: pulumi.Bool(true),
SslEnabled: pulumi.Bool(true),
SslMaxConnections: pulumi.Int(5),
ProjectName: pulumi.String("default"),
VpcId: pulumi.String("vpc-3nr6adxxxxu8931eb64y4z2"),
SubnetId: pulumi.String("subnet-btepcsxxxxw5h0b2u6hppyd"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var vpnVpnGatewayDemo = new Bytepluscc.Vpn.VpnGateway("VpnVpnGatewayDemo", new()
{
Bandwidth = 5,
BillingType = 2,
Description = "this is a test description",
DualTunnelEnabled = false,
IpStackType = "ipv4_only",
IpVersion = "ipv4",
VpnGatewayName = "VpnVpnGatewayDemo",
IpsecEnabled = true,
SslEnabled = true,
SslMaxConnections = 5,
ProjectName = "default",
VpcId = "vpc-3nr6adxxxxu8931eb64y4z2",
SubnetId = "subnet-btepcsxxxxw5h0b2u6hppyd",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.vpn.VpnGateway;
import com.byteplus.bytepluscc.vpn.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 vpnVpnGatewayDemo = new VpnGateway("vpnVpnGatewayDemo", VpnGatewayArgs.builder()
.bandwidth(5)
.billingType(2)
.description("this is a test description")
.dualTunnelEnabled(false)
.ipStackType("ipv4_only")
.ipVersion("ipv4")
.vpnGatewayName("VpnVpnGatewayDemo")
.ipsecEnabled(true)
.sslEnabled(true)
.sslMaxConnections(5)
.projectName("default")
.vpcId("vpc-3nr6adxxxxu8931eb64y4z2")
.subnetId("subnet-btepcsxxxxw5h0b2u6hppyd")
.build());
}
}
resources:
vpnVpnGatewayDemo:
type: bytepluscc:vpn:VpnGateway
name: VpnVpnGatewayDemo
properties:
bandwidth: 5
billingType: 2
description: this is a test description
dualTunnelEnabled: false
ipStackType: ipv4_only
ipVersion: ipv4
vpnGatewayName: VpnVpnGatewayDemo
ipsecEnabled: true
sslEnabled: true
sslMaxConnections: 5
projectName: default
vpcId: vpc-3nr6adxxxxu8931eb64y4z2
subnetId: subnet-btepcsxxxxw5h0b2u6hppyd
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,
subnet_id: Optional[str] = None,
bandwidth: Optional[int] = None,
vpc_id: Optional[str] = None,
period: Optional[int] = None,
project_name: Optional[str] = None,
ip_stack_type: Optional[str] = None,
ip_version: Optional[str] = None,
ipsec_enabled: Optional[bool] = None,
asn: Optional[int] = None,
period_unit: Optional[str] = None,
dual_tunnel_enabled: Optional[bool] = None,
secondary_subnet_id: Optional[str] = None,
ssl_enabled: Optional[bool] = None,
ssl_max_connections: Optional[int] = None,
description: Optional[str] = None,
tags: Optional[Sequence[VpnGatewayTagArgs]] = None,
billing_type: Optional[int] = None,
vpn_gateway_name: 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: bytepluscc:vpn: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 Bytepluscc.Vpn.VpnGateway("vpnGatewayResource", new()
{
SubnetId = "string",
Bandwidth = 0,
VpcId = "string",
Period = 0,
ProjectName = "string",
IpStackType = "string",
IpVersion = "string",
IpsecEnabled = false,
Asn = 0,
PeriodUnit = "string",
DualTunnelEnabled = false,
SecondarySubnetId = "string",
SslEnabled = false,
SslMaxConnections = 0,
Description = "string",
Tags = new[]
{
new Bytepluscc.Vpn.Inputs.VpnGatewayTagArgs
{
Key = "string",
Value = "string",
},
},
BillingType = 0,
VpnGatewayName = "string",
});
example, err := vpn.NewVpnGateway(ctx, "vpnGatewayResource", &vpn.VpnGatewayArgs{
SubnetId: pulumi.String("string"),
Bandwidth: pulumi.Int(0),
VpcId: pulumi.String("string"),
Period: pulumi.Int(0),
ProjectName: pulumi.String("string"),
IpStackType: pulumi.String("string"),
IpVersion: pulumi.String("string"),
IpsecEnabled: pulumi.Bool(false),
Asn: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
DualTunnelEnabled: pulumi.Bool(false),
SecondarySubnetId: pulumi.String("string"),
SslEnabled: pulumi.Bool(false),
SslMaxConnections: pulumi.Int(0),
Description: pulumi.String("string"),
Tags: vpn.VpnGatewayTagArray{
&vpn.VpnGatewayTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
BillingType: pulumi.Int(0),
VpnGatewayName: pulumi.String("string"),
})
var vpnGatewayResource = new VpnGateway("vpnGatewayResource", VpnGatewayArgs.builder()
.subnetId("string")
.bandwidth(0)
.vpcId("string")
.period(0)
.projectName("string")
.ipStackType("string")
.ipVersion("string")
.ipsecEnabled(false)
.asn(0)
.periodUnit("string")
.dualTunnelEnabled(false)
.secondarySubnetId("string")
.sslEnabled(false)
.sslMaxConnections(0)
.description("string")
.tags(VpnGatewayTagArgs.builder()
.key("string")
.value("string")
.build())
.billingType(0)
.vpnGatewayName("string")
.build());
vpn_gateway_resource = bytepluscc.vpn.VpnGateway("vpnGatewayResource",
subnet_id="string",
bandwidth=0,
vpc_id="string",
period=0,
project_name="string",
ip_stack_type="string",
ip_version="string",
ipsec_enabled=False,
asn=0,
period_unit="string",
dual_tunnel_enabled=False,
secondary_subnet_id="string",
ssl_enabled=False,
ssl_max_connections=0,
description="string",
tags=[{
"key": "string",
"value": "string",
}],
billing_type=0,
vpn_gateway_name="string")
const vpnGatewayResource = new bytepluscc.vpn.VpnGateway("vpnGatewayResource", {
subnetId: "string",
bandwidth: 0,
vpcId: "string",
period: 0,
projectName: "string",
ipStackType: "string",
ipVersion: "string",
ipsecEnabled: false,
asn: 0,
periodUnit: "string",
dualTunnelEnabled: false,
secondarySubnetId: "string",
sslEnabled: false,
sslMaxConnections: 0,
description: "string",
tags: [{
key: "string",
value: "string",
}],
billingType: 0,
vpnGatewayName: "string",
});
type: bytepluscc:vpn:VpnGateway
properties:
asn: 0
bandwidth: 0
billingType: 0
description: string
dualTunnelEnabled: false
ipStackType: string
ipVersion: string
ipsecEnabled: false
period: 0
periodUnit: string
projectName: string
secondarySubnetId: string
sslEnabled: false
sslMaxConnections: 0
subnetId: string
tags:
- key: string
value: string
vpcId: string
vpnGatewayName: 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:
- Bandwidth int
- VPN网关的带宽规格。
- Subnet
Id string - VPN网关使用的端口所属子网的ID。
- Vpc
Id string - VPN网关所在VPC的ID。
- Asn int
- VPN网关的ASN。
- Billing
Type int - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- Description string
- VPN网关的描述。
- Dual
Tunnel boolEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- Ip
Stack stringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- Ip
Version string - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- Ipsec
Enabled bool - 是否开启IPSec功能。true:开启false:关闭。
- Period int
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- Period
Unit string - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- Project
Name string - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- Secondary
Subnet stringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Ssl
Enabled bool - 是否开启SSL VPN功能。true:开启false:关闭
- Ssl
Max intConnections - VPN网关的最大SSL连接数。
-
List<Byteplus.
Vpn Gateway Tag> - Vpn
Gateway stringName - VPN网关的名称。
- Bandwidth int
- VPN网关的带宽规格。
- Subnet
Id string - VPN网关使用的端口所属子网的ID。
- Vpc
Id string - VPN网关所在VPC的ID。
- Asn int
- VPN网关的ASN。
- Billing
Type int - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- Description string
- VPN网关的描述。
- Dual
Tunnel boolEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- Ip
Stack stringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- Ip
Version string - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- Ipsec
Enabled bool - 是否开启IPSec功能。true:开启false:关闭。
- Period int
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- Period
Unit string - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- Project
Name string - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- Secondary
Subnet stringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Ssl
Enabled bool - 是否开启SSL VPN功能。true:开启false:关闭
- Ssl
Max intConnections - VPN网关的最大SSL连接数。
-
[]Vpn
Gateway Tag Args - Vpn
Gateway stringName - VPN网关的名称。
- bandwidth Integer
- VPN网关的带宽规格。
- subnet
Id String - VPN网关使用的端口所属子网的ID。
- vpc
Id String - VPN网关所在VPC的ID。
- asn Integer
- VPN网关的ASN。
- billing
Type Integer - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- description String
- VPN网关的描述。
- dual
Tunnel BooleanEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- ip
Stack StringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip
Version String - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec
Enabled Boolean - 是否开启IPSec功能。true:开启false:关闭。
- period Integer
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period
Unit String - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project
Name String - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- secondary
Subnet StringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl
Enabled Boolean - 是否开启SSL VPN功能。true:开启false:关闭
- ssl
Max IntegerConnections - VPN网关的最大SSL连接数。
-
List<Vpn
Gateway Tag> - vpn
Gateway StringName - VPN网关的名称。
- bandwidth number
- VPN网关的带宽规格。
- subnet
Id string - VPN网关使用的端口所属子网的ID。
- vpc
Id string - VPN网关所在VPC的ID。
- asn number
- VPN网关的ASN。
- billing
Type number - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- description string
- VPN网关的描述。
- dual
Tunnel booleanEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- ip
Stack stringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip
Version string - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec
Enabled boolean - 是否开启IPSec功能。true:开启false:关闭。
- period number
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period
Unit string - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project
Name string - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- secondary
Subnet stringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl
Enabled boolean - 是否开启SSL VPN功能。true:开启false:关闭
- ssl
Max numberConnections - VPN网关的最大SSL连接数。
-
Vpn
Gateway Tag[] - vpn
Gateway stringName - VPN网关的名称。
- bandwidth int
- VPN网关的带宽规格。
- subnet_
id str - VPN网关使用的端口所属子网的ID。
- vpc_
id str - VPN网关所在VPC的ID。
- asn int
- VPN网关的ASN。
- billing_
type int - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- description str
- VPN网关的描述。
- dual_
tunnel_ boolenabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- ip_
stack_ strtype - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip_
version str - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec_
enabled bool - 是否开启IPSec功能。true:开启false:关闭。
- period int
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period_
unit str - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project_
name str - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- secondary_
subnet_ strid - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl_
enabled bool - 是否开启SSL VPN功能。true:开启false:关闭
- ssl_
max_ intconnections - VPN网关的最大SSL连接数。
-
Sequence[Vpn
Gateway Tag Args] - vpn_
gateway_ strname - VPN网关的名称。
- bandwidth Number
- VPN网关的带宽规格。
- subnet
Id String - VPN网关使用的端口所属子网的ID。
- vpc
Id String - VPN网关所在VPC的ID。
- asn Number
- VPN网关的ASN。
- billing
Type Number - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- description String
- VPN网关的描述。
- dual
Tunnel BooleanEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- ip
Stack StringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip
Version String - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec
Enabled Boolean - 是否开启IPSec功能。true:开启false:关闭。
- period Number
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period
Unit String - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project
Name String - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- secondary
Subnet StringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl
Enabled Boolean - 是否开启SSL VPN功能。true:开启false:关闭
- ssl
Max NumberConnections - VPN网关的最大SSL连接数。
- List<Property Map>
- vpn
Gateway StringName - VPN网关的名称。
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnGateway resource produces the following output properties:
- Business
Status string - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- Connection
Count int - VPN网关关联IPsec连接的数量。
- Create
Time string - 创建VPN网关的时间。
- Deleted
Time string - 预期资源强制回收时间。
- Expired
Time string - VPN网关的到期时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - VPN网关的公网IP地址。
- Is
Blocked bool - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- Lock
Reason string - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- Route
Count int - VPN网关的路由条目数量。
- Secondary
Ip stringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Status string
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- Update
Time string - 更新VPN网关的时间。
- Vpn
Gateway stringId - VPN网关的ID。
- Business
Status string - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- Connection
Count int - VPN网关关联IPsec连接的数量。
- Create
Time string - 创建VPN网关的时间。
- Deleted
Time string - 预期资源强制回收时间。
- Expired
Time string - VPN网关的到期时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - VPN网关的公网IP地址。
- Is
Blocked bool - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- Lock
Reason string - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- Route
Count int - VPN网关的路由条目数量。
- Secondary
Ip stringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Status string
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- Update
Time string - 更新VPN网关的时间。
- Vpn
Gateway stringId - VPN网关的ID。
- business
Status String - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection
Count Integer - VPN网关关联IPsec连接的数量。
- create
Time String - 创建VPN网关的时间。
- deleted
Time String - 预期资源强制回收时间。
- expired
Time String - VPN网关的到期时间。
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - VPN网关的公网IP地址。
- is
Blocked Boolean - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock
Reason String - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- route
Count Integer - VPN网关的路由条目数量。
- secondary
Ip StringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- status String
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update
Time String - 更新VPN网关的时间。
- vpn
Gateway StringId - VPN网关的ID。
- business
Status string - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection
Count number - VPN网关关联IPsec连接的数量。
- create
Time string - 创建VPN网关的时间。
- deleted
Time string - 预期资源强制回收时间。
- expired
Time string - VPN网关的到期时间。
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - VPN网关的公网IP地址。
- is
Blocked boolean - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock
Reason string - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- route
Count number - VPN网关的路由条目数量。
- secondary
Ip stringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- status string
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update
Time string - 更新VPN网关的时间。
- vpn
Gateway stringId - VPN网关的ID。
- business_
status str - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection_
count int - VPN网关关联IPsec连接的数量。
- create_
time str - 创建VPN网关的时间。
- deleted_
time str - 预期资源强制回收时间。
- expired_
time str - VPN网关的到期时间。
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - VPN网关的公网IP地址。
- is_
blocked bool - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock_
reason str - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue_
time str - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- route_
count int - VPN网关的路由条目数量。
- secondary_
ip_ straddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- status str
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update_
time str - 更新VPN网关的时间。
- vpn_
gateway_ strid - VPN网关的ID。
- business
Status String - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection
Count Number - VPN网关关联IPsec连接的数量。
- create
Time String - 创建VPN网关的时间。
- deleted
Time String - 预期资源强制回收时间。
- expired
Time String - VPN网关的到期时间。
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - VPN网关的公网IP地址。
- is
Blocked Boolean - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock
Reason String - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- route
Count Number - VPN网关的路由条目数量。
- secondary
Ip StringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- status String
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update
Time String - 更新VPN网关的时间。
- vpn
Gateway StringId - VPN网关的ID。
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,
asn: Optional[int] = None,
bandwidth: Optional[int] = None,
billing_type: Optional[int] = None,
business_status: Optional[str] = None,
connection_count: Optional[int] = None,
create_time: Optional[str] = None,
deleted_time: Optional[str] = None,
description: Optional[str] = None,
dual_tunnel_enabled: Optional[bool] = None,
expired_time: Optional[str] = None,
ip_address: Optional[str] = None,
ip_stack_type: Optional[str] = None,
ip_version: Optional[str] = None,
ipsec_enabled: Optional[bool] = None,
is_blocked: Optional[bool] = None,
lock_reason: Optional[str] = None,
overdue_time: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
project_name: Optional[str] = None,
route_count: Optional[int] = None,
secondary_ip_address: Optional[str] = None,
secondary_subnet_id: Optional[str] = None,
ssl_enabled: Optional[bool] = None,
ssl_max_connections: Optional[int] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[VpnGatewayTagArgs]] = None,
update_time: Optional[str] = None,
vpc_id: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
vpn_gateway_name: Optional[str] = None) -> VpnGatewayfunc 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: bytepluscc:vpn: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.
- Asn int
- VPN网关的ASN。
- Bandwidth int
- VPN网关的带宽规格。
- Billing
Type int - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- Business
Status string - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- Connection
Count int - VPN网关关联IPsec连接的数量。
- Create
Time string - 创建VPN网关的时间。
- Deleted
Time string - 预期资源强制回收时间。
- Description string
- VPN网关的描述。
- Dual
Tunnel boolEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- Expired
Time string - VPN网关的到期时间。
- Ip
Address string - VPN网关的公网IP地址。
- Ip
Stack stringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- Ip
Version string - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- Ipsec
Enabled bool - 是否开启IPSec功能。true:开启false:关闭。
- Is
Blocked bool - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- Lock
Reason string - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- Period int
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- Period
Unit string - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- Project
Name string - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- Route
Count int - VPN网关的路由条目数量。
- Secondary
Ip stringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Secondary
Subnet stringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Ssl
Enabled bool - 是否开启SSL VPN功能。true:开启false:关闭
- Ssl
Max intConnections - VPN网关的最大SSL连接数。
- Status string
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- Subnet
Id string - VPN网关使用的端口所属子网的ID。
-
List<Byteplus.
Vpn Gateway Tag> - Update
Time string - 更新VPN网关的时间。
- Vpc
Id string - VPN网关所在VPC的ID。
- Vpn
Gateway stringId - VPN网关的ID。
- Vpn
Gateway stringName - VPN网关的名称。
- Asn int
- VPN网关的ASN。
- Bandwidth int
- VPN网关的带宽规格。
- Billing
Type int - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- Business
Status string - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- Connection
Count int - VPN网关关联IPsec连接的数量。
- Create
Time string - 创建VPN网关的时间。
- Deleted
Time string - 预期资源强制回收时间。
- Description string
- VPN网关的描述。
- Dual
Tunnel boolEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- Expired
Time string - VPN网关的到期时间。
- Ip
Address string - VPN网关的公网IP地址。
- Ip
Stack stringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- Ip
Version string - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- Ipsec
Enabled bool - 是否开启IPSec功能。true:开启false:关闭。
- Is
Blocked bool - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- Lock
Reason string - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- Period int
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- Period
Unit string - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- Project
Name string - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- Route
Count int - VPN网关的路由条目数量。
- Secondary
Ip stringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Secondary
Subnet stringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- Ssl
Enabled bool - 是否开启SSL VPN功能。true:开启false:关闭
- Ssl
Max intConnections - VPN网关的最大SSL连接数。
- Status string
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- Subnet
Id string - VPN网关使用的端口所属子网的ID。
-
[]Vpn
Gateway Tag Args - Update
Time string - 更新VPN网关的时间。
- Vpc
Id string - VPN网关所在VPC的ID。
- Vpn
Gateway stringId - VPN网关的ID。
- Vpn
Gateway stringName - VPN网关的名称。
- asn Integer
- VPN网关的ASN。
- bandwidth Integer
- VPN网关的带宽规格。
- billing
Type Integer - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- business
Status String - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection
Count Integer - VPN网关关联IPsec连接的数量。
- create
Time String - 创建VPN网关的时间。
- deleted
Time String - 预期资源强制回收时间。
- description String
- VPN网关的描述。
- dual
Tunnel BooleanEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- expired
Time String - VPN网关的到期时间。
- ip
Address String - VPN网关的公网IP地址。
- ip
Stack StringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip
Version String - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec
Enabled Boolean - 是否开启IPSec功能。true:开启false:关闭。
- is
Blocked Boolean - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock
Reason String - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- period Integer
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period
Unit String - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project
Name String - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- route
Count Integer - VPN网关的路由条目数量。
- secondary
Ip StringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- secondary
Subnet StringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl
Enabled Boolean - 是否开启SSL VPN功能。true:开启false:关闭
- ssl
Max IntegerConnections - VPN网关的最大SSL连接数。
- status String
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- subnet
Id String - VPN网关使用的端口所属子网的ID。
-
List<Vpn
Gateway Tag> - update
Time String - 更新VPN网关的时间。
- vpc
Id String - VPN网关所在VPC的ID。
- vpn
Gateway StringId - VPN网关的ID。
- vpn
Gateway StringName - VPN网关的名称。
- asn number
- VPN网关的ASN。
- bandwidth number
- VPN网关的带宽规格。
- billing
Type number - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- business
Status string - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection
Count number - VPN网关关联IPsec连接的数量。
- create
Time string - 创建VPN网关的时间。
- deleted
Time string - 预期资源强制回收时间。
- description string
- VPN网关的描述。
- dual
Tunnel booleanEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- expired
Time string - VPN网关的到期时间。
- ip
Address string - VPN网关的公网IP地址。
- ip
Stack stringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip
Version string - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec
Enabled boolean - 是否开启IPSec功能。true:开启false:关闭。
- is
Blocked boolean - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock
Reason string - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- period number
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period
Unit string - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project
Name string - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- route
Count number - VPN网关的路由条目数量。
- secondary
Ip stringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- secondary
Subnet stringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl
Enabled boolean - 是否开启SSL VPN功能。true:开启false:关闭
- ssl
Max numberConnections - VPN网关的最大SSL连接数。
- status string
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- subnet
Id string - VPN网关使用的端口所属子网的ID。
-
Vpn
Gateway Tag[] - update
Time string - 更新VPN网关的时间。
- vpc
Id string - VPN网关所在VPC的ID。
- vpn
Gateway stringId - VPN网关的ID。
- vpn
Gateway stringName - VPN网关的名称。
- asn int
- VPN网关的ASN。
- bandwidth int
- VPN网关的带宽规格。
- billing_
type int - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- business_
status str - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection_
count int - VPN网关关联IPsec连接的数量。
- create_
time str - 创建VPN网关的时间。
- deleted_
time str - 预期资源强制回收时间。
- description str
- VPN网关的描述。
- dual_
tunnel_ boolenabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- expired_
time str - VPN网关的到期时间。
- ip_
address str - VPN网关的公网IP地址。
- ip_
stack_ strtype - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip_
version str - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec_
enabled bool - 是否开启IPSec功能。true:开启false:关闭。
- is_
blocked bool - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock_
reason str - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue_
time str - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- period int
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period_
unit str - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project_
name str - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- route_
count int - VPN网关的路由条目数量。
- secondary_
ip_ straddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- secondary_
subnet_ strid - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl_
enabled bool - 是否开启SSL VPN功能。true:开启false:关闭
- ssl_
max_ intconnections - VPN网关的最大SSL连接数。
- status str
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- subnet_
id str - VPN网关使用的端口所属子网的ID。
-
Sequence[Vpn
Gateway Tag Args] - update_
time str - 更新VPN网关的时间。
- vpc_
id str - VPN网关所在VPC的ID。
- vpn_
gateway_ strid - VPN网关的ID。
- vpn_
gateway_ strname - VPN网关的名称。
- asn Number
- VPN网关的ASN。
- bandwidth Number
- VPN网关的带宽规格。
- billing
Type Number - VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
- business
Status String - VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
- connection
Count Number - VPN网关关联IPsec连接的数量。
- create
Time String - 创建VPN网关的时间。
- deleted
Time String - 预期资源强制回收时间。
- description String
- VPN网关的描述。
- dual
Tunnel BooleanEnabled - VPN网关是否开启双隧道模式。true:开启false:关闭
- expired
Time String - VPN网关的到期时间。
- ip
Address String - VPN网关的公网IP地址。
- ip
Stack StringType - VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
- ip
Version String - VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
- ipsec
Enabled Boolean - 是否开启IPSec功能。true:开启false:关闭。
- is
Blocked Boolean - 当前资源的状态是否被封禁。true:封禁false:未封禁。
- lock
Reason String - VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
- period Number
- 包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
- period
Unit String - 包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
- project
Name String - VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
- route
Count Number - VPN网关的路由条目数量。
- secondary
Ip StringAddress - VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- secondary
Subnet StringId - VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
- ssl
Enabled Boolean - 是否开启SSL VPN功能。true:开启false:关闭
- ssl
Max NumberConnections - VPN网关的最大SSL连接数。
- status String
- VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- subnet
Id String - VPN网关使用的端口所属子网的ID。
- List<Property Map>
- update
Time String - 更新VPN网关的时间。
- vpc
Id String - VPN网关所在VPC的ID。
- vpn
Gateway StringId - VPN网关的ID。
- vpn
Gateway StringName - VPN网关的名称。
Supporting Types
VpnGatewayTag, VpnGatewayTagArgs
- Key string
- VPN网关标签的标签键(Key)。参数 - N:表示标签键的序号,取值范围:1~20。多个标签键之间用&分隔。命名规则如下:不能以volc:或sys:的任意大小写组合开头。只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。长度限制在1~128个字符之间。说明同一资源的标签键不允许重复。
- Value string
- VPN网关标签的标签值(Value)。参数 - N:表示标签值的序号,取值范围:1~20。多个标签值之间用&分隔。命名规则如下:只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。允许为空,长度限制在0~256个字符之间。大小写敏感,不能以空格开头或结尾。说明传入Tags.N.Value则必须传入Tags.N.Key。
- Key string
- VPN网关标签的标签键(Key)。参数 - N:表示标签键的序号,取值范围:1~20。多个标签键之间用&分隔。命名规则如下:不能以volc:或sys:的任意大小写组合开头。只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。长度限制在1~128个字符之间。说明同一资源的标签键不允许重复。
- Value string
- VPN网关标签的标签值(Value)。参数 - N:表示标签值的序号,取值范围:1~20。多个标签值之间用&分隔。命名规则如下:只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。允许为空,长度限制在0~256个字符之间。大小写敏感,不能以空格开头或结尾。说明传入Tags.N.Value则必须传入Tags.N.Key。
- key String
- VPN网关标签的标签键(Key)。参数 - N:表示标签键的序号,取值范围:1~20。多个标签键之间用&分隔。命名规则如下:不能以volc:或sys:的任意大小写组合开头。只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。长度限制在1~128个字符之间。说明同一资源的标签键不允许重复。
- value String
- VPN网关标签的标签值(Value)。参数 - N:表示标签值的序号,取值范围:1~20。多个标签值之间用&分隔。命名规则如下:只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。允许为空,长度限制在0~256个字符之间。大小写敏感,不能以空格开头或结尾。说明传入Tags.N.Value则必须传入Tags.N.Key。
- key string
- VPN网关标签的标签键(Key)。参数 - N:表示标签键的序号,取值范围:1~20。多个标签键之间用&分隔。命名规则如下:不能以volc:或sys:的任意大小写组合开头。只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。长度限制在1~128个字符之间。说明同一资源的标签键不允许重复。
- value string
- VPN网关标签的标签值(Value)。参数 - N:表示标签值的序号,取值范围:1~20。多个标签值之间用&分隔。命名规则如下:只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。允许为空,长度限制在0~256个字符之间。大小写敏感,不能以空格开头或结尾。说明传入Tags.N.Value则必须传入Tags.N.Key。
- key str
- VPN网关标签的标签键(Key)。参数 - N:表示标签键的序号,取值范围:1~20。多个标签键之间用&分隔。命名规则如下:不能以volc:或sys:的任意大小写组合开头。只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。长度限制在1~128个字符之间。说明同一资源的标签键不允许重复。
- value str
- VPN网关标签的标签值(Value)。参数 - N:表示标签值的序号,取值范围:1~20。多个标签值之间用&分隔。命名规则如下:只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。允许为空,长度限制在0~256个字符之间。大小写敏感,不能以空格开头或结尾。说明传入Tags.N.Value则必须传入Tags.N.Key。
- key String
- VPN网关标签的标签键(Key)。参数 - N:表示标签键的序号,取值范围:1~20。多个标签键之间用&分隔。命名规则如下:不能以volc:或sys:的任意大小写组合开头。只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。长度限制在1~128个字符之间。说明同一资源的标签键不允许重复。
- value String
- VPN网关标签的标签值(Value)。参数 - N:表示标签值的序号,取值范围:1~20。多个标签值之间用&分隔。命名规则如下:只能包含语言字符、数字、空格和英文符号“_”、“.”、“:”、“/”、“=”、“+”、“-”、“@”。允许为空,长度限制在0~256个字符之间。大小写敏感,不能以空格开头或结尾。说明传入Tags.N.Value则必须传入Tags.N.Key。
Import
$ pulumi import bytepluscc:vpn/vpnGateway:VpnGateway example "vpn_gateway_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
