published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
用户网关是您本地网关侧的信息集合和抽象。通过用户网关,您可以把本地网关的信息注册到云上VPC之中。一个用户网关,可以对接多个VPN网关。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const vpncustomergatewayDemo = new bytepluscc.vpn.CustomerGateway("vpncustomergatewayDemo", {
asn: 64513,
customerGatewayName: "ccapi-test",
description: "testdesc",
ipAddress: "115.***.151.5",
ipVersion: "ipv4",
projectName: "default",
});
import pulumi
import pulumi_bytepluscc as bytepluscc
vpncustomergateway_demo = bytepluscc.vpn.CustomerGateway("vpncustomergatewayDemo",
asn=64513,
customer_gateway_name="ccapi-test",
description="testdesc",
ip_address="115.***.151.5",
ip_version="ipv4",
project_name="default")
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.NewCustomerGateway(ctx, "vpncustomergatewayDemo", &vpn.CustomerGatewayArgs{
Asn: pulumi.Int(64513),
CustomerGatewayName: pulumi.String("ccapi-test"),
Description: pulumi.String("testdesc"),
IpAddress: pulumi.String("115.***.151.5"),
IpVersion: pulumi.String("ipv4"),
ProjectName: pulumi.String("default"),
})
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 vpncustomergatewayDemo = new Bytepluscc.Vpn.CustomerGateway("vpncustomergatewayDemo", new()
{
Asn = 64513,
CustomerGatewayName = "ccapi-test",
Description = "testdesc",
IpAddress = "115.***.151.5",
IpVersion = "ipv4",
ProjectName = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.vpn.CustomerGateway;
import com.byteplus.bytepluscc.vpn.CustomerGatewayArgs;
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 vpncustomergatewayDemo = new CustomerGateway("vpncustomergatewayDemo", CustomerGatewayArgs.builder()
.asn(64513)
.customerGatewayName("ccapi-test")
.description("testdesc")
.ipAddress("115.***.151.5")
.ipVersion("ipv4")
.projectName("default")
.build());
}
}
resources:
vpncustomergatewayDemo:
type: bytepluscc:vpn:CustomerGateway
properties:
asn: 64513
customerGatewayName: ccapi-test
description: testdesc
ipAddress: 115.***.151.5
ipVersion: ipv4
projectName: default
Create CustomerGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomerGateway(name: string, args: CustomerGatewayArgs, opts?: CustomResourceOptions);@overload
def CustomerGateway(resource_name: str,
args: CustomerGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomerGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_address: Optional[str] = None,
asn: Optional[int] = None,
customer_gateway_name: Optional[str] = None,
description: Optional[str] = None,
ip_version: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[CustomerGatewayTagArgs]] = None)func NewCustomerGateway(ctx *Context, name string, args CustomerGatewayArgs, opts ...ResourceOption) (*CustomerGateway, error)public CustomerGateway(string name, CustomerGatewayArgs args, CustomResourceOptions? opts = null)
public CustomerGateway(String name, CustomerGatewayArgs args)
public CustomerGateway(String name, CustomerGatewayArgs args, CustomResourceOptions options)
type: bytepluscc:vpn:CustomerGateway
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 CustomerGatewayArgs
- 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 CustomerGatewayArgs
- 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 CustomerGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomerGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomerGatewayArgs
- 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 customerGatewayResource = new Bytepluscc.Vpn.CustomerGateway("customerGatewayResource", new()
{
IpAddress = "string",
Asn = 0,
CustomerGatewayName = "string",
Description = "string",
IpVersion = "string",
ProjectName = "string",
Tags = new[]
{
new Bytepluscc.Vpn.Inputs.CustomerGatewayTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := vpn.NewCustomerGateway(ctx, "customerGatewayResource", &vpn.CustomerGatewayArgs{
IpAddress: pulumi.String("string"),
Asn: pulumi.Int(0),
CustomerGatewayName: pulumi.String("string"),
Description: pulumi.String("string"),
IpVersion: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Tags: vpn.CustomerGatewayTagArray{
&vpn.CustomerGatewayTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var customerGatewayResource = new CustomerGateway("customerGatewayResource", CustomerGatewayArgs.builder()
.ipAddress("string")
.asn(0)
.customerGatewayName("string")
.description("string")
.ipVersion("string")
.projectName("string")
.tags(CustomerGatewayTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
customer_gateway_resource = bytepluscc.vpn.CustomerGateway("customerGatewayResource",
ip_address="string",
asn=0,
customer_gateway_name="string",
description="string",
ip_version="string",
project_name="string",
tags=[{
"key": "string",
"value": "string",
}])
const customerGatewayResource = new bytepluscc.vpn.CustomerGateway("customerGatewayResource", {
ipAddress: "string",
asn: 0,
customerGatewayName: "string",
description: "string",
ipVersion: "string",
projectName: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:vpn:CustomerGateway
properties:
asn: 0
customerGatewayName: string
description: string
ipAddress: string
ipVersion: string
projectName: string
tags:
- key: string
value: string
CustomerGateway 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 CustomerGateway resource accepts the following input properties:
- Ip
Address string - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- Asn int
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- Customer
Gateway stringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- Description string
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- Ip
Version string - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- Project
Name string - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
-
List<Byteplus.
Customer Gateway Tag>
- Ip
Address string - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- Asn int
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- Customer
Gateway stringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- Description string
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- Ip
Version string - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- Project
Name string - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
-
[]Customer
Gateway Tag Args
- ip
Address String - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- asn Integer
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- customer
Gateway StringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description String
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip
Version String - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project
Name String - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
-
List<Customer
Gateway Tag>
- ip
Address string - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- asn number
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- customer
Gateway stringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description string
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip
Version string - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project
Name string - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
-
Customer
Gateway Tag[]
- ip_
address str - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- asn int
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- customer_
gateway_ strname - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description str
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip_
version str - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project_
name str - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
-
Sequence[Customer
Gateway Tag Args]
- ip
Address String - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- asn Number
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- customer
Gateway StringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description String
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip
Version String - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project
Name String - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomerGateway resource produces the following output properties:
- Account
Id string - 用户网关所属账户的ID。
- Connection
Count int - 用户网关关联的IPsec连接的数量。
- Created
Time string - 创建用户网关的时间。
- Customer
Gateway stringId - 网关ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
- Updated
Time string - 更新用户网关的时间。
- Account
Id string - 用户网关所属账户的ID。
- Connection
Count int - 用户网关关联的IPsec连接的数量。
- Created
Time string - 创建用户网关的时间。
- Customer
Gateway stringId - 网关ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
- Updated
Time string - 更新用户网关的时间。
- account
Id String - 用户网关所属账户的ID。
- connection
Count Integer - 用户网关关联的IPsec连接的数量。
- created
Time String - 创建用户网关的时间。
- customer
Gateway StringId - 网关ID。
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
- updated
Time String - 更新用户网关的时间。
- account
Id string - 用户网关所属账户的ID。
- connection
Count number - 用户网关关联的IPsec连接的数量。
- created
Time string - 创建用户网关的时间。
- customer
Gateway stringId - 网关ID。
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
- updated
Time string - 更新用户网关的时间。
- account_
id str - 用户网关所属账户的ID。
- connection_
count int - 用户网关关联的IPsec连接的数量。
- created_
time str - 创建用户网关的时间。
- customer_
gateway_ strid - 网关ID。
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
- updated_
time str - 更新用户网关的时间。
- account
Id String - 用户网关所属账户的ID。
- connection
Count Number - 用户网关关联的IPsec连接的数量。
- created
Time String - 创建用户网关的时间。
- customer
Gateway StringId - 网关ID。
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
- updated
Time String - 更新用户网关的时间。
Look up Existing CustomerGateway Resource
Get an existing CustomerGateway 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?: CustomerGatewayState, opts?: CustomResourceOptions): CustomerGateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
asn: Optional[int] = None,
connection_count: Optional[int] = None,
created_time: Optional[str] = None,
customer_gateway_id: Optional[str] = None,
customer_gateway_name: Optional[str] = None,
description: Optional[str] = None,
ip_address: Optional[str] = None,
ip_version: Optional[str] = None,
project_name: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[CustomerGatewayTagArgs]] = None,
updated_time: Optional[str] = None) -> CustomerGatewayfunc GetCustomerGateway(ctx *Context, name string, id IDInput, state *CustomerGatewayState, opts ...ResourceOption) (*CustomerGateway, error)public static CustomerGateway Get(string name, Input<string> id, CustomerGatewayState? state, CustomResourceOptions? opts = null)public static CustomerGateway get(String name, Output<String> id, CustomerGatewayState state, CustomResourceOptions options)resources: _: type: bytepluscc:vpn:CustomerGateway 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.
- Account
Id string - 用户网关所属账户的ID。
- Asn int
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- Connection
Count int - 用户网关关联的IPsec连接的数量。
- Created
Time string - 创建用户网关的时间。
- Customer
Gateway stringId - 网关ID。
- Customer
Gateway stringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- Description string
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- Ip
Address string - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- Ip
Version string - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- Project
Name string - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
- Status string
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
-
List<Byteplus.
Customer Gateway Tag> - Updated
Time string - 更新用户网关的时间。
- Account
Id string - 用户网关所属账户的ID。
- Asn int
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- Connection
Count int - 用户网关关联的IPsec连接的数量。
- Created
Time string - 创建用户网关的时间。
- Customer
Gateway stringId - 网关ID。
- Customer
Gateway stringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- Description string
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- Ip
Address string - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- Ip
Version string - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- Project
Name string - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
- Status string
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
-
[]Customer
Gateway Tag Args - Updated
Time string - 更新用户网关的时间。
- account
Id String - 用户网关所属账户的ID。
- asn Integer
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- connection
Count Integer - 用户网关关联的IPsec连接的数量。
- created
Time String - 创建用户网关的时间。
- customer
Gateway StringId - 网关ID。
- customer
Gateway StringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description String
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip
Address String - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- ip
Version String - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project
Name String - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
- status String
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
-
List<Customer
Gateway Tag> - updated
Time String - 更新用户网关的时间。
- account
Id string - 用户网关所属账户的ID。
- asn number
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- connection
Count number - 用户网关关联的IPsec连接的数量。
- created
Time string - 创建用户网关的时间。
- customer
Gateway stringId - 网关ID。
- customer
Gateway stringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description string
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip
Address string - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- ip
Version string - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project
Name string - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
- status string
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
-
Customer
Gateway Tag[] - updated
Time string - 更新用户网关的时间。
- account_
id str - 用户网关所属账户的ID。
- asn int
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- connection_
count int - 用户网关关联的IPsec连接的数量。
- created_
time str - 创建用户网关的时间。
- customer_
gateway_ strid - 网关ID。
- customer_
gateway_ strname - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description str
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip_
address str - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- ip_
version str - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project_
name str - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
- status str
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
-
Sequence[Customer
Gateway Tag Args] - updated_
time str - 更新用户网关的时间。
- account
Id String - 用户网关所属账户的ID。
- asn Number
- 用户网关的ASN(Autonomous System Number)。如需使用BGP功能,则此参数必须填写。ASN有效范围1~4294967295(137718 、150436、65533除外)。
- connection
Count Number - 用户网关关联的IPsec连接的数量。
- created
Time String - 创建用户网关的时间。
- customer
Gateway StringId - 网关ID。
- customer
Gateway StringName - 用户网关的名称。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、下划线(_)和短划线(-)。长度限制为1 ~ 128个字符。不填默认为用户网关的ID。
- description String
- 用户网关的描述信息。以中文、字母、数字开头,只能包含中文、字母、数字、点号(.)、空格( )、下划线(_)、中划线(-)、等号(=)、英文逗号(,)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填默认为空字符串。
- ip
Address String - 对端本地数据中心网关的静态公网IP地址或其他VPC的VPN网关出口IP地址。若对端为非固定静态公网IP,此处需传入0.0.0.0。
- ip
Version String - VPN网关的IP地址协议类型,取值如下:ipv4 (默认值)ipv6
- project
Name String - 用户网关所属的项目。不填默认为default,即创建的资源属于default项目。
- status String
- 用户网关的状态。Creating: 创建中。Deleting: 删除中。Pending:配置中。Available:可用。
- List<Property Map>
- updated
Time String - 更新用户网关的时间。
Supporting Types
CustomerGatewayTag, CustomerGatewayTagArgs
Import
$ pulumi import bytepluscc:vpn/customerGateway:CustomerGateway example "customer_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.
published on Monday, Mar 9, 2026 by Byteplus
