Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.vpn.Gateway
Explore with Pulumi AI
Import
VpnGateway can be imported using the id, e.g.
$ pulumi import volcengine:vpn/gateway:Gateway default vgw-273zkshb2qayo7fap8t2****
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = "cn-beijing-a",
VpcId = fooVpc.Id,
});
var fooGateway = new Volcengine.Vpn.Gateway("fooGateway", new()
{
VpcId = fooVpc.Id,
SubnetId = fooSubnet.Id,
Bandwidth = 50,
VpnGatewayName = "acc-test1",
Description = "acc-test1",
Period = 7,
ProjectName = "default",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpn"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String("cn-beijing-a"),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
_, err = vpn.NewGateway(ctx, "fooGateway", &vpn.GatewayArgs{
VpcId: fooVpc.ID(),
SubnetId: fooSubnet.ID(),
Bandwidth: pulumi.Int(50),
VpnGatewayName: pulumi.String("acc-test1"),
Description: pulumi.String("acc-test1"),
Period: pulumi.Int(7),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vpn.Gateway;
import com.pulumi.volcengine.vpn.GatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId("cn-beijing-a")
.vpcId(fooVpc.id())
.build());
var fooGateway = new Gateway("fooGateway", GatewayArgs.builder()
.vpcId(fooVpc.id())
.subnetId(fooSubnet.id())
.bandwidth(50)
.vpnGatewayName("acc-test1")
.description("acc-test1")
.period(7)
.projectName("default")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id="cn-beijing-a",
vpc_id=foo_vpc.id)
foo_gateway = volcengine.vpn.Gateway("fooGateway",
vpc_id=foo_vpc.id,
subnet_id=foo_subnet.id,
bandwidth=50,
vpn_gateway_name="acc-test1",
description="acc-test1",
period=7,
project_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: "cn-beijing-a",
vpcId: fooVpc.id,
});
const fooGateway = new volcengine.vpn.Gateway("fooGateway", {
vpcId: fooVpc.id,
subnetId: fooSubnet.id,
bandwidth: 50,
vpnGatewayName: "acc-test1",
description: "acc-test1",
period: 7,
projectName: "default",
});
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: cn-beijing-a
vpcId: ${fooVpc.id}
fooGateway:
type: volcengine:vpn:Gateway
properties:
vpcId: ${fooVpc.id}
subnetId: ${fooSubnet.id}
bandwidth: 50
vpnGatewayName: acc-test1
description: acc-test1
period: 7
projectName: default
Create Gateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);
@overload
def Gateway(resource_name: str,
args: GatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Gateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None,
billing_type: Optional[str] = None,
description: Optional[str] = None,
ipsec_enabled: Optional[bool] = None,
period: Optional[int] = None,
project_name: Optional[str] = None,
ssl_enabled: Optional[bool] = None,
ssl_max_connections: Optional[int] = None,
tags: Optional[Sequence[GatewayTagArgs]] = None,
vpn_gateway_name: Optional[str] = None)
func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)
public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: volcengine:vpn:Gateway
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 GatewayArgs
- 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 GatewayArgs
- 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 GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayArgs
- 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 examplegatewayResourceResourceFromVpngateway = new Volcengine.Vpn.Gateway("examplegatewayResourceResourceFromVpngateway", new()
{
Bandwidth = 0,
SubnetId = "string",
VpcId = "string",
BillingType = "string",
Description = "string",
IpsecEnabled = false,
Period = 0,
ProjectName = "string",
SslEnabled = false,
SslMaxConnections = 0,
Tags = new[]
{
new Volcengine.Vpn.Inputs.GatewayTagArgs
{
Key = "string",
Value = "string",
},
},
VpnGatewayName = "string",
});
example, err := vpn.NewGateway(ctx, "examplegatewayResourceResourceFromVpngateway", &vpn.GatewayArgs{
Bandwidth: pulumi.Int(0),
SubnetId: pulumi.String("string"),
VpcId: pulumi.String("string"),
BillingType: pulumi.String("string"),
Description: pulumi.String("string"),
IpsecEnabled: pulumi.Bool(false),
Period: pulumi.Int(0),
ProjectName: pulumi.String("string"),
SslEnabled: pulumi.Bool(false),
SslMaxConnections: pulumi.Int(0),
Tags: vpn.GatewayTagArray{
&vpn.GatewayTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
VpnGatewayName: pulumi.String("string"),
})
var examplegatewayResourceResourceFromVpngateway = new Gateway("examplegatewayResourceResourceFromVpngateway", GatewayArgs.builder()
.bandwidth(0)
.subnetId("string")
.vpcId("string")
.billingType("string")
.description("string")
.ipsecEnabled(false)
.period(0)
.projectName("string")
.sslEnabled(false)
.sslMaxConnections(0)
.tags(GatewayTagArgs.builder()
.key("string")
.value("string")
.build())
.vpnGatewayName("string")
.build());
examplegateway_resource_resource_from_vpngateway = volcengine.vpn.Gateway("examplegatewayResourceResourceFromVpngateway",
bandwidth=0,
subnet_id="string",
vpc_id="string",
billing_type="string",
description="string",
ipsec_enabled=False,
period=0,
project_name="string",
ssl_enabled=False,
ssl_max_connections=0,
tags=[volcengine.vpn.GatewayTagArgs(
key="string",
value="string",
)],
vpn_gateway_name="string")
const examplegatewayResourceResourceFromVpngateway = new volcengine.vpn.Gateway("examplegatewayResourceResourceFromVpngateway", {
bandwidth: 0,
subnetId: "string",
vpcId: "string",
billingType: "string",
description: "string",
ipsecEnabled: false,
period: 0,
projectName: "string",
sslEnabled: false,
sslMaxConnections: 0,
tags: [{
key: "string",
value: "string",
}],
vpnGatewayName: "string",
});
type: volcengine:vpn:Gateway
properties:
bandwidth: 0
billingType: string
description: string
ipsecEnabled: false
period: 0
projectName: string
sslEnabled: false
sslMaxConnections: 0
subnetId: string
tags:
- key: string
value: string
vpcId: string
vpnGatewayName: string
Gateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Gateway resource accepts the following input properties:
- Bandwidth int
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- Subnet
Id string - The ID of the subnet where you want to create the VPN gateway.
- Vpc
Id string - The ID of the VPC where you want to create the VPN gateway.
- Billing
Type string - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - Description string
- The description of the VPN gateway.
- Ipsec
Enabled bool - Whether ipsec is enabled.
- Period int
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Project
Name string - The project name of the VPN gateway.
- Ssl
Enabled bool - Whether ssl is enabled.
- Ssl
Max intConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- List<Gateway
Tag> - Tags.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Bandwidth int
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- Subnet
Id string - The ID of the subnet where you want to create the VPN gateway.
- Vpc
Id string - The ID of the VPC where you want to create the VPN gateway.
- Billing
Type string - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - Description string
- The description of the VPN gateway.
- Ipsec
Enabled bool - Whether ipsec is enabled.
- Period int
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Project
Name string - The project name of the VPN gateway.
- Ssl
Enabled bool - Whether ssl is enabled.
- Ssl
Max intConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- []Gateway
Tag Args - Tags.
- Vpn
Gateway stringName - The name of the VPN gateway.
- bandwidth Integer
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- subnet
Id String - The ID of the subnet where you want to create the VPN gateway.
- vpc
Id String - The ID of the VPC where you want to create the VPN gateway.
- billing
Type String - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - description String
- The description of the VPN gateway.
- ipsec
Enabled Boolean - Whether ipsec is enabled.
- period Integer
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project
Name String - The project name of the VPN gateway.
- ssl
Enabled Boolean - Whether ssl is enabled.
- ssl
Max IntegerConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- List<Gateway
Tag> - Tags.
- vpn
Gateway StringName - The name of the VPN gateway.
- bandwidth number
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- subnet
Id string - The ID of the subnet where you want to create the VPN gateway.
- vpc
Id string - The ID of the VPC where you want to create the VPN gateway.
- billing
Type string - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - description string
- The description of the VPN gateway.
- ipsec
Enabled boolean - Whether ipsec is enabled.
- period number
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project
Name string - The project name of the VPN gateway.
- ssl
Enabled boolean - Whether ssl is enabled.
- ssl
Max numberConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- Gateway
Tag[] - Tags.
- vpn
Gateway stringName - The name of the VPN gateway.
- bandwidth int
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- subnet_
id str - The ID of the subnet where you want to create the VPN gateway.
- vpc_
id str - The ID of the VPC where you want to create the VPN gateway.
- billing_
type str - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - description str
- The description of the VPN gateway.
- ipsec_
enabled bool - Whether ipsec is enabled.
- period int
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project_
name str - The project name of the VPN gateway.
- ssl_
enabled bool - Whether ssl is enabled.
- ssl_
max_ intconnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- Sequence[Gateway
Tag Args] - Tags.
- vpn_
gateway_ strname - The name of the VPN gateway.
- bandwidth Number
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- subnet
Id String - The ID of the subnet where you want to create the VPN gateway.
- vpc
Id String - The ID of the VPC where you want to create the VPN gateway.
- billing
Type String - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - description String
- The description of the VPN gateway.
- ipsec
Enabled Boolean - Whether ipsec is enabled.
- period Number
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project
Name String - The project name of the VPN gateway.
- ssl
Enabled Boolean - Whether ssl is enabled.
- ssl
Max NumberConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- List<Property Map>
- Tags.
- vpn
Gateway StringName - The name of the VPN gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Account
Id string - The account ID of the VPN gateway.
- Business
Status string - The business status of the VPN gateway.
- Connection
Count int - The connection count of the VPN gateway.
- Creation
Time string - The create time of VPN gateway.
- Deleted
Time string - The deleted time of the VPN gateway.
- Expired
Time string - The expired time of the VPN gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The IP address of the VPN gateway.
- Lock
Reason string - The lock reason of the VPN gateway.
- Renew
Type string - The renew type of the VPN gateway.
- Route
Count int - The route count of the VPN gateway.
- Status string
- The status of the VPN gateway.
- Update
Time string - The update time of VPN gateway.
- Vpn
Gateway stringId - The ID of the VPN gateway.
- Account
Id string - The account ID of the VPN gateway.
- Business
Status string - The business status of the VPN gateway.
- Connection
Count int - The connection count of the VPN gateway.
- Creation
Time string - The create time of VPN gateway.
- Deleted
Time string - The deleted time of the VPN gateway.
- Expired
Time string - The expired time of the VPN gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - The IP address of the VPN gateway.
- Lock
Reason string - The lock reason of the VPN gateway.
- Renew
Type string - The renew type of the VPN gateway.
- Route
Count int - The route count of the VPN gateway.
- Status string
- The status of the VPN gateway.
- Update
Time string - The update time of VPN gateway.
- Vpn
Gateway stringId - The ID of the VPN gateway.
- account
Id String - The account ID of the VPN gateway.
- business
Status String - The business status of the VPN gateway.
- connection
Count Integer - The connection count of the VPN gateway.
- creation
Time String - The create time of VPN gateway.
- deleted
Time String - The deleted time of the VPN gateway.
- expired
Time String - The expired time of the VPN gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The IP address of the VPN gateway.
- lock
Reason String - The lock reason of the VPN gateway.
- renew
Type String - The renew type of the VPN gateway.
- route
Count Integer - The route count of the VPN gateway.
- status String
- The status of the VPN gateway.
- update
Time String - The update time of VPN gateway.
- vpn
Gateway StringId - The ID of the VPN gateway.
- account
Id string - The account ID of the VPN gateway.
- business
Status string - The business status of the VPN gateway.
- connection
Count number - The connection count of the VPN gateway.
- creation
Time string - The create time of VPN gateway.
- deleted
Time string - The deleted time of the VPN gateway.
- expired
Time string - The expired time of the VPN gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - The IP address of the VPN gateway.
- lock
Reason string - The lock reason of the VPN gateway.
- renew
Type string - The renew type of the VPN gateway.
- route
Count number - The route count of the VPN gateway.
- status string
- The status of the VPN gateway.
- update
Time string - The update time of VPN gateway.
- vpn
Gateway stringId - The ID of the VPN gateway.
- account_
id str - The account ID of the VPN gateway.
- business_
status str - The business status of the VPN gateway.
- connection_
count int - The connection count of the VPN gateway.
- creation_
time str - The create time of VPN gateway.
- deleted_
time str - The deleted time of the VPN gateway.
- expired_
time str - The expired time of the VPN gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - The IP address of the VPN gateway.
- lock_
reason str - The lock reason of the VPN gateway.
- renew_
type str - The renew type of the VPN gateway.
- route_
count int - The route count of the VPN gateway.
- status str
- The status of the VPN gateway.
- update_
time str - The update time of VPN gateway.
- vpn_
gateway_ strid - The ID of the VPN gateway.
- account
Id String - The account ID of the VPN gateway.
- business
Status String - The business status of the VPN gateway.
- connection
Count Number - The connection count of the VPN gateway.
- creation
Time String - The create time of VPN gateway.
- deleted
Time String - The deleted time of the VPN gateway.
- expired
Time String - The expired time of the VPN gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The IP address of the VPN gateway.
- lock
Reason String - The lock reason of the VPN gateway.
- renew
Type String - The renew type of the VPN gateway.
- route
Count Number - The route count of the VPN gateway.
- status String
- The status of the VPN gateway.
- update
Time String - The update time of VPN gateway.
- vpn
Gateway StringId - The ID of the VPN gateway.
Look up Existing Gateway Resource
Get an existing Gateway 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?: GatewayState, opts?: CustomResourceOptions): Gateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bandwidth: Optional[int] = None,
billing_type: Optional[str] = None,
business_status: Optional[str] = None,
connection_count: Optional[int] = None,
creation_time: Optional[str] = None,
deleted_time: Optional[str] = None,
description: Optional[str] = None,
expired_time: Optional[str] = None,
ip_address: Optional[str] = None,
ipsec_enabled: Optional[bool] = None,
lock_reason: Optional[str] = None,
period: Optional[int] = None,
project_name: Optional[str] = None,
renew_type: Optional[str] = None,
route_count: Optional[int] = None,
ssl_enabled: Optional[bool] = None,
ssl_max_connections: Optional[int] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[GatewayTagArgs]] = None,
update_time: Optional[str] = None,
vpc_id: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
vpn_gateway_name: Optional[str] = None) -> Gateway
func GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)
public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)
public static Gateway get(String name, Output<String> id, GatewayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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 - The account ID of the VPN gateway.
- Bandwidth int
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- Billing
Type string - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - Business
Status string - The business status of the VPN gateway.
- Connection
Count int - The connection count of the VPN gateway.
- Creation
Time string - The create time of VPN gateway.
- Deleted
Time string - The deleted time of the VPN gateway.
- Description string
- The description of the VPN gateway.
- Expired
Time string - The expired time of the VPN gateway.
- Ip
Address string - The IP address of the VPN gateway.
- Ipsec
Enabled bool - Whether ipsec is enabled.
- Lock
Reason string - The lock reason of the VPN gateway.
- Period int
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Project
Name string - The project name of the VPN gateway.
- Renew
Type string - The renew type of the VPN gateway.
- Route
Count int - The route count of the VPN gateway.
- Ssl
Enabled bool - Whether ssl is enabled.
- Ssl
Max intConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- Status string
- The status of the VPN gateway.
- Subnet
Id string - The ID of the subnet where you want to create the VPN gateway.
- List<Gateway
Tag> - Tags.
- Update
Time string - The update time of VPN gateway.
- Vpc
Id string - The ID of the VPC where you want to create the VPN gateway.
- Vpn
Gateway stringId - The ID of the VPN gateway.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Account
Id string - The account ID of the VPN gateway.
- Bandwidth int
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- Billing
Type string - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - Business
Status string - The business status of the VPN gateway.
- Connection
Count int - The connection count of the VPN gateway.
- Creation
Time string - The create time of VPN gateway.
- Deleted
Time string - The deleted time of the VPN gateway.
- Description string
- The description of the VPN gateway.
- Expired
Time string - The expired time of the VPN gateway.
- Ip
Address string - The IP address of the VPN gateway.
- Ipsec
Enabled bool - Whether ipsec is enabled.
- Lock
Reason string - The lock reason of the VPN gateway.
- Period int
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Project
Name string - The project name of the VPN gateway.
- Renew
Type string - The renew type of the VPN gateway.
- Route
Count int - The route count of the VPN gateway.
- Ssl
Enabled bool - Whether ssl is enabled.
- Ssl
Max intConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- Status string
- The status of the VPN gateway.
- Subnet
Id string - The ID of the subnet where you want to create the VPN gateway.
- []Gateway
Tag Args - Tags.
- Update
Time string - The update time of VPN gateway.
- Vpc
Id string - The ID of the VPC where you want to create the VPN gateway.
- Vpn
Gateway stringId - The ID of the VPN gateway.
- Vpn
Gateway stringName - The name of the VPN gateway.
- account
Id String - The account ID of the VPN gateway.
- bandwidth Integer
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- billing
Type String - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - business
Status String - The business status of the VPN gateway.
- connection
Count Integer - The connection count of the VPN gateway.
- creation
Time String - The create time of VPN gateway.
- deleted
Time String - The deleted time of the VPN gateway.
- description String
- The description of the VPN gateway.
- expired
Time String - The expired time of the VPN gateway.
- ip
Address String - The IP address of the VPN gateway.
- ipsec
Enabled Boolean - Whether ipsec is enabled.
- lock
Reason String - The lock reason of the VPN gateway.
- period Integer
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project
Name String - The project name of the VPN gateway.
- renew
Type String - The renew type of the VPN gateway.
- route
Count Integer - The route count of the VPN gateway.
- ssl
Enabled Boolean - Whether ssl is enabled.
- ssl
Max IntegerConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- status String
- The status of the VPN gateway.
- subnet
Id String - The ID of the subnet where you want to create the VPN gateway.
- List<Gateway
Tag> - Tags.
- update
Time String - The update time of VPN gateway.
- vpc
Id String - The ID of the VPC where you want to create the VPN gateway.
- vpn
Gateway StringId - The ID of the VPN gateway.
- vpn
Gateway StringName - The name of the VPN gateway.
- account
Id string - The account ID of the VPN gateway.
- bandwidth number
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- billing
Type string - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - business
Status string - The business status of the VPN gateway.
- connection
Count number - The connection count of the VPN gateway.
- creation
Time string - The create time of VPN gateway.
- deleted
Time string - The deleted time of the VPN gateway.
- description string
- The description of the VPN gateway.
- expired
Time string - The expired time of the VPN gateway.
- ip
Address string - The IP address of the VPN gateway.
- ipsec
Enabled boolean - Whether ipsec is enabled.
- lock
Reason string - The lock reason of the VPN gateway.
- period number
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project
Name string - The project name of the VPN gateway.
- renew
Type string - The renew type of the VPN gateway.
- route
Count number - The route count of the VPN gateway.
- ssl
Enabled boolean - Whether ssl is enabled.
- ssl
Max numberConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- status string
- The status of the VPN gateway.
- subnet
Id string - The ID of the subnet where you want to create the VPN gateway.
- Gateway
Tag[] - Tags.
- update
Time string - The update time of VPN gateway.
- vpc
Id string - The ID of the VPC where you want to create the VPN gateway.
- vpn
Gateway stringId - The ID of the VPN gateway.
- vpn
Gateway stringName - The name of the VPN gateway.
- account_
id str - The account ID of the VPN gateway.
- bandwidth int
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- billing_
type str - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - business_
status str - The business status of the VPN gateway.
- connection_
count int - The connection count of the VPN gateway.
- creation_
time str - The create time of VPN gateway.
- deleted_
time str - The deleted time of the VPN gateway.
- description str
- The description of the VPN gateway.
- expired_
time str - The expired time of the VPN gateway.
- ip_
address str - The IP address of the VPN gateway.
- ipsec_
enabled bool - Whether ipsec is enabled.
- lock_
reason str - The lock reason of the VPN gateway.
- period int
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project_
name str - The project name of the VPN gateway.
- renew_
type str - The renew type of the VPN gateway.
- route_
count int - The route count of the VPN gateway.
- ssl_
enabled bool - Whether ssl is enabled.
- ssl_
max_ intconnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- status str
- The status of the VPN gateway.
- subnet_
id str - The ID of the subnet where you want to create the VPN gateway.
- Sequence[Gateway
Tag Args] - Tags.
- update_
time str - The update time of VPN gateway.
- vpc_
id str - The ID of the VPC where you want to create the VPN gateway.
- vpn_
gateway_ strid - The ID of the VPN gateway.
- vpn_
gateway_ strname - The name of the VPN gateway.
- account
Id String - The account ID of the VPN gateway.
- bandwidth Number
- The bandwidth of the VPN gateway. Unit: Mbps. Values: 5, 10, 20, 50, 100, 200, 500.
- billing
Type String - The BillingType of the VPN gateway. Only support
PrePaid
. Terraform will only remove the PrePaid VPN gateway from the state file, not actually remove. - business
Status String - The business status of the VPN gateway.
- connection
Count Number - The connection count of the VPN gateway.
- creation
Time String - The create time of VPN gateway.
- deleted
Time String - The deleted time of the VPN gateway.
- description String
- The description of the VPN gateway.
- expired
Time String - The expired time of the VPN gateway.
- ip
Address String - The IP address of the VPN gateway.
- ipsec
Enabled Boolean - Whether ipsec is enabled.
- lock
Reason String - The lock reason of the VPN gateway.
- period Number
- The Period of the VPN gateway. Default value is 12. This parameter is only useful when creating vpn gateway. Default period unit is Month. Value range: 1~9, 12, 24, 36. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project
Name String - The project name of the VPN gateway.
- renew
Type String - The renew type of the VPN gateway.
- route
Count Number - The route count of the VPN gateway.
- ssl
Enabled Boolean - Whether ssl is enabled.
- ssl
Max NumberConnections - The max connections of ssl. This parameter can only be passed in when ssl_enabled is true. Default is 5.
- status String
- The status of the VPN gateway.
- subnet
Id String - The ID of the subnet where you want to create the VPN gateway.
- List<Property Map>
- Tags.
- update
Time String - The update time of VPN gateway.
- vpc
Id String - The ID of the VPC where you want to create the VPN gateway.
- vpn
Gateway StringId - The ID of the VPN gateway.
- vpn
Gateway StringName - The name of the VPN gateway.
Supporting Types
GatewayTag, GatewayTagArgs
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.