NAT Gateway Rule
Creates and manages Nat Gateway Rule objects.
Manages a Nat Gateway Rule on IonosCloud.
Example Usage
Argument reference
name
- (Required)[string] Name of the NAT gateway rule.type
- (Optional)[string] Type of the NAT gateway rule.protocol
- (Optional)[string] Protocol of the NAT gateway rule. Defaults to ALL. If protocol is 'ICMP' then targetPortRange start and end cannot be set.source_subnet
- (Required)[string] Source subnet of the NAT gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets source IP address.public_ip
- (Required)[string] Public IP address of the NAT gateway rule. Specifies the address used for masking outgoing packets source address field. Should be one of the customer reserved IP address already configured on the NAT gateway resource.target_subnet
- (Optional)[string] Target or destination subnet of the NAT gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets destination IP address. If none is provided, rule will match any address.target_port_range
- (Optional) Target port range of the NAT gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on destination port. If none is provided, rule will match any port.start
- (Optional)[int] Target port range start associated with the NAT gateway rule.end
- (Optional)[int] Target port range end associated with the NAT gateway rule.
datacenter_id
- (Required)[string] A Datacenter's UUID.natgateway_id
- (Required)[string] Nat Gateway's UUID.
Import
A Nat Gateway Rule resource can be imported using its resource id
, the datacenter id
and the `natgateway id , e.g.
Last updated