1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. NatDnatRuleV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.NatDnatRuleV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a DNAT rule resource within FlexibleEngine.

    Example Usage

    DNAT rule in Direct Connect scenario

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const dnat2 = new flexibleengine.NatDnatRuleV2("dnat2", {
        natGatewayId: _var.natgw_id,
        floatingIpId: _var.publicip_id,
        privateIp: "10.0.0.12",
        protocol: "tcp",
        internalServicePort: 80,
        externalServicePort: 8080,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    dnat2 = flexibleengine.NatDnatRuleV2("dnat2",
        nat_gateway_id=var["natgw_id"],
        floating_ip_id=var["publicip_id"],
        private_ip="10.0.0.12",
        protocol="tcp",
        internal_service_port=80,
        external_service_port=8080)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewNatDnatRuleV2(ctx, "dnat2", &flexibleengine.NatDnatRuleV2Args{
    			NatGatewayId:        pulumi.Any(_var.Natgw_id),
    			FloatingIpId:        pulumi.Any(_var.Publicip_id),
    			PrivateIp:           pulumi.String("10.0.0.12"),
    			Protocol:            pulumi.String("tcp"),
    			InternalServicePort: pulumi.Float64(80),
    			ExternalServicePort: pulumi.Float64(8080),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var dnat2 = new Flexibleengine.NatDnatRuleV2("dnat2", new()
        {
            NatGatewayId = @var.Natgw_id,
            FloatingIpId = @var.Publicip_id,
            PrivateIp = "10.0.0.12",
            Protocol = "tcp",
            InternalServicePort = 80,
            ExternalServicePort = 8080,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.NatDnatRuleV2;
    import com.pulumi.flexibleengine.NatDnatRuleV2Args;
    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) {
            var dnat2 = new NatDnatRuleV2("dnat2", NatDnatRuleV2Args.builder()
                .natGatewayId(var_.natgw_id())
                .floatingIpId(var_.publicip_id())
                .privateIp("10.0.0.12")
                .protocol("tcp")
                .internalServicePort(80)
                .externalServicePort(8080)
                .build());
    
        }
    }
    
    resources:
      dnat2:
        type: flexibleengine:NatDnatRuleV2
        properties:
          natGatewayId: ${var.natgw_id}
          floatingIpId: ${var.publicip_id}
          privateIp: 10.0.0.12
          protocol: tcp
          internalServicePort: 80
          externalServicePort: 8080
    

    Create NatDnatRuleV2 Resource

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

    Constructor syntax

    new NatDnatRuleV2(name: string, args: NatDnatRuleV2Args, opts?: CustomResourceOptions);
    @overload
    def NatDnatRuleV2(resource_name: str,
                      args: NatDnatRuleV2Args,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def NatDnatRuleV2(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      external_service_port: Optional[float] = None,
                      floating_ip_id: Optional[str] = None,
                      internal_service_port: Optional[float] = None,
                      nat_gateway_id: Optional[str] = None,
                      protocol: Optional[str] = None,
                      description: Optional[str] = None,
                      nat_dnat_rule_v2_id: Optional[str] = None,
                      port_id: Optional[str] = None,
                      private_ip: Optional[str] = None)
    func NewNatDnatRuleV2(ctx *Context, name string, args NatDnatRuleV2Args, opts ...ResourceOption) (*NatDnatRuleV2, error)
    public NatDnatRuleV2(string name, NatDnatRuleV2Args args, CustomResourceOptions? opts = null)
    public NatDnatRuleV2(String name, NatDnatRuleV2Args args)
    public NatDnatRuleV2(String name, NatDnatRuleV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:NatDnatRuleV2
    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 NatDnatRuleV2Args
    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 NatDnatRuleV2Args
    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 NatDnatRuleV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NatDnatRuleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NatDnatRuleV2Args
    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 natDnatRuleV2Resource = new Flexibleengine.NatDnatRuleV2("natDnatRuleV2Resource", new()
    {
        ExternalServicePort = 0,
        FloatingIpId = "string",
        InternalServicePort = 0,
        NatGatewayId = "string",
        Protocol = "string",
        Description = "string",
        NatDnatRuleV2Id = "string",
        PortId = "string",
        PrivateIp = "string",
    });
    
    example, err := flexibleengine.NewNatDnatRuleV2(ctx, "natDnatRuleV2Resource", &flexibleengine.NatDnatRuleV2Args{
    	ExternalServicePort: pulumi.Float64(0),
    	FloatingIpId:        pulumi.String("string"),
    	InternalServicePort: pulumi.Float64(0),
    	NatGatewayId:        pulumi.String("string"),
    	Protocol:            pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	NatDnatRuleV2Id:     pulumi.String("string"),
    	PortId:              pulumi.String("string"),
    	PrivateIp:           pulumi.String("string"),
    })
    
    var natDnatRuleV2Resource = new NatDnatRuleV2("natDnatRuleV2Resource", NatDnatRuleV2Args.builder()
        .externalServicePort(0)
        .floatingIpId("string")
        .internalServicePort(0)
        .natGatewayId("string")
        .protocol("string")
        .description("string")
        .natDnatRuleV2Id("string")
        .portId("string")
        .privateIp("string")
        .build());
    
    nat_dnat_rule_v2_resource = flexibleengine.NatDnatRuleV2("natDnatRuleV2Resource",
        external_service_port=0,
        floating_ip_id="string",
        internal_service_port=0,
        nat_gateway_id="string",
        protocol="string",
        description="string",
        nat_dnat_rule_v2_id="string",
        port_id="string",
        private_ip="string")
    
    const natDnatRuleV2Resource = new flexibleengine.NatDnatRuleV2("natDnatRuleV2Resource", {
        externalServicePort: 0,
        floatingIpId: "string",
        internalServicePort: 0,
        natGatewayId: "string",
        protocol: "string",
        description: "string",
        natDnatRuleV2Id: "string",
        portId: "string",
        privateIp: "string",
    });
    
    type: flexibleengine:NatDnatRuleV2
    properties:
        description: string
        externalServicePort: 0
        floatingIpId: string
        internalServicePort: 0
        natDnatRuleV2Id: string
        natGatewayId: string
        portId: string
        privateIp: string
        protocol: string
    

    NatDnatRuleV2 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 NatDnatRuleV2 resource accepts the following input properties:

    ExternalServicePort double
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    FloatingIpId string
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    InternalServicePort double
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    NatGatewayId string
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    Protocol string
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    Description string
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    NatDnatRuleV2Id string
    The resource ID in UUID format.
    PortId string
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    PrivateIp string
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    ExternalServicePort float64
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    FloatingIpId string
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    InternalServicePort float64
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    NatGatewayId string
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    Protocol string
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    Description string
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    NatDnatRuleV2Id string
    The resource ID in UUID format.
    PortId string
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    PrivateIp string
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    externalServicePort Double
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floatingIpId String
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internalServicePort Double
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    natGatewayId String
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    protocol String
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    description String
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    natDnatRuleV2Id String
    The resource ID in UUID format.
    portId String
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    privateIp String
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    externalServicePort number
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floatingIpId string
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internalServicePort number
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    natGatewayId string
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    protocol string
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    description string
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    natDnatRuleV2Id string
    The resource ID in UUID format.
    portId string
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    privateIp string
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    external_service_port float
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floating_ip_id str
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internal_service_port float
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    nat_gateway_id str
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    protocol str
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    description str
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    nat_dnat_rule_v2_id str
    The resource ID in UUID format.
    port_id str
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    private_ip str
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    externalServicePort Number
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floatingIpId String
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internalServicePort Number
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    natGatewayId String
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    protocol String
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    description String
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    natDnatRuleV2Id String
    The resource ID in UUID format.
    portId String
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    privateIp String
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.

    Outputs

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

    CreatedAt string
    DNAT rule creation time.
    FloatingIpAddress string
    The actual floating IP address.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    DNAT rule status.
    CreatedAt string
    DNAT rule creation time.
    FloatingIpAddress string
    The actual floating IP address.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    DNAT rule status.
    createdAt String
    DNAT rule creation time.
    floatingIpAddress String
    The actual floating IP address.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    DNAT rule status.
    createdAt string
    DNAT rule creation time.
    floatingIpAddress string
    The actual floating IP address.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    DNAT rule status.
    created_at str
    DNAT rule creation time.
    floating_ip_address str
    The actual floating IP address.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    DNAT rule status.
    createdAt String
    DNAT rule creation time.
    floatingIpAddress String
    The actual floating IP address.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    DNAT rule status.

    Look up Existing NatDnatRuleV2 Resource

    Get an existing NatDnatRuleV2 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?: NatDnatRuleV2State, opts?: CustomResourceOptions): NatDnatRuleV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            external_service_port: Optional[float] = None,
            floating_ip_address: Optional[str] = None,
            floating_ip_id: Optional[str] = None,
            internal_service_port: Optional[float] = None,
            nat_dnat_rule_v2_id: Optional[str] = None,
            nat_gateway_id: Optional[str] = None,
            port_id: Optional[str] = None,
            private_ip: Optional[str] = None,
            protocol: Optional[str] = None,
            status: Optional[str] = None) -> NatDnatRuleV2
    func GetNatDnatRuleV2(ctx *Context, name string, id IDInput, state *NatDnatRuleV2State, opts ...ResourceOption) (*NatDnatRuleV2, error)
    public static NatDnatRuleV2 Get(string name, Input<string> id, NatDnatRuleV2State? state, CustomResourceOptions? opts = null)
    public static NatDnatRuleV2 get(String name, Output<String> id, NatDnatRuleV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:NatDnatRuleV2    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
    DNAT rule creation time.
    Description string
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    ExternalServicePort double
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    FloatingIpAddress string
    The actual floating IP address.
    FloatingIpId string
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    InternalServicePort double
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    NatDnatRuleV2Id string
    The resource ID in UUID format.
    NatGatewayId string
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    PortId string
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    PrivateIp string
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    Protocol string
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    Status string
    DNAT rule status.
    CreatedAt string
    DNAT rule creation time.
    Description string
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    ExternalServicePort float64
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    FloatingIpAddress string
    The actual floating IP address.
    FloatingIpId string
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    InternalServicePort float64
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    NatDnatRuleV2Id string
    The resource ID in UUID format.
    NatGatewayId string
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    PortId string
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    PrivateIp string
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    Protocol string
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    Status string
    DNAT rule status.
    createdAt String
    DNAT rule creation time.
    description String
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    externalServicePort Double
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floatingIpAddress String
    The actual floating IP address.
    floatingIpId String
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internalServicePort Double
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    natDnatRuleV2Id String
    The resource ID in UUID format.
    natGatewayId String
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    portId String
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    privateIp String
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    protocol String
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    status String
    DNAT rule status.
    createdAt string
    DNAT rule creation time.
    description string
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    externalServicePort number
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floatingIpAddress string
    The actual floating IP address.
    floatingIpId string
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internalServicePort number
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    natDnatRuleV2Id string
    The resource ID in UUID format.
    natGatewayId string
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    portId string
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    privateIp string
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    protocol string
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    status string
    DNAT rule status.
    created_at str
    DNAT rule creation time.
    description str
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    external_service_port float
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floating_ip_address str
    The actual floating IP address.
    floating_ip_id str
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internal_service_port float
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    nat_dnat_rule_v2_id str
    The resource ID in UUID format.
    nat_gateway_id str
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    port_id str
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    private_ip str
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    protocol str
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    status str
    DNAT rule status.
    createdAt String
    DNAT rule creation time.
    description String
    Specifies the description of the dnat rule. The value is a string of no more than 255 characters, and angle brackets (<>) are not allowed. Changing this creates a new dnat rule.
    externalServicePort Number
    Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
    floatingIpAddress String
    The actual floating IP address.
    floatingIpId String
    Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
    internalServicePort Number
    Specifies the port used by ECSs or BMSs to provide services that are accessible from external systems. Changing this creates a new dnat rule.
    natDnatRuleV2Id String
    The resource ID in UUID format.
    natGatewayId String
    Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
    portId String
    Specifies the port ID of an ECS or a BMS. This parameter is mandatory in VPC scenario. Changing this creates a new dnat rule.
    privateIp String
    Specifies the private IP address of a user, for example, the IP address of a VPC for dedicated connection. This parameter is mandatory in Direct Connect scenario. Changing this creates a new dnat rule.
    protocol String
    Specifies the protocol type. Currently, TCP, UDP, and ANY are supported. Changing this creates a new dnat rule.
    status String
    DNAT rule status.

    Import

    DNAT can be imported using the following format:

    $ pulumi import flexibleengine:index/natDnatRuleV2:NatDnatRuleV2 dnat_1 f4f783a7-b908-4215-b018-724960e5df4a
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud