1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getPrivateNatDnatRuleV3
opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud

opentelekomcloud.getPrivateNatDnatRuleV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for Private NAT DNAT rule you can get at documentation portal

    Manages a V3 Private NAT DNAT rule v3 data source within OpenTelekomCloud.

    Example Usage

    List all Private NAT DNAT rules

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const rule1 = opentelekomcloud.getPrivateNatDnatRuleV3({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    rule1 = opentelekomcloud.get_private_nat_dnat_rule_v3()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.LookupPrivateNatDnatRuleV3(ctx, &opentelekomcloud.LookupPrivateNatDnatRuleV3Args{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var rule1 = Opentelekomcloud.GetPrivateNatDnatRuleV3.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetPrivateNatDnatRuleV3Args;
    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 rule1 = OpentelekomcloudFunctions.getPrivateNatDnatRuleV3();
    
        }
    }
    
    variables:
      rule1:
        fn::invoke:
          function: opentelekomcloud:getPrivateNatDnatRuleV3
          arguments: {}
    

    Using getPrivateNatDnatRuleV3

    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 getPrivateNatDnatRuleV3(args: GetPrivateNatDnatRuleV3Args, opts?: InvokeOptions): Promise<GetPrivateNatDnatRuleV3Result>
    function getPrivateNatDnatRuleV3Output(args: GetPrivateNatDnatRuleV3OutputArgs, opts?: InvokeOptions): Output<GetPrivateNatDnatRuleV3Result>
    def get_private_nat_dnat_rule_v3(id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetPrivateNatDnatRuleV3Result
    def get_private_nat_dnat_rule_v3_output(id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetPrivateNatDnatRuleV3Result]
    func LookupPrivateNatDnatRuleV3(ctx *Context, args *LookupPrivateNatDnatRuleV3Args, opts ...InvokeOption) (*LookupPrivateNatDnatRuleV3Result, error)
    func LookupPrivateNatDnatRuleV3Output(ctx *Context, args *LookupPrivateNatDnatRuleV3OutputArgs, opts ...InvokeOption) LookupPrivateNatDnatRuleV3ResultOutput

    > Note: This function is named LookupPrivateNatDnatRuleV3 in the Go SDK.

    public static class GetPrivateNatDnatRuleV3 
    {
        public static Task<GetPrivateNatDnatRuleV3Result> InvokeAsync(GetPrivateNatDnatRuleV3Args args, InvokeOptions? opts = null)
        public static Output<GetPrivateNatDnatRuleV3Result> Invoke(GetPrivateNatDnatRuleV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivateNatDnatRuleV3Result> getPrivateNatDnatRuleV3(GetPrivateNatDnatRuleV3Args args, InvokeOptions options)
    public static Output<GetPrivateNatDnatRuleV3Result> getPrivateNatDnatRuleV3(GetPrivateNatDnatRuleV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getPrivateNatDnatRuleV3:getPrivateNatDnatRuleV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Specifies the private NAT DNAT rule ID.
    Id string
    Specifies the private NAT DNAT rule ID.
    id String
    Specifies the private NAT DNAT rule ID.
    id string
    Specifies the private NAT DNAT rule ID.
    id str
    Specifies the private NAT DNAT rule ID.
    id String
    Specifies the private NAT DNAT rule ID.

    getPrivateNatDnatRuleV3 Result

    The following output properties are available:

    DnatRules List<GetPrivateNatDnatRuleV3DnatRule>
    Id string
    Private NAT DNAT rule ID.
    DnatRules []GetPrivateNatDnatRuleV3DnatRule
    Id string
    Private NAT DNAT rule ID.
    dnatRules List<GetPrivateNatDnatRuleV3DnatRule>
    id String
    Private NAT DNAT rule ID.
    dnatRules GetPrivateNatDnatRuleV3DnatRule[]
    id string
    Private NAT DNAT rule ID.
    dnatRules List<Property Map>
    id String
    Private NAT DNAT rule ID.

    Supporting Types

    GetPrivateNatDnatRuleV3DnatRule

    CreatedAt string
    Indicates the time when the private NAT DNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    Description string
    Provides supplementary information about the DNAT rule.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    GatewayId string
    Indicates the private NAT gateway ID.
    Id string
    Specifies the private NAT DNAT rule ID.
    InternalServicePort string
    Indicates the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    NetworkInterfaceId string
    Indicates the port ID of the resource that the NAT gateway is bound to. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    PrivateIpAddress string
    Indicates the port IP address that the NAT gateway uses.
    ProjectId string
    Indicates the project ID.
    Protocol string
    Indicates the protocol type. Supported values: tcp, udp, any.
    Status string
    Indicates the private NAT DNAT rule status. The value can be: ACTIVE (The DNAT rule is running properly) or FROZEN (The DNAT rule is frozen).
    TransitIpId string
    Indicates the ID of the transit IP address.
    TransitServicePort string
    Indicates the port number of the transit IP address.
    Type string
    Indicates the backend resource type of the DNAT rule. The type can be: COMPUTE, VIP, ELB, ELBv3, CUSTOMIZE.
    UpdatedAt string
    Indicates the time when the private NAT DNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    CreatedAt string
    Indicates the time when the private NAT DNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    Description string
    Provides supplementary information about the DNAT rule.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    GatewayId string
    Indicates the private NAT gateway ID.
    Id string
    Specifies the private NAT DNAT rule ID.
    InternalServicePort string
    Indicates the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    NetworkInterfaceId string
    Indicates the port ID of the resource that the NAT gateway is bound to. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    PrivateIpAddress string
    Indicates the port IP address that the NAT gateway uses.
    ProjectId string
    Indicates the project ID.
    Protocol string
    Indicates the protocol type. Supported values: tcp, udp, any.
    Status string
    Indicates the private NAT DNAT rule status. The value can be: ACTIVE (The DNAT rule is running properly) or FROZEN (The DNAT rule is frozen).
    TransitIpId string
    Indicates the ID of the transit IP address.
    TransitServicePort string
    Indicates the port number of the transit IP address.
    Type string
    Indicates the backend resource type of the DNAT rule. The type can be: COMPUTE, VIP, ELB, ELBv3, CUSTOMIZE.
    UpdatedAt string
    Indicates the time when the private NAT DNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    createdAt String
    Indicates the time when the private NAT DNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description String
    Provides supplementary information about the DNAT rule.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    gatewayId String
    Indicates the private NAT gateway ID.
    id String
    Specifies the private NAT DNAT rule ID.
    internalServicePort String
    Indicates the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    networkInterfaceId String
    Indicates the port ID of the resource that the NAT gateway is bound to. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    privateIpAddress String
    Indicates the port IP address that the NAT gateway uses.
    projectId String
    Indicates the project ID.
    protocol String
    Indicates the protocol type. Supported values: tcp, udp, any.
    status String
    Indicates the private NAT DNAT rule status. The value can be: ACTIVE (The DNAT rule is running properly) or FROZEN (The DNAT rule is frozen).
    transitIpId String
    Indicates the ID of the transit IP address.
    transitServicePort String
    Indicates the port number of the transit IP address.
    type String
    Indicates the backend resource type of the DNAT rule. The type can be: COMPUTE, VIP, ELB, ELBv3, CUSTOMIZE.
    updatedAt String
    Indicates the time when the private NAT DNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    createdAt string
    Indicates the time when the private NAT DNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description string
    Provides supplementary information about the DNAT rule.
    enterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    gatewayId string
    Indicates the private NAT gateway ID.
    id string
    Specifies the private NAT DNAT rule ID.
    internalServicePort string
    Indicates the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    networkInterfaceId string
    Indicates the port ID of the resource that the NAT gateway is bound to. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    privateIpAddress string
    Indicates the port IP address that the NAT gateway uses.
    projectId string
    Indicates the project ID.
    protocol string
    Indicates the protocol type. Supported values: tcp, udp, any.
    status string
    Indicates the private NAT DNAT rule status. The value can be: ACTIVE (The DNAT rule is running properly) or FROZEN (The DNAT rule is frozen).
    transitIpId string
    Indicates the ID of the transit IP address.
    transitServicePort string
    Indicates the port number of the transit IP address.
    type string
    Indicates the backend resource type of the DNAT rule. The type can be: COMPUTE, VIP, ELB, ELBv3, CUSTOMIZE.
    updatedAt string
    Indicates the time when the private NAT DNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    created_at str
    Indicates the time when the private NAT DNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description str
    Provides supplementary information about the DNAT rule.
    enterprise_project_id str
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    gateway_id str
    Indicates the private NAT gateway ID.
    id str
    Specifies the private NAT DNAT rule ID.
    internal_service_port str
    Indicates the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    network_interface_id str
    Indicates the port ID of the resource that the NAT gateway is bound to. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    private_ip_address str
    Indicates the port IP address that the NAT gateway uses.
    project_id str
    Indicates the project ID.
    protocol str
    Indicates the protocol type. Supported values: tcp, udp, any.
    status str
    Indicates the private NAT DNAT rule status. The value can be: ACTIVE (The DNAT rule is running properly) or FROZEN (The DNAT rule is frozen).
    transit_ip_id str
    Indicates the ID of the transit IP address.
    transit_service_port str
    Indicates the port number of the transit IP address.
    type str
    Indicates the backend resource type of the DNAT rule. The type can be: COMPUTE, VIP, ELB, ELBv3, CUSTOMIZE.
    updated_at str
    Indicates the time when the private NAT DNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    createdAt String
    Indicates the time when the private NAT DNAT rule was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.
    description String
    Provides supplementary information about the DNAT rule.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    gatewayId String
    Indicates the private NAT gateway ID.
    id String
    Specifies the private NAT DNAT rule ID.
    internalServicePort String
    Indicates the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    networkInterfaceId String
    Indicates the port ID of the resource that the NAT gateway is bound to. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address.
    privateIpAddress String
    Indicates the port IP address that the NAT gateway uses.
    projectId String
    Indicates the project ID.
    protocol String
    Indicates the protocol type. Supported values: tcp, udp, any.
    status String
    Indicates the private NAT DNAT rule status. The value can be: ACTIVE (The DNAT rule is running properly) or FROZEN (The DNAT rule is frozen).
    transitIpId String
    Indicates the ID of the transit IP address.
    transitServicePort String
    Indicates the port number of the transit IP address.
    type String
    Indicates the backend resource type of the DNAT rule. The type can be: COMPUTE, VIP, ELB, ELBv3, CUSTOMIZE.
    updatedAt String
    Indicates the time when the private NAT DNAT rule was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.48 published on Thursday, Sep 18, 2025 by opentelekomcloud