1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDnats
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getDnats

Explore with Pulumi AI

tencentcloud logo
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.
    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 string
    Description of the NAT forward.
    ElasticIp string
    Network address of the EIP.
    ElasticPort string
    Port of the EIP.
    NatId string
    ID of the NAT gateway.
    PrivateIp string
    Network address of the backend service.
    PrivatePort string
    Port of intranet.
    Protocol string
    Type of the network protocol. Valid values: TCP and UDP.
    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.
    NatId string
    ID of the NAT gateway.
    PrivateIp string
    Network address of the backend service.
    PrivatePort string
    Port of intranet.
    Protocol string
    Type of the network protocol. Valid values: TCP and UDP.
    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.
    natId String
    ID of the NAT gateway.
    privateIp String
    Network address of the backend service.
    privatePort String
    Port of intranet.
    protocol String
    Type of the network protocol. Valid values: TCP and UDP.
    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.
    natId string
    ID of the NAT gateway.
    privateIp string
    Network address of the backend service.
    privatePort string
    Port of intranet.
    protocol string
    Type of the network protocol. Valid values: TCP and UDP.
    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.
    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 and UDP.
    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.
    natId String
    ID of the NAT gateway.
    privateIp String
    Network address of the backend service.
    privatePort String
    Port of intranet.
    protocol String
    Type of the network protocol. Valid values: TCP and UDP.
    vpcId 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 logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack