1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDnats
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.getDnats

Explore with Pulumi AI

tencentcloud 1.81.187 published on Monday, Apr 28, 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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.get_dnats(elastic_ip="123.207.115.136")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      function: tencentcloud:getDnats
      arguments:
        elasticIp: 123.207.115.136
Copy

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>
Copy
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]
Copy
func GetDnats(ctx *Context, args *GetDnatsArgs, opts ...InvokeOption) (*GetDnatsResult, error)
func GetDnatsOutput(ctx *Context, args *GetDnatsOutputArgs, opts ...InvokeOption) GetDnatsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDnatsResult> getDnats(GetDnatsArgs args, InvokeOptions options)
public static Output<GetDnatsResult> getDnats(GetDnatsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getDnats:getDnats
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Description string
Description of the NAT forward.
ElasticIp string
Network address of the EIP.
ElasticPort string
Port of the EIP.
Id string
NatId string
ID of the NAT gateway.
PrivateIp string
Network address of the backend service.
PrivatePort string
Port of intranet.
ResultOutputFile string
Used to save results.
VpcId string
ID of the VPC.
Description string
Description of the NAT forward.
ElasticIp string
Network address of the EIP.
ElasticPort string
Port of the EIP.
Id string
NatId string
ID of the NAT gateway.
PrivateIp string
Network address of the backend service.
PrivatePort string
Port of intranet.
ResultOutputFile string
Used to save results.
VpcId string
ID of the VPC.
description String
Description of the NAT forward.
elasticIp String
Network address of the EIP.
elasticPort String
Port of the EIP.
id String
natId String
ID of the NAT gateway.
privateIp String
Network address of the backend service.
privatePort String
Port of intranet.
resultOutputFile String
Used to save results.
vpcId String
ID of the VPC.
description string
Description of the NAT forward.
elasticIp string
Network address of the EIP.
elasticPort string
Port of the EIP.
id string
natId string
ID of the NAT gateway.
privateIp string
Network address of the backend service.
privatePort string
Port of intranet.
resultOutputFile string
Used to save results.
vpcId 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_file str
Used to save results.
vpc_id str
ID of the VPC.
description String
Description of the NAT forward.
elasticIp String
Network address of the EIP.
elasticPort String
Port of the EIP.
id String
natId String
ID of the NAT gateway.
privateIp String
Network address of the backend service.
privatePort String
Port of intranet.
resultOutputFile String
Used to save results.
vpcId String
ID of the VPC.

getDnats Result

The following output properties are available:

DnatLists List<GetDnatsDnatList>
Information list of the DNATs.
Id string
Description string
ElasticIp string
Network address of the EIP.
ElasticPort string
Port of the EIP.
NatId string
ID of the NAT.
PrivateIp string
Network address of the backend service.
PrivatePort string
Port of intranet.
ResultOutputFile string
VpcId string
ID of the VPC.
DnatLists []GetDnatsDnatList
Information list of the DNATs.
Id string
Description string
ElasticIp string
Network address of the EIP.
ElasticPort string
Port of the EIP.
NatId string
ID of the NAT.
PrivateIp string
Network address of the backend service.
PrivatePort string
Port of intranet.
ResultOutputFile string
VpcId string
ID of the VPC.
dnatLists List<GetDnatsDnatList>
Information list of the DNATs.
id String
description String
elasticIp String
Network address of the EIP.
elasticPort String
Port of the EIP.
natId String
ID of the NAT.
privateIp String
Network address of the backend service.
privatePort String
Port of intranet.
resultOutputFile String
vpcId String
ID of the VPC.
dnatLists GetDnatsDnatList[]
Information list of the DNATs.
id string
description string
elasticIp string
Network address of the EIP.
elasticPort string
Port of the EIP.
natId string
ID of the NAT.
privateIp string
Network address of the backend service.
privatePort string
Port of intranet.
resultOutputFile string
vpcId string
ID of the VPC.
dnat_lists Sequence[GetDnatsDnatList]
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_file str
vpc_id str
ID of the VPC.
dnatLists List<Property Map>
Information list of the DNATs.
id String
description String
elasticIp String
Network address of the EIP.
elasticPort String
Port of the EIP.
natId String
ID of the NAT.
privateIp String
Network address of the backend service.
privatePort String
Port of intranet.
resultOutputFile String
vpcId String
ID of the VPC.

Supporting Types

GetDnatsDnatList

Description This property is required. string
Description of the NAT forward.
ElasticIp This property is required. string
Network address of the EIP.
ElasticPort This property is required. string
Port of the EIP.
NatId This property is required. string
ID of the NAT gateway.
PrivateIp This property is required. string
Network address of the backend service.
PrivatePort This property is required. string
Port of intranet.
Protocol This property is required. string
Type of the network protocol. Valid values: TCP and UDP.
VpcId This property is required. string
ID of the VPC.
Description This property is required. string
Description of the NAT forward.
ElasticIp This property is required. string
Network address of the EIP.
ElasticPort This property is required. string
Port of the EIP.
NatId This property is required. string
ID of the NAT gateway.
PrivateIp This property is required. string
Network address of the backend service.
PrivatePort This property is required. string
Port of intranet.
Protocol This property is required. string
Type of the network protocol. Valid values: TCP and UDP.
VpcId This property is required. string
ID of the VPC.
description This property is required. String
Description of the NAT forward.
elasticIp This property is required. String
Network address of the EIP.
elasticPort This property is required. String
Port of the EIP.
natId This property is required. String
ID of the NAT gateway.
privateIp This property is required. String
Network address of the backend service.
privatePort This property is required. String
Port of intranet.
protocol This property is required. String
Type of the network protocol. Valid values: TCP and UDP.
vpcId This property is required. String
ID of the VPC.
description This property is required. string
Description of the NAT forward.
elasticIp This property is required. string
Network address of the EIP.
elasticPort This property is required. string
Port of the EIP.
natId This property is required. string
ID of the NAT gateway.
privateIp This property is required. string
Network address of the backend service.
privatePort This property is required. string
Port of intranet.
protocol This property is required. string
Type of the network protocol. Valid values: TCP and UDP.
vpcId This property is required. string
ID of the VPC.
description This property is required. str
Description of the NAT forward.
elastic_ip This property is required. str
Network address of the EIP.
elastic_port This property is required. str
Port of the EIP.
nat_id This property is required. str
ID of the NAT gateway.
private_ip This property is required. str
Network address of the backend service.
private_port This property is required. str
Port of intranet.
protocol This property is required. str
Type of the network protocol. Valid values: TCP and UDP.
vpc_id This property is required. str
ID of the VPC.
description This property is required. String
Description of the NAT forward.
elasticIp This property is required. String
Network address of the EIP.
elasticPort This property is required. String
Port of the EIP.
natId This property is required. String
ID of the NAT gateway.
privateIp This property is required. String
Network address of the backend service.
privatePort This property is required. String
Port of intranet.
protocol This property is required. String
Type of the network protocol. Valid values: TCP and UDP.
vpcId This property is required. 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.187 published on Monday, Apr 28, 2025 by tencentcloudstack