1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. vpn
  5. VpnGateway
bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus
bytepluscc logo
bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus

    当您需要通过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网关的带宽规格。
    SubnetId string
    VPN网关使用的端口所属子网的ID。
    VpcId string
    VPN网关所在VPC的ID。
    Asn int
    VPN网关的ASN。
    BillingType int
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    Description string
    VPN网关的描述。
    DualTunnelEnabled bool
    VPN网关是否开启双隧道模式。true:开启false:关闭
    IpStackType string
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    IpVersion string
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    IpsecEnabled bool
    是否开启IPSec功能。true:开启false:关闭。
    Period int
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    PeriodUnit string
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    ProjectName string
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    SecondarySubnetId string
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    SslEnabled bool
    是否开启SSL VPN功能。true:开启false:关闭
    SslMaxConnections int
    VPN网关的最大SSL连接数。
    Tags List<Byteplus.VpnGatewayTag>
    VpnGatewayName string
    VPN网关的名称。
    Bandwidth int
    VPN网关的带宽规格。
    SubnetId string
    VPN网关使用的端口所属子网的ID。
    VpcId string
    VPN网关所在VPC的ID。
    Asn int
    VPN网关的ASN。
    BillingType int
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    Description string
    VPN网关的描述。
    DualTunnelEnabled bool
    VPN网关是否开启双隧道模式。true:开启false:关闭
    IpStackType string
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    IpVersion string
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    IpsecEnabled bool
    是否开启IPSec功能。true:开启false:关闭。
    Period int
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    PeriodUnit string
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    ProjectName string
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    SecondarySubnetId string
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    SslEnabled bool
    是否开启SSL VPN功能。true:开启false:关闭
    SslMaxConnections int
    VPN网关的最大SSL连接数。
    Tags []VpnGatewayTagArgs
    VpnGatewayName string
    VPN网关的名称。
    bandwidth Integer
    VPN网关的带宽规格。
    subnetId String
    VPN网关使用的端口所属子网的ID。
    vpcId String
    VPN网关所在VPC的ID。
    asn Integer
    VPN网关的ASN。
    billingType Integer
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    description String
    VPN网关的描述。
    dualTunnelEnabled Boolean
    VPN网关是否开启双隧道模式。true:开启false:关闭
    ipStackType String
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    ipVersion String
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    ipsecEnabled Boolean
    是否开启IPSec功能。true:开启false:关闭。
    period Integer
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    periodUnit String
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    projectName String
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    secondarySubnetId String
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    sslEnabled Boolean
    是否开启SSL VPN功能。true:开启false:关闭
    sslMaxConnections Integer
    VPN网关的最大SSL连接数。
    tags List<VpnGatewayTag>
    vpnGatewayName String
    VPN网关的名称。
    bandwidth number
    VPN网关的带宽规格。
    subnetId string
    VPN网关使用的端口所属子网的ID。
    vpcId string
    VPN网关所在VPC的ID。
    asn number
    VPN网关的ASN。
    billingType number
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    description string
    VPN网关的描述。
    dualTunnelEnabled boolean
    VPN网关是否开启双隧道模式。true:开启false:关闭
    ipStackType string
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    ipVersion string
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    ipsecEnabled boolean
    是否开启IPSec功能。true:开启false:关闭。
    period number
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    periodUnit string
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    projectName string
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    secondarySubnetId string
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    sslEnabled boolean
    是否开启SSL VPN功能。true:开启false:关闭
    sslMaxConnections number
    VPN网关的最大SSL连接数。
    tags VpnGatewayTag[]
    vpnGatewayName string
    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_enabled bool
    VPN网关是否开启双隧道模式。true:开启false:关闭
    ip_stack_type str
    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_id str
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    ssl_enabled bool
    是否开启SSL VPN功能。true:开启false:关闭
    ssl_max_connections int
    VPN网关的最大SSL连接数。
    tags Sequence[VpnGatewayTagArgs]
    vpn_gateway_name str
    VPN网关的名称。
    bandwidth Number
    VPN网关的带宽规格。
    subnetId String
    VPN网关使用的端口所属子网的ID。
    vpcId String
    VPN网关所在VPC的ID。
    asn Number
    VPN网关的ASN。
    billingType Number
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    description String
    VPN网关的描述。
    dualTunnelEnabled Boolean
    VPN网关是否开启双隧道模式。true:开启false:关闭
    ipStackType String
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    ipVersion String
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    ipsecEnabled Boolean
    是否开启IPSec功能。true:开启false:关闭。
    period Number
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    periodUnit String
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    projectName String
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    secondarySubnetId String
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    sslEnabled Boolean
    是否开启SSL VPN功能。true:开启false:关闭
    sslMaxConnections Number
    VPN网关的最大SSL连接数。
    tags List<Property Map>
    vpnGatewayName String
    VPN网关的名称。

    Outputs

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

    BusinessStatus string
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    ConnectionCount int
    VPN网关关联IPsec连接的数量。
    CreateTime string
    创建VPN网关的时间。
    DeletedTime string
    预期资源强制回收时间。
    ExpiredTime string
    VPN网关的到期时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    VPN网关的公网IP地址。
    IsBlocked bool
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    LockReason string
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    RouteCount int
    VPN网关的路由条目数量。
    SecondaryIpAddress string
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    Status string
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    UpdateTime string
    更新VPN网关的时间。
    VpnGatewayId string
    VPN网关的ID。
    BusinessStatus string
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    ConnectionCount int
    VPN网关关联IPsec连接的数量。
    CreateTime string
    创建VPN网关的时间。
    DeletedTime string
    预期资源强制回收时间。
    ExpiredTime string
    VPN网关的到期时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    VPN网关的公网IP地址。
    IsBlocked bool
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    LockReason string
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    RouteCount int
    VPN网关的路由条目数量。
    SecondaryIpAddress string
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    Status string
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    UpdateTime string
    更新VPN网关的时间。
    VpnGatewayId string
    VPN网关的ID。
    businessStatus String
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    connectionCount Integer
    VPN网关关联IPsec连接的数量。
    createTime String
    创建VPN网关的时间。
    deletedTime String
    预期资源强制回收时间。
    expiredTime String
    VPN网关的到期时间。
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    VPN网关的公网IP地址。
    isBlocked Boolean
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    lockReason String
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    routeCount Integer
    VPN网关的路由条目数量。
    secondaryIpAddress String
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    status String
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    updateTime String
    更新VPN网关的时间。
    vpnGatewayId String
    VPN网关的ID。
    businessStatus string
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    connectionCount number
    VPN网关关联IPsec连接的数量。
    createTime string
    创建VPN网关的时间。
    deletedTime string
    预期资源强制回收时间。
    expiredTime string
    VPN网关的到期时间。
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddress string
    VPN网关的公网IP地址。
    isBlocked boolean
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    lockReason string
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    overdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    routeCount number
    VPN网关的路由条目数量。
    secondaryIpAddress string
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    status string
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    updateTime string
    更新VPN网关的时间。
    vpnGatewayId string
    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_address str
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    status str
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    update_time str
    更新VPN网关的时间。
    vpn_gateway_id str
    VPN网关的ID。
    businessStatus String
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    connectionCount Number
    VPN网关关联IPsec连接的数量。
    createTime String
    创建VPN网关的时间。
    deletedTime String
    预期资源强制回收时间。
    expiredTime String
    VPN网关的到期时间。
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    VPN网关的公网IP地址。
    isBlocked Boolean
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    lockReason String
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    routeCount Number
    VPN网关的路由条目数量。
    secondaryIpAddress String
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    status String
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    updateTime String
    更新VPN网关的时间。
    vpnGatewayId String
    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) -> 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: 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.
    The following state arguments are supported:
    Asn int
    VPN网关的ASN。
    Bandwidth int
    VPN网关的带宽规格。
    BillingType int
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    BusinessStatus string
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    ConnectionCount int
    VPN网关关联IPsec连接的数量。
    CreateTime string
    创建VPN网关的时间。
    DeletedTime string
    预期资源强制回收时间。
    Description string
    VPN网关的描述。
    DualTunnelEnabled bool
    VPN网关是否开启双隧道模式。true:开启false:关闭
    ExpiredTime string
    VPN网关的到期时间。
    IpAddress string
    VPN网关的公网IP地址。
    IpStackType string
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    IpVersion string
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    IpsecEnabled bool
    是否开启IPSec功能。true:开启false:关闭。
    IsBlocked bool
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    LockReason string
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    Period int
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    PeriodUnit string
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    ProjectName string
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    RouteCount int
    VPN网关的路由条目数量。
    SecondaryIpAddress string
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    SecondarySubnetId string
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    SslEnabled bool
    是否开启SSL VPN功能。true:开启false:关闭
    SslMaxConnections int
    VPN网关的最大SSL连接数。
    Status string
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    SubnetId string
    VPN网关使用的端口所属子网的ID。
    Tags List<Byteplus.VpnGatewayTag>
    UpdateTime string
    更新VPN网关的时间。
    VpcId string
    VPN网关所在VPC的ID。
    VpnGatewayId string
    VPN网关的ID。
    VpnGatewayName string
    VPN网关的名称。
    Asn int
    VPN网关的ASN。
    Bandwidth int
    VPN网关的带宽规格。
    BillingType int
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    BusinessStatus string
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    ConnectionCount int
    VPN网关关联IPsec连接的数量。
    CreateTime string
    创建VPN网关的时间。
    DeletedTime string
    预期资源强制回收时间。
    Description string
    VPN网关的描述。
    DualTunnelEnabled bool
    VPN网关是否开启双隧道模式。true:开启false:关闭
    ExpiredTime string
    VPN网关的到期时间。
    IpAddress string
    VPN网关的公网IP地址。
    IpStackType string
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    IpVersion string
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    IpsecEnabled bool
    是否开启IPSec功能。true:开启false:关闭。
    IsBlocked bool
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    LockReason string
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    Period int
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    PeriodUnit string
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    ProjectName string
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    RouteCount int
    VPN网关的路由条目数量。
    SecondaryIpAddress string
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    SecondarySubnetId string
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    SslEnabled bool
    是否开启SSL VPN功能。true:开启false:关闭
    SslMaxConnections int
    VPN网关的最大SSL连接数。
    Status string
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    SubnetId string
    VPN网关使用的端口所属子网的ID。
    Tags []VpnGatewayTagArgs
    UpdateTime string
    更新VPN网关的时间。
    VpcId string
    VPN网关所在VPC的ID。
    VpnGatewayId string
    VPN网关的ID。
    VpnGatewayName string
    VPN网关的名称。
    asn Integer
    VPN网关的ASN。
    bandwidth Integer
    VPN网关的带宽规格。
    billingType Integer
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    businessStatus String
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    connectionCount Integer
    VPN网关关联IPsec连接的数量。
    createTime String
    创建VPN网关的时间。
    deletedTime String
    预期资源强制回收时间。
    description String
    VPN网关的描述。
    dualTunnelEnabled Boolean
    VPN网关是否开启双隧道模式。true:开启false:关闭
    expiredTime String
    VPN网关的到期时间。
    ipAddress String
    VPN网关的公网IP地址。
    ipStackType String
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    ipVersion String
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    ipsecEnabled Boolean
    是否开启IPSec功能。true:开启false:关闭。
    isBlocked Boolean
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    lockReason String
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    period Integer
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    periodUnit String
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    projectName String
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    routeCount Integer
    VPN网关的路由条目数量。
    secondaryIpAddress String
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    secondarySubnetId String
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    sslEnabled Boolean
    是否开启SSL VPN功能。true:开启false:关闭
    sslMaxConnections Integer
    VPN网关的最大SSL连接数。
    status String
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    subnetId String
    VPN网关使用的端口所属子网的ID。
    tags List<VpnGatewayTag>
    updateTime String
    更新VPN网关的时间。
    vpcId String
    VPN网关所在VPC的ID。
    vpnGatewayId String
    VPN网关的ID。
    vpnGatewayName String
    VPN网关的名称。
    asn number
    VPN网关的ASN。
    bandwidth number
    VPN网关的带宽规格。
    billingType number
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    businessStatus string
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    connectionCount number
    VPN网关关联IPsec连接的数量。
    createTime string
    创建VPN网关的时间。
    deletedTime string
    预期资源强制回收时间。
    description string
    VPN网关的描述。
    dualTunnelEnabled boolean
    VPN网关是否开启双隧道模式。true:开启false:关闭
    expiredTime string
    VPN网关的到期时间。
    ipAddress string
    VPN网关的公网IP地址。
    ipStackType string
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    ipVersion string
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    ipsecEnabled boolean
    是否开启IPSec功能。true:开启false:关闭。
    isBlocked boolean
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    lockReason string
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    overdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    period number
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    periodUnit string
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    projectName string
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    routeCount number
    VPN网关的路由条目数量。
    secondaryIpAddress string
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    secondarySubnetId string
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    sslEnabled boolean
    是否开启SSL VPN功能。true:开启false:关闭
    sslMaxConnections number
    VPN网关的最大SSL连接数。
    status string
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    subnetId string
    VPN网关使用的端口所属子网的ID。
    tags VpnGatewayTag[]
    updateTime string
    更新VPN网关的时间。
    vpcId string
    VPN网关所在VPC的ID。
    vpnGatewayId string
    VPN网关的ID。
    vpnGatewayName string
    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_enabled bool
    VPN网关是否开启双隧道模式。true:开启false:关闭
    expired_time str
    VPN网关的到期时间。
    ip_address str
    VPN网关的公网IP地址。
    ip_stack_type str
    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_address str
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    secondary_subnet_id str
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    ssl_enabled bool
    是否开启SSL VPN功能。true:开启false:关闭
    ssl_max_connections int
    VPN网关的最大SSL连接数。
    status str
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    subnet_id str
    VPN网关使用的端口所属子网的ID。
    tags Sequence[VpnGatewayTagArgs]
    update_time str
    更新VPN网关的时间。
    vpc_id str
    VPN网关所在VPC的ID。
    vpn_gateway_id str
    VPN网关的ID。
    vpn_gateway_name str
    VPN网关的名称。
    asn Number
    VPN网关的ASN。
    bandwidth Number
    VPN网关的带宽规格。
    billingType Number
    VPN网关的计费类型。1:包年包月。2:按量计费(按固定规格)
    businessStatus String
    VPN网关的计费状态。Normal: 正常。FinancialLocked: 被锁定。
    connectionCount Number
    VPN网关关联IPsec连接的数量。
    createTime String
    创建VPN网关的时间。
    deletedTime String
    预期资源强制回收时间。
    description String
    VPN网关的描述。
    dualTunnelEnabled Boolean
    VPN网关是否开启双隧道模式。true:开启false:关闭
    expiredTime String
    VPN网关的到期时间。
    ipAddress String
    VPN网关的公网IP地址。
    ipStackType String
    VPN 网关的协议类型。ipv4only:IPv4协议类型。ipv6only:IPv6协议类型。ipv4_ipv6:双栈协议类型。
    ipVersion String
    VPN网关的IP地址类型。ipv4:IPv4地址类型。ipv6:IPv6地址类型。
    ipsecEnabled Boolean
    是否开启IPSec功能。true:开启false:关闭。
    isBlocked Boolean
    当前资源的状态是否被封禁。true:封禁false:未封禁。
    lockReason String
    VPN网关的锁定原因。financial:因欠费被锁定。security:因安全被锁定。unlock:未锁定。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。
    period Number
    包年包月类型VPN网关购买的时长,默认“1”。当PeriodUnit传入值为Month,Period取值范围:1~9、12、24、36。当PeriodUnit传入值为Year,Period取值范围:1~3。
    periodUnit String
    包年包月类型VPN网关购买时长的单位,默认“Month”。Month:月Year:年
    projectName String
    VPN网关所属的项目。不填默认为default,即创建的资源属于default项目。您可调用ListProjects查询当前账号下项目的信息。
    routeCount Number
    VPN网关的路由条目数量。
    secondaryIpAddress String
    VPN网关的第二个公网IP地址。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    secondarySubnetId String
    VPN网关实例关联的第二个子网的ID。仅双隧道模式的VPN网关实例返回该参数,单隧道模式的VPN网关实例不返回该参数。
    sslEnabled Boolean
    是否开启SSL VPN功能。true:开启false:关闭
    sslMaxConnections Number
    VPN网关的最大SSL连接数。
    status String
    VPN网关的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
    subnetId String
    VPN网关使用的端口所属子网的ID。
    tags List<Property Map>
    updateTime String
    更新VPN网关的时间。
    vpcId String
    VPN网关所在VPC的ID。
    vpnGatewayId String
    VPN网关的ID。
    vpnGatewayName String
    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 bytepluscc Terraform Provider.
    bytepluscc logo
    bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus
      Meet Neo: Your AI Platform Teammate