1. Packages
  2. Volcengine
  3. API Docs
  4. nat
  5. DnatEntry
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.nat.DnatEntry

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage dnat entry

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooZones = Volcengine.Ecs.Zones.Invoke();
    
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-test-subnet",
            CidrBlock = "172.16.0.0/24",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            VpcId = fooVpc.Id,
        });
    
        var fooGateway = new Volcengine.Nat.Gateway("fooGateway", new()
        {
            VpcId = fooVpc.Id,
            SubnetId = fooSubnet.Id,
            Spec = "Small",
            NatGatewayName = "acc-test-ng",
            Description = "acc-test",
            BillingType = "PostPaid",
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Nat.Inputs.GatewayTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
        var fooAddress = new Volcengine.Eip.Address("fooAddress", new()
        {
            Description = "acc-test",
            Bandwidth = 1,
            BillingType = "PostPaidByBandwidth",
            Isp = "BGP",
        });
    
        var fooAssociate = new Volcengine.Eip.Associate("fooAssociate", new()
        {
            AllocationId = fooAddress.Id,
            InstanceId = fooGateway.Id,
            InstanceType = "Nat",
        });
    
        var fooDnatEntry = new Volcengine.Nat.DnatEntry("fooDnatEntry", new()
        {
            DnatEntryName = "acc-test-dnat-entry",
            ExternalIp = fooAddress.EipAddress,
            ExternalPort = "80",
            InternalIp = "172.16.0.10",
            InternalPort = "80",
            NatGatewayId = fooGateway.Id,
            Protocol = "tcp",
        }, new CustomResourceOptions
        {
            DependsOn = new[]
            {
                fooAssociate,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/eip"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nat"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooZones, err := ecs.Zones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-test-subnet"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		fooGateway, err := nat.NewGateway(ctx, "fooGateway", &nat.GatewayArgs{
    			VpcId:          fooVpc.ID(),
    			SubnetId:       fooSubnet.ID(),
    			Spec:           pulumi.String("Small"),
    			NatGatewayName: pulumi.String("acc-test-ng"),
    			Description:    pulumi.String("acc-test"),
    			BillingType:    pulumi.String("PostPaid"),
    			ProjectName:    pulumi.String("default"),
    			Tags: nat.GatewayTagArray{
    				&nat.GatewayTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fooAddress, err := eip.NewAddress(ctx, "fooAddress", &eip.AddressArgs{
    			Description: pulumi.String("acc-test"),
    			Bandwidth:   pulumi.Int(1),
    			BillingType: pulumi.String("PostPaidByBandwidth"),
    			Isp:         pulumi.String("BGP"),
    		})
    		if err != nil {
    			return err
    		}
    		fooAssociate, err := eip.NewAssociate(ctx, "fooAssociate", &eip.AssociateArgs{
    			AllocationId: fooAddress.ID(),
    			InstanceId:   fooGateway.ID(),
    			InstanceType: pulumi.String("Nat"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = nat.NewDnatEntry(ctx, "fooDnatEntry", &nat.DnatEntryArgs{
    			DnatEntryName: pulumi.String("acc-test-dnat-entry"),
    			ExternalIp:    fooAddress.EipAddress,
    			ExternalPort:  pulumi.String("80"),
    			InternalIp:    pulumi.String("172.16.0.10"),
    			InternalPort:  pulumi.String("80"),
    			NatGatewayId:  fooGateway.ID(),
    			Protocol:      pulumi.String("tcp"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			fooAssociate,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.nat.Gateway;
    import com.pulumi.volcengine.nat.GatewayArgs;
    import com.pulumi.volcengine.nat.inputs.GatewayTagArgs;
    import com.pulumi.volcengine.eip.Address;
    import com.pulumi.volcengine.eip.AddressArgs;
    import com.pulumi.volcengine.eip.Associate;
    import com.pulumi.volcengine.eip.AssociateArgs;
    import com.pulumi.volcengine.nat.DnatEntry;
    import com.pulumi.volcengine.nat.DnatEntryArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 fooZones = EcsFunctions.Zones();
    
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-test-subnet")
                .cidrBlock("172.16.0.0/24")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .vpcId(fooVpc.id())
                .build());
    
            var fooGateway = new Gateway("fooGateway", GatewayArgs.builder()        
                .vpcId(fooVpc.id())
                .subnetId(fooSubnet.id())
                .spec("Small")
                .natGatewayName("acc-test-ng")
                .description("acc-test")
                .billingType("PostPaid")
                .projectName("default")
                .tags(GatewayTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
    
            var fooAddress = new Address("fooAddress", AddressArgs.builder()        
                .description("acc-test")
                .bandwidth(1)
                .billingType("PostPaidByBandwidth")
                .isp("BGP")
                .build());
    
            var fooAssociate = new Associate("fooAssociate", AssociateArgs.builder()        
                .allocationId(fooAddress.id())
                .instanceId(fooGateway.id())
                .instanceType("Nat")
                .build());
    
            var fooDnatEntry = new DnatEntry("fooDnatEntry", DnatEntryArgs.builder()        
                .dnatEntryName("acc-test-dnat-entry")
                .externalIp(fooAddress.eipAddress())
                .externalPort(80)
                .internalIp("172.16.0.10")
                .internalPort(80)
                .natGatewayId(fooGateway.id())
                .protocol("tcp")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(fooAssociate)
                    .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_zones = volcengine.ecs.zones()
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-test-subnet",
        cidr_block="172.16.0.0/24",
        zone_id=foo_zones.zones[0].id,
        vpc_id=foo_vpc.id)
    foo_gateway = volcengine.nat.Gateway("fooGateway",
        vpc_id=foo_vpc.id,
        subnet_id=foo_subnet.id,
        spec="Small",
        nat_gateway_name="acc-test-ng",
        description="acc-test",
        billing_type="PostPaid",
        project_name="default",
        tags=[volcengine.nat.GatewayTagArgs(
            key="k1",
            value="v1",
        )])
    foo_address = volcengine.eip.Address("fooAddress",
        description="acc-test",
        bandwidth=1,
        billing_type="PostPaidByBandwidth",
        isp="BGP")
    foo_associate = volcengine.eip.Associate("fooAssociate",
        allocation_id=foo_address.id,
        instance_id=foo_gateway.id,
        instance_type="Nat")
    foo_dnat_entry = volcengine.nat.DnatEntry("fooDnatEntry",
        dnat_entry_name="acc-test-dnat-entry",
        external_ip=foo_address.eip_address,
        external_port="80",
        internal_ip="172.16.0.10",
        internal_port="80",
        nat_gateway_id=foo_gateway.id,
        protocol="tcp",
        opts=pulumi.ResourceOptions(depends_on=[foo_associate]))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooZones = volcengine.ecs.Zones({});
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-test-subnet",
        cidrBlock: "172.16.0.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        vpcId: fooVpc.id,
    });
    const fooGateway = new volcengine.nat.Gateway("fooGateway", {
        vpcId: fooVpc.id,
        subnetId: fooSubnet.id,
        spec: "Small",
        natGatewayName: "acc-test-ng",
        description: "acc-test",
        billingType: "PostPaid",
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    const fooAddress = new volcengine.eip.Address("fooAddress", {
        description: "acc-test",
        bandwidth: 1,
        billingType: "PostPaidByBandwidth",
        isp: "BGP",
    });
    const fooAssociate = new volcengine.eip.Associate("fooAssociate", {
        allocationId: fooAddress.id,
        instanceId: fooGateway.id,
        instanceType: "Nat",
    });
    const fooDnatEntry = new volcengine.nat.DnatEntry("fooDnatEntry", {
        dnatEntryName: "acc-test-dnat-entry",
        externalIp: fooAddress.eipAddress,
        externalPort: "80",
        internalIp: "172.16.0.10",
        internalPort: "80",
        natGatewayId: fooGateway.id,
        protocol: "tcp",
    }, {
        dependsOn: [fooAssociate],
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-test-subnet
          cidrBlock: 172.16.0.0/24
          zoneId: ${fooZones.zones[0].id}
          vpcId: ${fooVpc.id}
      fooGateway:
        type: volcengine:nat:Gateway
        properties:
          vpcId: ${fooVpc.id}
          subnetId: ${fooSubnet.id}
          spec: Small
          natGatewayName: acc-test-ng
          description: acc-test
          billingType: PostPaid
          projectName: default
          tags:
            - key: k1
              value: v1
      fooAddress:
        type: volcengine:eip:Address
        properties:
          description: acc-test
          bandwidth: 1
          billingType: PostPaidByBandwidth
          isp: BGP
      fooAssociate:
        type: volcengine:eip:Associate
        properties:
          allocationId: ${fooAddress.id}
          instanceId: ${fooGateway.id}
          instanceType: Nat
      fooDnatEntry:
        type: volcengine:nat:DnatEntry
        properties:
          dnatEntryName: acc-test-dnat-entry
          externalIp: ${fooAddress.eipAddress}
          externalPort: 80
          internalIp: 172.16.0.10
          internalPort: 80
          natGatewayId: ${fooGateway.id}
          protocol: tcp
        options:
          dependson:
            - ${fooAssociate}
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:Zones
          Arguments: {}
    

    Create DnatEntry Resource

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

    Constructor syntax

    new DnatEntry(name: string, args: DnatEntryArgs, opts?: CustomResourceOptions);
    @overload
    def DnatEntry(resource_name: str,
                  args: DnatEntryArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnatEntry(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  external_ip: Optional[str] = None,
                  external_port: Optional[str] = None,
                  internal_ip: Optional[str] = None,
                  internal_port: Optional[str] = None,
                  nat_gateway_id: Optional[str] = None,
                  protocol: Optional[str] = None,
                  dnat_entry_name: Optional[str] = None)
    func NewDnatEntry(ctx *Context, name string, args DnatEntryArgs, opts ...ResourceOption) (*DnatEntry, error)
    public DnatEntry(string name, DnatEntryArgs args, CustomResourceOptions? opts = null)
    public DnatEntry(String name, DnatEntryArgs args)
    public DnatEntry(String name, DnatEntryArgs args, CustomResourceOptions options)
    
    type: volcengine:nat:DnatEntry
    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 DnatEntryArgs
    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 DnatEntryArgs
    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 DnatEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnatEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnatEntryArgs
    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 dnatEntryResource = new Volcengine.Nat.DnatEntry("dnatEntryResource", new()
    {
        ExternalIp = "string",
        ExternalPort = "string",
        InternalIp = "string",
        InternalPort = "string",
        NatGatewayId = "string",
        Protocol = "string",
        DnatEntryName = "string",
    });
    
    example, err := nat.NewDnatEntry(ctx, "dnatEntryResource", &nat.DnatEntryArgs{
    	ExternalIp:    pulumi.String("string"),
    	ExternalPort:  pulumi.String("string"),
    	InternalIp:    pulumi.String("string"),
    	InternalPort:  pulumi.String("string"),
    	NatGatewayId:  pulumi.String("string"),
    	Protocol:      pulumi.String("string"),
    	DnatEntryName: pulumi.String("string"),
    })
    
    var dnatEntryResource = new DnatEntry("dnatEntryResource", DnatEntryArgs.builder()
        .externalIp("string")
        .externalPort("string")
        .internalIp("string")
        .internalPort("string")
        .natGatewayId("string")
        .protocol("string")
        .dnatEntryName("string")
        .build());
    
    dnat_entry_resource = volcengine.nat.DnatEntry("dnatEntryResource",
        external_ip="string",
        external_port="string",
        internal_ip="string",
        internal_port="string",
        nat_gateway_id="string",
        protocol="string",
        dnat_entry_name="string")
    
    const dnatEntryResource = new volcengine.nat.DnatEntry("dnatEntryResource", {
        externalIp: "string",
        externalPort: "string",
        internalIp: "string",
        internalPort: "string",
        natGatewayId: "string",
        protocol: "string",
        dnatEntryName: "string",
    });
    
    type: volcengine:nat:DnatEntry
    properties:
        dnatEntryName: string
        externalIp: string
        externalPort: string
        internalIp: string
        internalPort: string
        natGatewayId: string
        protocol: string
    

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

    ExternalIp string
    Provides the public IP address for public network access.
    ExternalPort string
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    InternalIp string
    Provides the internal IP address.
    InternalPort string
    The port or port segment on which the cloud server instance provides services to the public network.
    NatGatewayId string
    The id of the nat gateway to which the entry belongs.
    Protocol string
    The network protocol.
    DnatEntryName string
    The name of the DNAT rule.
    ExternalIp string
    Provides the public IP address for public network access.
    ExternalPort string
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    InternalIp string
    Provides the internal IP address.
    InternalPort string
    The port or port segment on which the cloud server instance provides services to the public network.
    NatGatewayId string
    The id of the nat gateway to which the entry belongs.
    Protocol string
    The network protocol.
    DnatEntryName string
    The name of the DNAT rule.
    externalIp String
    Provides the public IP address for public network access.
    externalPort String
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internalIp String
    Provides the internal IP address.
    internalPort String
    The port or port segment on which the cloud server instance provides services to the public network.
    natGatewayId String
    The id of the nat gateway to which the entry belongs.
    protocol String
    The network protocol.
    dnatEntryName String
    The name of the DNAT rule.
    externalIp string
    Provides the public IP address for public network access.
    externalPort string
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internalIp string
    Provides the internal IP address.
    internalPort string
    The port or port segment on which the cloud server instance provides services to the public network.
    natGatewayId string
    The id of the nat gateway to which the entry belongs.
    protocol string
    The network protocol.
    dnatEntryName string
    The name of the DNAT rule.
    external_ip str
    Provides the public IP address for public network access.
    external_port str
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internal_ip str
    Provides the internal IP address.
    internal_port str
    The port or port segment on which the cloud server instance provides services to the public network.
    nat_gateway_id str
    The id of the nat gateway to which the entry belongs.
    protocol str
    The network protocol.
    dnat_entry_name str
    The name of the DNAT rule.
    externalIp String
    Provides the public IP address for public network access.
    externalPort String
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internalIp String
    Provides the internal IP address.
    internalPort String
    The port or port segment on which the cloud server instance provides services to the public network.
    natGatewayId String
    The id of the nat gateway to which the entry belongs.
    protocol String
    The network protocol.
    dnatEntryName String
    The name of the DNAT rule.

    Outputs

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

    DnatEntryId string
    The id of the DNAT rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    DnatEntryId string
    The id of the DNAT rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    dnatEntryId String
    The id of the DNAT rule.
    id String
    The provider-assigned unique ID for this managed resource.
    dnatEntryId string
    The id of the DNAT rule.
    id string
    The provider-assigned unique ID for this managed resource.
    dnat_entry_id str
    The id of the DNAT rule.
    id str
    The provider-assigned unique ID for this managed resource.
    dnatEntryId String
    The id of the DNAT rule.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DnatEntry Resource

    Get an existing DnatEntry 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?: DnatEntryState, opts?: CustomResourceOptions): DnatEntry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dnat_entry_id: Optional[str] = None,
            dnat_entry_name: Optional[str] = None,
            external_ip: Optional[str] = None,
            external_port: Optional[str] = None,
            internal_ip: Optional[str] = None,
            internal_port: Optional[str] = None,
            nat_gateway_id: Optional[str] = None,
            protocol: Optional[str] = None) -> DnatEntry
    func GetDnatEntry(ctx *Context, name string, id IDInput, state *DnatEntryState, opts ...ResourceOption) (*DnatEntry, error)
    public static DnatEntry Get(string name, Input<string> id, DnatEntryState? state, CustomResourceOptions? opts = null)
    public static DnatEntry get(String name, Output<String> id, DnatEntryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    DnatEntryId string
    The id of the DNAT rule.
    DnatEntryName string
    The name of the DNAT rule.
    ExternalIp string
    Provides the public IP address for public network access.
    ExternalPort string
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    InternalIp string
    Provides the internal IP address.
    InternalPort string
    The port or port segment on which the cloud server instance provides services to the public network.
    NatGatewayId string
    The id of the nat gateway to which the entry belongs.
    Protocol string
    The network protocol.
    DnatEntryId string
    The id of the DNAT rule.
    DnatEntryName string
    The name of the DNAT rule.
    ExternalIp string
    Provides the public IP address for public network access.
    ExternalPort string
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    InternalIp string
    Provides the internal IP address.
    InternalPort string
    The port or port segment on which the cloud server instance provides services to the public network.
    NatGatewayId string
    The id of the nat gateway to which the entry belongs.
    Protocol string
    The network protocol.
    dnatEntryId String
    The id of the DNAT rule.
    dnatEntryName String
    The name of the DNAT rule.
    externalIp String
    Provides the public IP address for public network access.
    externalPort String
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internalIp String
    Provides the internal IP address.
    internalPort String
    The port or port segment on which the cloud server instance provides services to the public network.
    natGatewayId String
    The id of the nat gateway to which the entry belongs.
    protocol String
    The network protocol.
    dnatEntryId string
    The id of the DNAT rule.
    dnatEntryName string
    The name of the DNAT rule.
    externalIp string
    Provides the public IP address for public network access.
    externalPort string
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internalIp string
    Provides the internal IP address.
    internalPort string
    The port or port segment on which the cloud server instance provides services to the public network.
    natGatewayId string
    The id of the nat gateway to which the entry belongs.
    protocol string
    The network protocol.
    dnat_entry_id str
    The id of the DNAT rule.
    dnat_entry_name str
    The name of the DNAT rule.
    external_ip str
    Provides the public IP address for public network access.
    external_port str
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internal_ip str
    Provides the internal IP address.
    internal_port str
    The port or port segment on which the cloud server instance provides services to the public network.
    nat_gateway_id str
    The id of the nat gateway to which the entry belongs.
    protocol str
    The network protocol.
    dnatEntryId String
    The id of the DNAT rule.
    dnatEntryName String
    The name of the DNAT rule.
    externalIp String
    Provides the public IP address for public network access.
    externalPort String
    The port or port segment that receives requests from the public network. If InternalPort is passed into the port segment, ExternalPort must also be passed into the port segment.
    internalIp String
    Provides the internal IP address.
    internalPort String
    The port or port segment on which the cloud server instance provides services to the public network.
    natGatewayId String
    The id of the nat gateway to which the entry belongs.
    protocol String
    The network protocol.

    Import

    Dnat entry can be imported using the id, e.g.

     $ pulumi import volcengine:nat/dnatEntry:DnatEntry default dnat-3fvhk47kf56****
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine