tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getVpnGateways
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of VPN gateways.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getVpnGateways({
id: "vpngw-8ccsnclt",
name: "main",
publicIpAddress: "1.1.1.1",
tags: {
test: "tf",
},
vpcId: "vpc-dk8zmwuf",
zone: "ap-guangzhou-3",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_vpn_gateways(id="vpngw-8ccsnclt",
name="main",
public_ip_address="1.1.1.1",
tags={
"test": "tf",
},
vpc_id="vpc-dk8zmwuf",
zone="ap-guangzhou-3")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetVpnGateways(ctx, &tencentcloud.GetVpnGatewaysArgs{
Id: pulumi.StringRef("vpngw-8ccsnclt"),
Name: pulumi.StringRef("main"),
PublicIpAddress: pulumi.StringRef("1.1.1.1"),
Tags: map[string]interface{}{
"test": "tf",
},
VpcId: pulumi.StringRef("vpc-dk8zmwuf"),
Zone: pulumi.StringRef("ap-guangzhou-3"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var foo = Tencentcloud.GetVpnGateways.Invoke(new()
{
Id = "vpngw-8ccsnclt",
Name = "main",
PublicIpAddress = "1.1.1.1",
Tags =
{
{ "test", "tf" },
},
VpcId = "vpc-dk8zmwuf",
Zone = "ap-guangzhou-3",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetVpnGatewaysArgs;
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) {
final var foo = TencentcloudFunctions.getVpnGateways(GetVpnGatewaysArgs.builder()
.id("vpngw-8ccsnclt")
.name("main")
.publicIpAddress("1.1.1.1")
.tags(Map.of("test", "tf"))
.vpcId("vpc-dk8zmwuf")
.zone("ap-guangzhou-3")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getVpnGateways
arguments:
id: vpngw-8ccsnclt
name: main
publicIpAddress: 1.1.1.1
tags:
test: tf
vpcId: vpc-dk8zmwuf
zone: ap-guangzhou-3
Using getVpnGateways
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpnGateways(args: GetVpnGatewaysArgs, opts?: InvokeOptions): Promise<GetVpnGatewaysResult>
function getVpnGatewaysOutput(args: GetVpnGatewaysOutputArgs, opts?: InvokeOptions): Output<GetVpnGatewaysResult>
def get_vpn_gateways(id: Optional[str] = None,
name: Optional[str] = None,
public_ip_address: Optional[str] = None,
result_output_file: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpnGatewaysResult
def get_vpn_gateways_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
public_ip_address: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpnGatewaysResult]
func GetVpnGateways(ctx *Context, args *GetVpnGatewaysArgs, opts ...InvokeOption) (*GetVpnGatewaysResult, error)
func GetVpnGatewaysOutput(ctx *Context, args *GetVpnGatewaysOutputArgs, opts ...InvokeOption) GetVpnGatewaysResultOutput
> Note: This function is named GetVpnGateways
in the Go SDK.
public static class GetVpnGateways
{
public static Task<GetVpnGatewaysResult> InvokeAsync(GetVpnGatewaysArgs args, InvokeOptions? opts = null)
public static Output<GetVpnGatewaysResult> Invoke(GetVpnGatewaysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpnGatewaysResult> getVpnGateways(GetVpnGatewaysArgs args, InvokeOptions options)
public static Output<GetVpnGatewaysResult> getVpnGateways(GetVpnGatewaysArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getVpnGateways:getVpnGateways
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- ID of the VPN gateway.
- Name string
- Name of the VPN gateway. The length of character is limited to 1-60.
- Public
Ip stringAddress - Public ip address of the VPN gateway.
- Result
Output stringFile - Used to save results.
- Dictionary<string, string>
- Tags of the VPN gateway to be queried.
- Vpc
Id string - ID of the VPC.
- Zone string
- Zone of the VPN gateway.
- Id string
- ID of the VPN gateway.
- Name string
- Name of the VPN gateway. The length of character is limited to 1-60.
- Public
Ip stringAddress - Public ip address of the VPN gateway.
- Result
Output stringFile - Used to save results.
- map[string]string
- Tags of the VPN gateway to be queried.
- Vpc
Id string - ID of the VPC.
- Zone string
- Zone of the VPN gateway.
- id String
- ID of the VPN gateway.
- name String
- Name of the VPN gateway. The length of character is limited to 1-60.
- public
Ip StringAddress - Public ip address of the VPN gateway.
- result
Output StringFile - Used to save results.
- Map<String,String>
- Tags of the VPN gateway to be queried.
- vpc
Id String - ID of the VPC.
- zone String
- Zone of the VPN gateway.
- id string
- ID of the VPN gateway.
- name string
- Name of the VPN gateway. The length of character is limited to 1-60.
- public
Ip stringAddress - Public ip address of the VPN gateway.
- result
Output stringFile - Used to save results.
- {[key: string]: string}
- Tags of the VPN gateway to be queried.
- vpc
Id string - ID of the VPC.
- zone string
- Zone of the VPN gateway.
- id str
- ID of the VPN gateway.
- name str
- Name of the VPN gateway. The length of character is limited to 1-60.
- public_
ip_ straddress - Public ip address of the VPN gateway.
- result_
output_ strfile - Used to save results.
- Mapping[str, str]
- Tags of the VPN gateway to be queried.
- vpc_
id str - ID of the VPC.
- zone str
- Zone of the VPN gateway.
- id String
- ID of the VPN gateway.
- name String
- Name of the VPN gateway. The length of character is limited to 1-60.
- public
Ip StringAddress - Public ip address of the VPN gateway.
- result
Output StringFile - Used to save results.
- Map<String>
- Tags of the VPN gateway to be queried.
- vpc
Id String - ID of the VPC.
- zone String
- Zone of the VPN gateway.
getVpnGateways Result
The following output properties are available:
- Gateway
Lists List<GetVpn Gateways Gateway List> - Information list of the dedicated gateways.
- Id string
- ID of the VPN gateway.
- Name string
- Name of the VPN gateway.
- Public
Ip stringAddress - Public ip of the VPN gateway.
- Result
Output stringFile - Dictionary<string, string>
- A list of tags used to associate different resources.
- Vpc
Id string - ID of the VPC.
- Zone string
- Zone of the VPN gateway.
- Gateway
Lists []GetVpn Gateways Gateway List - Information list of the dedicated gateways.
- Id string
- ID of the VPN gateway.
- Name string
- Name of the VPN gateway.
- Public
Ip stringAddress - Public ip of the VPN gateway.
- Result
Output stringFile - map[string]string
- A list of tags used to associate different resources.
- Vpc
Id string - ID of the VPC.
- Zone string
- Zone of the VPN gateway.
- gateway
Lists List<GetVpn Gateways Gateway List> - Information list of the dedicated gateways.
- id String
- ID of the VPN gateway.
- name String
- Name of the VPN gateway.
- public
Ip StringAddress - Public ip of the VPN gateway.
- result
Output StringFile - Map<String,String>
- A list of tags used to associate different resources.
- vpc
Id String - ID of the VPC.
- zone String
- Zone of the VPN gateway.
- gateway
Lists GetVpn Gateways Gateway List[] - Information list of the dedicated gateways.
- id string
- ID of the VPN gateway.
- name string
- Name of the VPN gateway.
- public
Ip stringAddress - Public ip of the VPN gateway.
- result
Output stringFile - {[key: string]: string}
- A list of tags used to associate different resources.
- vpc
Id string - ID of the VPC.
- zone string
- Zone of the VPN gateway.
- gateway_
lists Sequence[GetVpn Gateways Gateway List] - Information list of the dedicated gateways.
- id str
- ID of the VPN gateway.
- name str
- Name of the VPN gateway.
- public_
ip_ straddress - Public ip of the VPN gateway.
- result_
output_ strfile - Mapping[str, str]
- A list of tags used to associate different resources.
- vpc_
id str - ID of the VPC.
- zone str
- Zone of the VPN gateway.
- gateway
Lists List<Property Map> - Information list of the dedicated gateways.
- id String
- ID of the VPN gateway.
- name String
- Name of the VPN gateway.
- public
Ip StringAddress - Public ip of the VPN gateway.
- result
Output StringFile - Map<String>
- A list of tags used to associate different resources.
- vpc
Id String - ID of the VPC.
- zone String
- Zone of the VPN gateway.
Supporting Types
GetVpnGatewaysGatewayList
- Bandwidth double
- The maximum public network output bandwidth of VPN gateway (unit: Mbps).
- Charge
Type string - Charge Type of the VPN gateway.
- Create
Time string - Create time of the VPN gateway.
- Expired
Time string - Expired time of the VPN gateway when charge type is
PREPAID
. - Id string
- ID of the VPN gateway.
- Is
Address boolBlocked - Indicates whether ip address is blocked.
- Name string
- Name of the VPN gateway. The length of character is limited to 1-60.
- New
Purchase stringPlan - The plan of new purchase.
- Prepaid
Renew stringFlag - Flag indicates whether to renew or not.
- Public
Ip stringAddress - Public ip address of the VPN gateway.
- Restrict
State string - Restrict state of VPN gateway.
- State string
- State of the VPN gateway.
- Dictionary<string, string>
- Tags of the VPN gateway to be queried.
- Type string
- Type of gateway instance.
- Vpc
Id string - ID of the VPC.
- Zone string
- Zone of the VPN gateway.
- Bandwidth float64
- The maximum public network output bandwidth of VPN gateway (unit: Mbps).
- Charge
Type string - Charge Type of the VPN gateway.
- Create
Time string - Create time of the VPN gateway.
- Expired
Time string - Expired time of the VPN gateway when charge type is
PREPAID
. - Id string
- ID of the VPN gateway.
- Is
Address boolBlocked - Indicates whether ip address is blocked.
- Name string
- Name of the VPN gateway. The length of character is limited to 1-60.
- New
Purchase stringPlan - The plan of new purchase.
- Prepaid
Renew stringFlag - Flag indicates whether to renew or not.
- Public
Ip stringAddress - Public ip address of the VPN gateway.
- Restrict
State string - Restrict state of VPN gateway.
- State string
- State of the VPN gateway.
- map[string]string
- Tags of the VPN gateway to be queried.
- Type string
- Type of gateway instance.
- Vpc
Id string - ID of the VPC.
- Zone string
- Zone of the VPN gateway.
- bandwidth Double
- The maximum public network output bandwidth of VPN gateway (unit: Mbps).
- charge
Type String - Charge Type of the VPN gateway.
- create
Time String - Create time of the VPN gateway.
- expired
Time String - Expired time of the VPN gateway when charge type is
PREPAID
. - id String
- ID of the VPN gateway.
- is
Address BooleanBlocked - Indicates whether ip address is blocked.
- name String
- Name of the VPN gateway. The length of character is limited to 1-60.
- new
Purchase StringPlan - The plan of new purchase.
- prepaid
Renew StringFlag - Flag indicates whether to renew or not.
- public
Ip StringAddress - Public ip address of the VPN gateway.
- restrict
State String - Restrict state of VPN gateway.
- state String
- State of the VPN gateway.
- Map<String,String>
- Tags of the VPN gateway to be queried.
- type String
- Type of gateway instance.
- vpc
Id String - ID of the VPC.
- zone String
- Zone of the VPN gateway.
- bandwidth number
- The maximum public network output bandwidth of VPN gateway (unit: Mbps).
- charge
Type string - Charge Type of the VPN gateway.
- create
Time string - Create time of the VPN gateway.
- expired
Time string - Expired time of the VPN gateway when charge type is
PREPAID
. - id string
- ID of the VPN gateway.
- is
Address booleanBlocked - Indicates whether ip address is blocked.
- name string
- Name of the VPN gateway. The length of character is limited to 1-60.
- new
Purchase stringPlan - The plan of new purchase.
- prepaid
Renew stringFlag - Flag indicates whether to renew or not.
- public
Ip stringAddress - Public ip address of the VPN gateway.
- restrict
State string - Restrict state of VPN gateway.
- state string
- State of the VPN gateway.
- {[key: string]: string}
- Tags of the VPN gateway to be queried.
- type string
- Type of gateway instance.
- vpc
Id string - ID of the VPC.
- zone string
- Zone of the VPN gateway.
- bandwidth float
- The maximum public network output bandwidth of VPN gateway (unit: Mbps).
- charge_
type str - Charge Type of the VPN gateway.
- create_
time str - Create time of the VPN gateway.
- expired_
time str - Expired time of the VPN gateway when charge type is
PREPAID
. - id str
- ID of the VPN gateway.
- is_
address_ boolblocked - Indicates whether ip address is blocked.
- name str
- Name of the VPN gateway. The length of character is limited to 1-60.
- new_
purchase_ strplan - The plan of new purchase.
- prepaid_
renew_ strflag - Flag indicates whether to renew or not.
- public_
ip_ straddress - Public ip address of the VPN gateway.
- restrict_
state str - Restrict state of VPN gateway.
- state str
- State of the VPN gateway.
- Mapping[str, str]
- Tags of the VPN gateway to be queried.
- type str
- Type of gateway instance.
- vpc_
id str - ID of the VPC.
- zone str
- Zone of the VPN gateway.
- bandwidth Number
- The maximum public network output bandwidth of VPN gateway (unit: Mbps).
- charge
Type String - Charge Type of the VPN gateway.
- create
Time String - Create time of the VPN gateway.
- expired
Time String - Expired time of the VPN gateway when charge type is
PREPAID
. - id String
- ID of the VPN gateway.
- is
Address BooleanBlocked - Indicates whether ip address is blocked.
- name String
- Name of the VPN gateway. The length of character is limited to 1-60.
- new
Purchase StringPlan - The plan of new purchase.
- prepaid
Renew StringFlag - Flag indicates whether to renew or not.
- public
Ip StringAddress - Public ip address of the VPN gateway.
- restrict
State String - Restrict state of VPN gateway.
- state String
- State of the VPN gateway.
- Map<String>
- Tags of the VPN gateway to be queried.
- type String
- Type of gateway instance.
- vpc
Id String - ID of the VPC.
- zone String
- Zone of the VPN gateway.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack