tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDnats
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 DNATs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getDnats({
elasticIp: "123.207.115.136",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_dnats(elastic_ip="123.207.115.136")
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.GetDnats(ctx, &tencentcloud.GetDnatsArgs{
ElasticIp: pulumi.StringRef("123.207.115.136"),
}, 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.GetDnats.Invoke(new()
{
ElasticIp = "123.207.115.136",
});
});
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.GetDnatsArgs;
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.getDnats(GetDnatsArgs.builder()
.elasticIp("123.207.115.136")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getDnats
arguments:
elasticIp: 123.207.115.136
Using getDnats
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 getDnats(args: GetDnatsArgs, opts?: InvokeOptions): Promise<GetDnatsResult>
function getDnatsOutput(args: GetDnatsOutputArgs, opts?: InvokeOptions): Output<GetDnatsResult>
def get_dnats(description: Optional[str] = None,
elastic_ip: Optional[str] = None,
elastic_port: Optional[str] = None,
id: Optional[str] = None,
nat_id: Optional[str] = None,
private_ip: Optional[str] = None,
private_port: Optional[str] = None,
result_output_file: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnatsResult
def get_dnats_output(description: Optional[pulumi.Input[str]] = None,
elastic_ip: Optional[pulumi.Input[str]] = None,
elastic_port: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
nat_id: Optional[pulumi.Input[str]] = None,
private_ip: Optional[pulumi.Input[str]] = None,
private_port: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnatsResult]
func GetDnats(ctx *Context, args *GetDnatsArgs, opts ...InvokeOption) (*GetDnatsResult, error)
func GetDnatsOutput(ctx *Context, args *GetDnatsOutputArgs, opts ...InvokeOption) GetDnatsResultOutput
> Note: This function is named GetDnats
in the Go SDK.
public static class GetDnats
{
public static Task<GetDnatsResult> InvokeAsync(GetDnatsArgs args, InvokeOptions? opts = null)
public static Output<GetDnatsResult> Invoke(GetDnatsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDnatsResult> getDnats(GetDnatsArgs args, InvokeOptions options)
public static Output<GetDnatsResult> getDnats(GetDnatsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDnats:getDnats
arguments:
# arguments dictionary
The following arguments are supported:
- Description string
- Description of the NAT forward.
- Elastic
Ip string - Network address of the EIP.
- Elastic
Port string - Port of the EIP.
- Id string
- Nat
Id string - ID of the NAT gateway.
- Private
Ip string - Network address of the backend service.
- Private
Port string - Port of intranet.
- Result
Output stringFile - Used to save results.
- Vpc
Id string - ID of the VPC.
- Description string
- Description of the NAT forward.
- Elastic
Ip string - Network address of the EIP.
- Elastic
Port string - Port of the EIP.
- Id string
- Nat
Id string - ID of the NAT gateway.
- Private
Ip string - Network address of the backend service.
- Private
Port string - Port of intranet.
- Result
Output stringFile - Used to save results.
- Vpc
Id string - ID of the VPC.
- description String
- Description of the NAT forward.
- elastic
Ip String - Network address of the EIP.
- elastic
Port String - Port of the EIP.
- id String
- nat
Id String - ID of the NAT gateway.
- private
Ip String - Network address of the backend service.
- private
Port String - Port of intranet.
- result
Output StringFile - Used to save results.
- vpc
Id String - ID of the VPC.
- description string
- Description of the NAT forward.
- elastic
Ip string - Network address of the EIP.
- elastic
Port string - Port of the EIP.
- id string
- nat
Id string - ID of the NAT gateway.
- private
Ip string - Network address of the backend service.
- private
Port string - Port of intranet.
- result
Output stringFile - Used to save results.
- vpc
Id string - ID of the VPC.
- description str
- Description of the NAT forward.
- elastic_
ip str - Network address of the EIP.
- elastic_
port str - Port of the EIP.
- id str
- nat_
id str - ID of the NAT gateway.
- private_
ip str - Network address of the backend service.
- private_
port str - Port of intranet.
- result_
output_ strfile - Used to save results.
- vpc_
id str - ID of the VPC.
- description String
- Description of the NAT forward.
- elastic
Ip String - Network address of the EIP.
- elastic
Port String - Port of the EIP.
- id String
- nat
Id String - ID of the NAT gateway.
- private
Ip String - Network address of the backend service.
- private
Port String - Port of intranet.
- result
Output StringFile - Used to save results.
- vpc
Id String - ID of the VPC.
getDnats Result
The following output properties are available:
- Dnat
Lists List<GetDnats Dnat List> - Information list of the DNATs.
- Id string
- Description string
- Elastic
Ip string - Network address of the EIP.
- Elastic
Port string - Port of the EIP.
- Nat
Id string - ID of the NAT.
- Private
Ip string - Network address of the backend service.
- Private
Port string - Port of intranet.
- Result
Output stringFile - Vpc
Id string - ID of the VPC.
- Dnat
Lists []GetDnats Dnat List - Information list of the DNATs.
- Id string
- Description string
- Elastic
Ip string - Network address of the EIP.
- Elastic
Port string - Port of the EIP.
- Nat
Id string - ID of the NAT.
- Private
Ip string - Network address of the backend service.
- Private
Port string - Port of intranet.
- Result
Output stringFile - Vpc
Id string - ID of the VPC.
- dnat
Lists List<GetDnats Dnat List> - Information list of the DNATs.
- id String
- description String
- elastic
Ip String - Network address of the EIP.
- elastic
Port String - Port of the EIP.
- nat
Id String - ID of the NAT.
- private
Ip String - Network address of the backend service.
- private
Port String - Port of intranet.
- result
Output StringFile - vpc
Id String - ID of the VPC.
- dnat
Lists GetDnats Dnat List[] - Information list of the DNATs.
- id string
- description string
- elastic
Ip string - Network address of the EIP.
- elastic
Port string - Port of the EIP.
- nat
Id string - ID of the NAT.
- private
Ip string - Network address of the backend service.
- private
Port string - Port of intranet.
- result
Output stringFile - vpc
Id string - ID of the VPC.
- dnat_
lists Sequence[GetDnats Dnat List] - Information list of the DNATs.
- id str
- description str
- elastic_
ip str - Network address of the EIP.
- elastic_
port str - Port of the EIP.
- nat_
id str - ID of the NAT.
- private_
ip str - Network address of the backend service.
- private_
port str - Port of intranet.
- result_
output_ strfile - vpc_
id str - ID of the VPC.
- dnat
Lists List<Property Map> - Information list of the DNATs.
- id String
- description String
- elastic
Ip String - Network address of the EIP.
- elastic
Port String - Port of the EIP.
- nat
Id String - ID of the NAT.
- private
Ip String - Network address of the backend service.
- private
Port String - Port of intranet.
- result
Output StringFile - vpc
Id String - ID of the VPC.
Supporting Types
GetDnatsDnatList
- Description string
- Description of the NAT forward.
- Elastic
Ip string - Network address of the EIP.
- Elastic
Port string - Port of the EIP.
- Nat
Id string - ID of the NAT gateway.
- Private
Ip string - Network address of the backend service.
- Private
Port string - Port of intranet.
- Protocol string
- Type of the network protocol. Valid values:
TCP
andUDP
. - Vpc
Id string - ID of the VPC.
- Description string
- Description of the NAT forward.
- Elastic
Ip string - Network address of the EIP.
- Elastic
Port string - Port of the EIP.
- Nat
Id string - ID of the NAT gateway.
- Private
Ip string - Network address of the backend service.
- Private
Port string - Port of intranet.
- Protocol string
- Type of the network protocol. Valid values:
TCP
andUDP
. - Vpc
Id string - ID of the VPC.
- description String
- Description of the NAT forward.
- elastic
Ip String - Network address of the EIP.
- elastic
Port String - Port of the EIP.
- nat
Id String - ID of the NAT gateway.
- private
Ip String - Network address of the backend service.
- private
Port String - Port of intranet.
- protocol String
- Type of the network protocol. Valid values:
TCP
andUDP
. - vpc
Id String - ID of the VPC.
- description string
- Description of the NAT forward.
- elastic
Ip string - Network address of the EIP.
- elastic
Port string - Port of the EIP.
- nat
Id string - ID of the NAT gateway.
- private
Ip string - Network address of the backend service.
- private
Port string - Port of intranet.
- protocol string
- Type of the network protocol. Valid values:
TCP
andUDP
. - vpc
Id string - ID of the VPC.
- description str
- Description of the NAT forward.
- elastic_
ip str - Network address of the EIP.
- elastic_
port str - Port of the EIP.
- nat_
id str - ID of the NAT gateway.
- private_
ip str - Network address of the backend service.
- private_
port str - Port of intranet.
- protocol str
- Type of the network protocol. Valid values:
TCP
andUDP
. - vpc_
id str - ID of the VPC.
- description String
- Description of the NAT forward.
- elastic
Ip String - Network address of the EIP.
- elastic
Port String - Port of the EIP.
- nat
Id String - ID of the NAT gateway.
- private
Ip String - Network address of the backend service.
- private
Port String - Port of intranet.
- protocol String
- Type of the network protocol. Valid values:
TCP
andUDP
. - vpc
Id String - ID of the VPC.
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