1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. PrivateNatDnatRuleV3
opentelekomcloud 1.36.47 published on Thursday, Sep 4, 2025 by opentelekomcloud

opentelekomcloud.PrivateNatDnatRuleV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.47 published on Thursday, Sep 4, 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 resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const transitIpId = config.requireObject("transitIpId");
    const networkInterfaceId = config.requireObject("networkInterfaceId");
    const gatewayId = config.requireObject("gatewayId");
    const rule1 = new opentelekomcloud.PrivateNatDnatRuleV3("rule1", {
        description: "created",
        transitIpId: transitIpId,
        networkInterfaceId: networkInterfaceId,
        gatewayId: gatewayId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    transit_ip_id = config.require_object("transitIpId")
    network_interface_id = config.require_object("networkInterfaceId")
    gateway_id = config.require_object("gatewayId")
    rule1 = opentelekomcloud.PrivateNatDnatRuleV3("rule1",
        description="created",
        transit_ip_id=transit_ip_id,
        network_interface_id=network_interface_id,
        gateway_id=gateway_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		transitIpId := cfg.RequireObject("transitIpId")
    		networkInterfaceId := cfg.RequireObject("networkInterfaceId")
    		gatewayId := cfg.RequireObject("gatewayId")
    		_, err := opentelekomcloud.NewPrivateNatDnatRuleV3(ctx, "rule1", &opentelekomcloud.PrivateNatDnatRuleV3Args{
    			Description:        pulumi.String("created"),
    			TransitIpId:        pulumi.Any(transitIpId),
    			NetworkInterfaceId: pulumi.Any(networkInterfaceId),
    			GatewayId:          pulumi.Any(gatewayId),
    		})
    		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 config = new Config();
        var transitIpId = config.RequireObject<dynamic>("transitIpId");
        var networkInterfaceId = config.RequireObject<dynamic>("networkInterfaceId");
        var gatewayId = config.RequireObject<dynamic>("gatewayId");
        var rule1 = new Opentelekomcloud.PrivateNatDnatRuleV3("rule1", new()
        {
            Description = "created",
            TransitIpId = transitIpId,
            NetworkInterfaceId = networkInterfaceId,
            GatewayId = gatewayId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.PrivateNatDnatRuleV3;
    import com.pulumi.opentelekomcloud.PrivateNatDnatRuleV3Args;
    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 config = ctx.config();
            final var transitIpId = config.get("transitIpId");
            final var networkInterfaceId = config.get("networkInterfaceId");
            final var gatewayId = config.get("gatewayId");
            var rule1 = new PrivateNatDnatRuleV3("rule1", PrivateNatDnatRuleV3Args.builder()
                .description("created")
                .transitIpId(transitIpId)
                .networkInterfaceId(networkInterfaceId)
                .gatewayId(gatewayId)
                .build());
    
        }
    }
    
    configuration:
      transitIpId:
        type: dynamic
      networkInterfaceId:
        type: dynamic
      gatewayId:
        type: dynamic
    resources:
      rule1:
        type: opentelekomcloud:PrivateNatDnatRuleV3
        properties:
          description: created
          transitIpId: ${transitIpId}
          networkInterfaceId: ${networkInterfaceId}
          gatewayId: ${gatewayId}
    

    Create PrivateNatDnatRuleV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PrivateNatDnatRuleV3(name: string, args: PrivateNatDnatRuleV3Args, opts?: CustomResourceOptions);
    @overload
    def PrivateNatDnatRuleV3(resource_name: str,
                             args: PrivateNatDnatRuleV3Args,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateNatDnatRuleV3(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             gateway_id: Optional[str] = None,
                             transit_ip_id: Optional[str] = None,
                             description: Optional[str] = None,
                             internal_service_port: Optional[str] = None,
                             network_interface_id: Optional[str] = None,
                             private_ip_address: Optional[str] = None,
                             protocol: Optional[str] = None,
                             timeouts: Optional[PrivateNatDnatRuleV3TimeoutsArgs] = None,
                             transit_service_port: Optional[str] = None)
    func NewPrivateNatDnatRuleV3(ctx *Context, name string, args PrivateNatDnatRuleV3Args, opts ...ResourceOption) (*PrivateNatDnatRuleV3, error)
    public PrivateNatDnatRuleV3(string name, PrivateNatDnatRuleV3Args args, CustomResourceOptions? opts = null)
    public PrivateNatDnatRuleV3(String name, PrivateNatDnatRuleV3Args args)
    public PrivateNatDnatRuleV3(String name, PrivateNatDnatRuleV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:PrivateNatDnatRuleV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PrivateNatDnatRuleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PrivateNatDnatRuleV3Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PrivateNatDnatRuleV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateNatDnatRuleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateNatDnatRuleV3Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var privateNatDnatRuleV3Resource = new Opentelekomcloud.PrivateNatDnatRuleV3("privateNatDnatRuleV3Resource", new()
    {
        GatewayId = "string",
        TransitIpId = "string",
        Description = "string",
        InternalServicePort = "string",
        NetworkInterfaceId = "string",
        PrivateIpAddress = "string",
        Protocol = "string",
        Timeouts = new Opentelekomcloud.Inputs.PrivateNatDnatRuleV3TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        TransitServicePort = "string",
    });
    
    example, err := opentelekomcloud.NewPrivateNatDnatRuleV3(ctx, "privateNatDnatRuleV3Resource", &opentelekomcloud.PrivateNatDnatRuleV3Args{
    	GatewayId:           pulumi.String("string"),
    	TransitIpId:         pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	InternalServicePort: pulumi.String("string"),
    	NetworkInterfaceId:  pulumi.String("string"),
    	PrivateIpAddress:    pulumi.String("string"),
    	Protocol:            pulumi.String("string"),
    	Timeouts: &opentelekomcloud.PrivateNatDnatRuleV3TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	TransitServicePort: pulumi.String("string"),
    })
    
    var privateNatDnatRuleV3Resource = new PrivateNatDnatRuleV3("privateNatDnatRuleV3Resource", PrivateNatDnatRuleV3Args.builder()
        .gatewayId("string")
        .transitIpId("string")
        .description("string")
        .internalServicePort("string")
        .networkInterfaceId("string")
        .privateIpAddress("string")
        .protocol("string")
        .timeouts(PrivateNatDnatRuleV3TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .transitServicePort("string")
        .build());
    
    private_nat_dnat_rule_v3_resource = opentelekomcloud.PrivateNatDnatRuleV3("privateNatDnatRuleV3Resource",
        gateway_id="string",
        transit_ip_id="string",
        description="string",
        internal_service_port="string",
        network_interface_id="string",
        private_ip_address="string",
        protocol="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        transit_service_port="string")
    
    const privateNatDnatRuleV3Resource = new opentelekomcloud.PrivateNatDnatRuleV3("privateNatDnatRuleV3Resource", {
        gatewayId: "string",
        transitIpId: "string",
        description: "string",
        internalServicePort: "string",
        networkInterfaceId: "string",
        privateIpAddress: "string",
        protocol: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        transitServicePort: "string",
    });
    
    type: opentelekomcloud:PrivateNatDnatRuleV3
    properties:
        description: string
        gatewayId: string
        internalServicePort: string
        networkInterfaceId: string
        privateIpAddress: string
        protocol: string
        timeouts:
            create: string
            delete: string
        transitIpId: string
        transitServicePort: string
    

    PrivateNatDnatRuleV3 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PrivateNatDnatRuleV3 resource accepts the following input properties:

    GatewayId string
    Specifies the private NAT gateway ID.
    TransitIpId string
    Specifies the ID of the transit IP address.
    Description string
    Provides supplementary information about the DNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    InternalServicePort string
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    NetworkInterfaceId string
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    PrivateIpAddress string
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    Protocol string
    Specifies the protocol type. Supported values: tcp, udp, any.
    Timeouts PrivateNatDnatRuleV3Timeouts
    TransitServicePort string
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    GatewayId string
    Specifies the private NAT gateway ID.
    TransitIpId string
    Specifies the ID of the transit IP address.
    Description string
    Provides supplementary information about the DNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    InternalServicePort string
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    NetworkInterfaceId string
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    PrivateIpAddress string
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    Protocol string
    Specifies the protocol type. Supported values: tcp, udp, any.
    Timeouts PrivateNatDnatRuleV3TimeoutsArgs
    TransitServicePort string
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    gatewayId String
    Specifies the private NAT gateway ID.
    transitIpId String
    Specifies the ID of the transit IP address.
    description String
    Provides supplementary information about the DNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    internalServicePort String
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    networkInterfaceId String
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    privateIpAddress String
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    protocol String
    Specifies the protocol type. Supported values: tcp, udp, any.
    timeouts PrivateNatDnatRuleV3Timeouts
    transitServicePort String
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    gatewayId string
    Specifies the private NAT gateway ID.
    transitIpId string
    Specifies the ID of the transit IP address.
    description string
    Provides supplementary information about the DNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    internalServicePort string
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    networkInterfaceId string
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    privateIpAddress string
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    protocol string
    Specifies the protocol type. Supported values: tcp, udp, any.
    timeouts PrivateNatDnatRuleV3Timeouts
    transitServicePort string
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    gateway_id str
    Specifies the private NAT gateway ID.
    transit_ip_id str
    Specifies the ID of the transit IP address.
    description str
    Provides supplementary information about the DNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    internal_service_port str
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    network_interface_id str
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    private_ip_address str
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    protocol str
    Specifies the protocol type. Supported values: tcp, udp, any.
    timeouts PrivateNatDnatRuleV3TimeoutsArgs
    transit_service_port str
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    gatewayId String
    Specifies the private NAT gateway ID.
    transitIpId String
    Specifies the ID of the transit IP address.
    description String
    Provides supplementary information about the DNAT rule. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    internalServicePort String
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    networkInterfaceId String
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    privateIpAddress String
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    protocol String
    Specifies the protocol type. Supported values: tcp, udp, any.
    timeouts Property Map
    transitServicePort String
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrivateNatDnatRuleV3 resource produces the following output properties:

    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.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Indicates the project ID.
    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).
    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.
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Indicates the project ID.
    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).
    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.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Indicates the project ID.
    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).
    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.
    enterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    Indicates the project ID.
    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).
    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.
    enterprise_project_id str
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    id str
    The provider-assigned unique ID for this managed resource.
    project_id str
    Indicates the project ID.
    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).
    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.
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Indicates the project ID.
    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).
    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.

    Look up Existing PrivateNatDnatRuleV3 Resource

    Get an existing PrivateNatDnatRuleV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PrivateNatDnatRuleV3State, opts?: CustomResourceOptions): PrivateNatDnatRuleV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            gateway_id: Optional[str] = None,
            internal_service_port: Optional[str] = None,
            network_interface_id: Optional[str] = None,
            private_ip_address: Optional[str] = None,
            project_id: Optional[str] = None,
            protocol: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[PrivateNatDnatRuleV3TimeoutsArgs] = None,
            transit_ip_id: Optional[str] = None,
            transit_service_port: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> PrivateNatDnatRuleV3
    func GetPrivateNatDnatRuleV3(ctx *Context, name string, id IDInput, state *PrivateNatDnatRuleV3State, opts ...ResourceOption) (*PrivateNatDnatRuleV3, error)
    public static PrivateNatDnatRuleV3 Get(string name, Input<string> id, PrivateNatDnatRuleV3State? state, CustomResourceOptions? opts = null)
    public static PrivateNatDnatRuleV3 get(String name, Output<String> id, PrivateNatDnatRuleV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:PrivateNatDnatRuleV3    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    GatewayId string
    Specifies the private NAT gateway ID.
    InternalServicePort string
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    NetworkInterfaceId string
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    PrivateIpAddress string
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    ProjectId string
    Indicates the project ID.
    Protocol string
    Specifies 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).
    Timeouts PrivateNatDnatRuleV3Timeouts
    TransitIpId string
    Specifies the ID of the transit IP address.
    TransitServicePort string
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    EnterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    GatewayId string
    Specifies the private NAT gateway ID.
    InternalServicePort string
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    NetworkInterfaceId string
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    PrivateIpAddress string
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    ProjectId string
    Indicates the project ID.
    Protocol string
    Specifies 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).
    Timeouts PrivateNatDnatRuleV3TimeoutsArgs
    TransitIpId string
    Specifies the ID of the transit IP address.
    TransitServicePort string
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    gatewayId String
    Specifies the private NAT gateway ID.
    internalServicePort String
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    networkInterfaceId String
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    privateIpAddress String
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    projectId String
    Indicates the project ID.
    protocol String
    Specifies 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).
    timeouts PrivateNatDnatRuleV3Timeouts
    transitIpId String
    Specifies the ID of the transit IP address.
    transitServicePort String
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    enterpriseProjectId string
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    gatewayId string
    Specifies the private NAT gateway ID.
    internalServicePort string
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    networkInterfaceId string
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    privateIpAddress string
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    projectId string
    Indicates the project ID.
    protocol string
    Specifies 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).
    timeouts PrivateNatDnatRuleV3Timeouts
    transitIpId string
    Specifies the ID of the transit IP address.
    transitServicePort string
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    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
    Specifies the private NAT gateway ID.
    internal_service_port str
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    network_interface_id str
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    private_ip_address str
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    project_id str
    Indicates the project ID.
    protocol str
    Specifies 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).
    timeouts PrivateNatDnatRuleV3TimeoutsArgs
    transit_ip_id str
    Specifies the ID of the transit IP address.
    transit_service_port str
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    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. The description can contain up to 255 characters and cannot contain angle brackets (<>).
    enterpriseProjectId String
    Indicates the ID of the enterprise project that is associated with the DNAT rule when the DNAT rule is created.
    gatewayId String
    Specifies the private NAT gateway ID.
    internalServicePort String
    Specifies the port number of the resource, which can be a compute instance, load balancer (v2 or v3), or virtual IP address. Value range: 0-65535. Default value: 0.
    networkInterfaceId String
    Specifies 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. Either this parameter or private_ip_address must be specified. Otherwise, an error will be reported.
    privateIpAddress String
    Specifies the port IP address that the NAT gateway uses. The resource can be a compute instance, load balancer (v2 or v3), or virtual IP address. Either this parameter or network_interface_id must be specified. Otherwise, an error will be reported.
    projectId String
    Indicates the project ID.
    protocol String
    Specifies 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).
    timeouts Property Map
    transitIpId String
    Specifies the ID of the transit IP address.
    transitServicePort String
    Specifies the port number of the transit IP address. Value range: 0-65535. Default value: 0.
    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.

    Supporting Types

    PrivateNatDnatRuleV3Timeouts, PrivateNatDnatRuleV3TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Private NAT DNAT rule V3 resource can be imported using the DNAT rule ID, id.

    $ pulumi import opentelekomcloud:index/privateNatDnatRuleV3:PrivateNatDnatRuleV3 rule_1 <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.47 published on Thursday, Sep 4, 2025 by opentelekomcloud