flexibleengine.NatDnatRuleV2
Explore with Pulumi AI
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:
- External
Service doublePort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- Floating
Ip stringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- Internal
Service doublePort - 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 stringId - 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.
- Nat
Dnat stringRule V2Id - The resource ID in UUID format.
- Port
Id 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.
- Private
Ip 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 float64Port - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- Floating
Ip stringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- Internal
Service float64Port - 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 stringId - 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.
- Nat
Dnat stringRule V2Id - The resource ID in UUID format.
- Port
Id 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.
- Private
Ip 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 DoublePort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating
Ip StringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal
Service DoublePort - 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 StringId - 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.
- nat
Dnat StringRule V2Id - The resource ID in UUID format.
- port
Id 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.
- private
Ip 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 numberPort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating
Ip stringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal
Service numberPort - 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 stringId - 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.
- nat
Dnat stringRule V2Id - The resource ID in UUID format.
- port
Id 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.
- private
Ip 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_ floatport - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating_
ip_ strid - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal_
service_ floatport - 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_ strid - 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_ strrule_ v2_ id - 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.
- external
Service NumberPort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating
Ip StringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal
Service NumberPort - 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 StringId - 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.
- nat
Dnat StringRule V2Id - The resource ID in UUID format.
- port
Id 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.
- private
Ip 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:
- Created
At string - DNAT rule creation time.
- Floating
Ip stringAddress - The actual floating IP address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- DNAT rule status.
- Created
At string - DNAT rule creation time.
- Floating
Ip stringAddress - The actual floating IP address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- DNAT rule status.
- created
At String - DNAT rule creation time.
- floating
Ip StringAddress - The actual floating IP address.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- DNAT rule status.
- created
At string - DNAT rule creation time.
- floating
Ip stringAddress - 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_ straddress - The actual floating IP address.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- DNAT rule status.
- created
At String - DNAT rule creation time.
- floating
Ip StringAddress - 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.
- Created
At 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.
- External
Service doublePort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- Floating
Ip stringAddress - The actual floating IP address.
- Floating
Ip stringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- Internal
Service doublePort - 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 stringRule V2Id - The resource ID in UUID format.
- Nat
Gateway stringId - Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
- Port
Id 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.
- Private
Ip 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 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.
- External
Service float64Port - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- Floating
Ip stringAddress - The actual floating IP address.
- Floating
Ip stringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- Internal
Service float64Port - 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 stringRule V2Id - The resource ID in UUID format.
- Nat
Gateway stringId - Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
- Port
Id 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.
- Private
Ip 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 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.
- external
Service DoublePort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating
Ip StringAddress - The actual floating IP address.
- floating
Ip StringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal
Service DoublePort - 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 StringRule V2Id - The resource ID in UUID format.
- nat
Gateway StringId - Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
- port
Id 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.
- private
Ip 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 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.
- external
Service numberPort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating
Ip stringAddress - The actual floating IP address.
- floating
Ip stringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal
Service numberPort - 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 stringRule V2Id - The resource ID in UUID format.
- nat
Gateway stringId - Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
- port
Id 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.
- private
Ip 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_ floatport - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating_
ip_ straddress - The actual floating IP address.
- floating_
ip_ strid - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal_
service_ floatport - 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_ strrule_ v2_ id - The resource ID in UUID format.
- nat_
gateway_ strid - 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.
- created
At 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.
- external
Service NumberPort - Specifies the port for providing services that are accessible from external systems. Changing this creates a new dnat rule.
- floating
Ip StringAddress - The actual floating IP address.
- floating
Ip StringId - Specifies the ID of the floating IP address. Changing this creates a new dnat rule.
- internal
Service NumberPort - 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 StringRule V2Id - The resource ID in UUID format.
- nat
Gateway StringId - Specifies the ID of the nat gateway this dnat rule belongs to. Changing this creates a new dnat rule.
- port
Id 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.
- private
Ip 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.