1. Packages
  2. Scaleway
  3. API Docs
  4. VpcPublicGatewayPatRule
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.VpcPublicGatewayPatRule

Explore with Pulumi AI

Deprecated: scaleway.index/vpcpublicgatewaypatrule.VpcPublicGatewayPatRule has been deprecated in favor of scaleway.network/publicgatewaypatrule.PublicGatewayPatRule

Creates and manages Scaleway Public Gateway PAT (Port Address Translation). For more information, see the API documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const sg01 = new scaleway.instance.SecurityGroup("sg01", {
    inboundDefaultPolicy: "drop",
    outboundDefaultPolicy: "accept",
    inboundRules: [{
        action: "accept",
        port: 22,
        protocol: "TCP",
    }],
});
const srv01 = new scaleway.instance.Server("srv01", {
    name: "my-server",
    type: "PLAY2-NANO",
    image: "ubuntu_jammy",
    securityGroupId: sg01.id,
});
const pn01 = new scaleway.network.PrivateNetwork("pn01", {name: "my-pn"});
const pnic01 = new scaleway.instance.PrivateNic("pnic01", {
    serverId: srv01.id,
    privateNetworkId: pn01.id,
});
const dhcp01 = new scaleway.network.PublicGatewayDhcp("dhcp01", {subnet: "192.168.0.0/24"});
const ip01 = new scaleway.network.PublicGatewayIp("ip01", {});
const pg01 = new scaleway.network.PublicGateway("pg01", {
    name: "my-pg",
    type: "VPC-GW-S",
    ipId: ip01.id,
});
const gn01 = new scaleway.network.GatewayNetwork("gn01", {
    gatewayId: pg01.id,
    privateNetworkId: pn01.id,
    dhcpId: dhcp01.id,
    cleanupDhcp: true,
    enableMasquerade: true,
});
const rsv01 = new scaleway.network.PublicGatewayDhcpReservation("rsv01", {
    gatewayNetworkId: gn01.id,
    macAddress: pnic01.macAddress,
    ipAddress: "192.168.0.7",
});
// PAT rule for SSH traffic
const pat01 = new scaleway.network.PublicGatewayPatRule("pat01", {
    gatewayId: pg01.id,
    privateIp: rsv01.ipAddress,
    privatePort: 22,
    publicPort: 2202,
    protocol: "tcp",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

sg01 = scaleway.instance.SecurityGroup("sg01",
    inbound_default_policy="drop",
    outbound_default_policy="accept",
    inbound_rules=[{
        "action": "accept",
        "port": 22,
        "protocol": "TCP",
    }])
srv01 = scaleway.instance.Server("srv01",
    name="my-server",
    type="PLAY2-NANO",
    image="ubuntu_jammy",
    security_group_id=sg01.id)
pn01 = scaleway.network.PrivateNetwork("pn01", name="my-pn")
pnic01 = scaleway.instance.PrivateNic("pnic01",
    server_id=srv01.id,
    private_network_id=pn01.id)
dhcp01 = scaleway.network.PublicGatewayDhcp("dhcp01", subnet="192.168.0.0/24")
ip01 = scaleway.network.PublicGatewayIp("ip01")
pg01 = scaleway.network.PublicGateway("pg01",
    name="my-pg",
    type="VPC-GW-S",
    ip_id=ip01.id)
gn01 = scaleway.network.GatewayNetwork("gn01",
    gateway_id=pg01.id,
    private_network_id=pn01.id,
    dhcp_id=dhcp01.id,
    cleanup_dhcp=True,
    enable_masquerade=True)
rsv01 = scaleway.network.PublicGatewayDhcpReservation("rsv01",
    gateway_network_id=gn01.id,
    mac_address=pnic01.mac_address,
    ip_address="192.168.0.7")
# PAT rule for SSH traffic
pat01 = scaleway.network.PublicGatewayPatRule("pat01",
    gateway_id=pg01.id,
    private_ip=rsv01.ip_address,
    private_port=22,
    public_port=2202,
    protocol="tcp")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/instance"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/network"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		sg01, err := instance.NewSecurityGroup(ctx, "sg01", &instance.SecurityGroupArgs{
			InboundDefaultPolicy:  pulumi.String("drop"),
			OutboundDefaultPolicy: pulumi.String("accept"),
			InboundRules: instance.SecurityGroupInboundRuleArray{
				&instance.SecurityGroupInboundRuleArgs{
					Action:   pulumi.String("accept"),
					Port:     pulumi.Int(22),
					Protocol: pulumi.String("TCP"),
				},
			},
		})
		if err != nil {
			return err
		}
		srv01, err := instance.NewServer(ctx, "srv01", &instance.ServerArgs{
			Name:            pulumi.String("my-server"),
			Type:            pulumi.String("PLAY2-NANO"),
			Image:           pulumi.String("ubuntu_jammy"),
			SecurityGroupId: sg01.ID(),
		})
		if err != nil {
			return err
		}
		pn01, err := network.NewPrivateNetwork(ctx, "pn01", &network.PrivateNetworkArgs{
			Name: pulumi.String("my-pn"),
		})
		if err != nil {
			return err
		}
		pnic01, err := instance.NewPrivateNic(ctx, "pnic01", &instance.PrivateNicArgs{
			ServerId:         srv01.ID(),
			PrivateNetworkId: pn01.ID(),
		})
		if err != nil {
			return err
		}
		dhcp01, err := network.NewPublicGatewayDhcp(ctx, "dhcp01", &network.PublicGatewayDhcpArgs{
			Subnet: pulumi.String("192.168.0.0/24"),
		})
		if err != nil {
			return err
		}
		ip01, err := network.NewPublicGatewayIp(ctx, "ip01", nil)
		if err != nil {
			return err
		}
		pg01, err := network.NewPublicGateway(ctx, "pg01", &network.PublicGatewayArgs{
			Name: pulumi.String("my-pg"),
			Type: pulumi.String("VPC-GW-S"),
			IpId: ip01.ID(),
		})
		if err != nil {
			return err
		}
		gn01, err := network.NewGatewayNetwork(ctx, "gn01", &network.GatewayNetworkArgs{
			GatewayId:        pg01.ID(),
			PrivateNetworkId: pn01.ID(),
			DhcpId:           dhcp01.ID(),
			CleanupDhcp:      pulumi.Bool(true),
			EnableMasquerade: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		rsv01, err := network.NewPublicGatewayDhcpReservation(ctx, "rsv01", &network.PublicGatewayDhcpReservationArgs{
			GatewayNetworkId: gn01.ID(),
			MacAddress:       pnic01.MacAddress,
			IpAddress:        pulumi.String("192.168.0.7"),
		})
		if err != nil {
			return err
		}
		// PAT rule for SSH traffic
		_, err = network.NewPublicGatewayPatRule(ctx, "pat01", &network.PublicGatewayPatRuleArgs{
			GatewayId:   pg01.ID(),
			PrivateIp:   rsv01.IpAddress,
			PrivatePort: pulumi.Int(22),
			PublicPort:  pulumi.Int(2202),
			Protocol:    pulumi.String("tcp"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var sg01 = new Scaleway.Instance.SecurityGroup("sg01", new()
    {
        InboundDefaultPolicy = "drop",
        OutboundDefaultPolicy = "accept",
        InboundRules = new[]
        {
            new Scaleway.Instance.Inputs.SecurityGroupInboundRuleArgs
            {
                Action = "accept",
                Port = 22,
                Protocol = "TCP",
            },
        },
    });

    var srv01 = new Scaleway.Instance.Server("srv01", new()
    {
        Name = "my-server",
        Type = "PLAY2-NANO",
        Image = "ubuntu_jammy",
        SecurityGroupId = sg01.Id,
    });

    var pn01 = new Scaleway.Network.PrivateNetwork("pn01", new()
    {
        Name = "my-pn",
    });

    var pnic01 = new Scaleway.Instance.PrivateNic("pnic01", new()
    {
        ServerId = srv01.Id,
        PrivateNetworkId = pn01.Id,
    });

    var dhcp01 = new Scaleway.Network.PublicGatewayDhcp("dhcp01", new()
    {
        Subnet = "192.168.0.0/24",
    });

    var ip01 = new Scaleway.Network.PublicGatewayIp("ip01");

    var pg01 = new Scaleway.Network.PublicGateway("pg01", new()
    {
        Name = "my-pg",
        Type = "VPC-GW-S",
        IpId = ip01.Id,
    });

    var gn01 = new Scaleway.Network.GatewayNetwork("gn01", new()
    {
        GatewayId = pg01.Id,
        PrivateNetworkId = pn01.Id,
        DhcpId = dhcp01.Id,
        CleanupDhcp = true,
        EnableMasquerade = true,
    });

    var rsv01 = new Scaleway.Network.PublicGatewayDhcpReservation("rsv01", new()
    {
        GatewayNetworkId = gn01.Id,
        MacAddress = pnic01.MacAddress,
        IpAddress = "192.168.0.7",
    });

    // PAT rule for SSH traffic
    var pat01 = new Scaleway.Network.PublicGatewayPatRule("pat01", new()
    {
        GatewayId = pg01.Id,
        PrivateIp = rsv01.IpAddress,
        PrivatePort = 22,
        PublicPort = 2202,
        Protocol = "tcp",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.instance.SecurityGroup;
import com.pulumi.scaleway.instance.SecurityGroupArgs;
import com.pulumi.scaleway.instance.inputs.SecurityGroupInboundRuleArgs;
import com.pulumi.scaleway.instance.Server;
import com.pulumi.scaleway.instance.ServerArgs;
import com.pulumi.scaleway.network.PrivateNetwork;
import com.pulumi.scaleway.network.PrivateNetworkArgs;
import com.pulumi.scaleway.instance.PrivateNic;
import com.pulumi.scaleway.instance.PrivateNicArgs;
import com.pulumi.scaleway.network.PublicGatewayDhcp;
import com.pulumi.scaleway.network.PublicGatewayDhcpArgs;
import com.pulumi.scaleway.network.PublicGatewayIp;
import com.pulumi.scaleway.network.PublicGateway;
import com.pulumi.scaleway.network.PublicGatewayArgs;
import com.pulumi.scaleway.network.GatewayNetwork;
import com.pulumi.scaleway.network.GatewayNetworkArgs;
import com.pulumi.scaleway.network.PublicGatewayDhcpReservation;
import com.pulumi.scaleway.network.PublicGatewayDhcpReservationArgs;
import com.pulumi.scaleway.network.PublicGatewayPatRule;
import com.pulumi.scaleway.network.PublicGatewayPatRuleArgs;
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 sg01 = new SecurityGroup("sg01", SecurityGroupArgs.builder()
            .inboundDefaultPolicy("drop")
            .outboundDefaultPolicy("accept")
            .inboundRules(SecurityGroupInboundRuleArgs.builder()
                .action("accept")
                .port(22)
                .protocol("TCP")
                .build())
            .build());

        var srv01 = new Server("srv01", ServerArgs.builder()
            .name("my-server")
            .type("PLAY2-NANO")
            .image("ubuntu_jammy")
            .securityGroupId(sg01.id())
            .build());

        var pn01 = new PrivateNetwork("pn01", PrivateNetworkArgs.builder()
            .name("my-pn")
            .build());

        var pnic01 = new PrivateNic("pnic01", PrivateNicArgs.builder()
            .serverId(srv01.id())
            .privateNetworkId(pn01.id())
            .build());

        var dhcp01 = new PublicGatewayDhcp("dhcp01", PublicGatewayDhcpArgs.builder()
            .subnet("192.168.0.0/24")
            .build());

        var ip01 = new PublicGatewayIp("ip01");

        var pg01 = new PublicGateway("pg01", PublicGatewayArgs.builder()
            .name("my-pg")
            .type("VPC-GW-S")
            .ipId(ip01.id())
            .build());

        var gn01 = new GatewayNetwork("gn01", GatewayNetworkArgs.builder()
            .gatewayId(pg01.id())
            .privateNetworkId(pn01.id())
            .dhcpId(dhcp01.id())
            .cleanupDhcp(true)
            .enableMasquerade(true)
            .build());

        var rsv01 = new PublicGatewayDhcpReservation("rsv01", PublicGatewayDhcpReservationArgs.builder()
            .gatewayNetworkId(gn01.id())
            .macAddress(pnic01.macAddress())
            .ipAddress("192.168.0.7")
            .build());

        // PAT rule for SSH traffic
        var pat01 = new PublicGatewayPatRule("pat01", PublicGatewayPatRuleArgs.builder()
            .gatewayId(pg01.id())
            .privateIp(rsv01.ipAddress())
            .privatePort(22)
            .publicPort(2202)
            .protocol("tcp")
            .build());

    }
}
Copy
resources:
  sg01:
    type: scaleway:instance:SecurityGroup
    properties:
      inboundDefaultPolicy: drop
      outboundDefaultPolicy: accept
      inboundRules:
        - action: accept
          port: 22
          protocol: TCP
  srv01:
    type: scaleway:instance:Server
    properties:
      name: my-server
      type: PLAY2-NANO
      image: ubuntu_jammy
      securityGroupId: ${sg01.id}
  pnic01:
    type: scaleway:instance:PrivateNic
    properties:
      serverId: ${srv01.id}
      privateNetworkId: ${pn01.id}
  pn01:
    type: scaleway:network:PrivateNetwork
    properties:
      name: my-pn
  dhcp01:
    type: scaleway:network:PublicGatewayDhcp
    properties:
      subnet: 192.168.0.0/24
  ip01:
    type: scaleway:network:PublicGatewayIp
  pg01:
    type: scaleway:network:PublicGateway
    properties:
      name: my-pg
      type: VPC-GW-S
      ipId: ${ip01.id}
  gn01:
    type: scaleway:network:GatewayNetwork
    properties:
      gatewayId: ${pg01.id}
      privateNetworkId: ${pn01.id}
      dhcpId: ${dhcp01.id}
      cleanupDhcp: true
      enableMasquerade: true
  rsv01:
    type: scaleway:network:PublicGatewayDhcpReservation
    properties:
      gatewayNetworkId: ${gn01.id}
      macAddress: ${pnic01.macAddress}
      ipAddress: 192.168.0.7
  # PAT rule for SSH traffic
  pat01:
    type: scaleway:network:PublicGatewayPatRule
    properties:
      gatewayId: ${pg01.id}
      privateIp: ${rsv01.ipAddress}
      privatePort: 22
      publicPort: 2202
      protocol: tcp
Copy

Create VpcPublicGatewayPatRule Resource

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

Constructor syntax

new VpcPublicGatewayPatRule(name: string, args: VpcPublicGatewayPatRuleArgs, opts?: CustomResourceOptions);
@overload
def VpcPublicGatewayPatRule(resource_name: str,
                            args: VpcPublicGatewayPatRuleArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def VpcPublicGatewayPatRule(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            gateway_id: Optional[str] = None,
                            private_ip: Optional[str] = None,
                            private_port: Optional[int] = None,
                            protocol: Optional[str] = None,
                            public_port: Optional[int] = None,
                            zone: Optional[str] = None)
func NewVpcPublicGatewayPatRule(ctx *Context, name string, args VpcPublicGatewayPatRuleArgs, opts ...ResourceOption) (*VpcPublicGatewayPatRule, error)
public VpcPublicGatewayPatRule(string name, VpcPublicGatewayPatRuleArgs args, CustomResourceOptions? opts = null)
public VpcPublicGatewayPatRule(String name, VpcPublicGatewayPatRuleArgs args)
public VpcPublicGatewayPatRule(String name, VpcPublicGatewayPatRuleArgs args, CustomResourceOptions options)
type: scaleway:VpcPublicGatewayPatRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

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

GatewayId This property is required. string
The ID of the Public Gateway.
PrivateIp This property is required. string
The private IP address to forward data to.
PrivatePort This property is required. int
The private port to translate to.
PublicPort This property is required. int
The public port to listen on.
Protocol string
The protocol the rule should apply to. Possible values are both, tcp and udp.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway DHCP configuration should be created.
GatewayId This property is required. string
The ID of the Public Gateway.
PrivateIp This property is required. string
The private IP address to forward data to.
PrivatePort This property is required. int
The private port to translate to.
PublicPort This property is required. int
The public port to listen on.
Protocol string
The protocol the rule should apply to. Possible values are both, tcp and udp.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway DHCP configuration should be created.
gatewayId This property is required. String
The ID of the Public Gateway.
privateIp This property is required. String
The private IP address to forward data to.
privatePort This property is required. Integer
The private port to translate to.
publicPort This property is required. Integer
The public port to listen on.
protocol String
The protocol the rule should apply to. Possible values are both, tcp and udp.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway DHCP configuration should be created.
gatewayId This property is required. string
The ID of the Public Gateway.
privateIp This property is required. string
The private IP address to forward data to.
privatePort This property is required. number
The private port to translate to.
publicPort This property is required. number
The public port to listen on.
protocol string
The protocol the rule should apply to. Possible values are both, tcp and udp.
zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway DHCP configuration should be created.
gateway_id This property is required. str
The ID of the Public Gateway.
private_ip This property is required. str
The private IP address to forward data to.
private_port This property is required. int
The private port to translate to.
public_port This property is required. int
The public port to listen on.
protocol str
The protocol the rule should apply to. Possible values are both, tcp and udp.
zone Changes to this property will trigger replacement. str
zone) The zone in which the Public Gateway DHCP configuration should be created.
gatewayId This property is required. String
The ID of the Public Gateway.
privateIp This property is required. String
The private IP address to forward data to.
privatePort This property is required. Number
The private port to translate to.
publicPort This property is required. Number
The public port to listen on.
protocol String
The protocol the rule should apply to. Possible values are both, tcp and udp.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway DHCP configuration should be created.

Outputs

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

CreatedAt string
The date and time of the creation of the PAT rule configuration.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The Organization ID the PAT rule configuration is associated with.
UpdatedAt string
The date and time of the last update of the PAT rule configuration.
CreatedAt string
The date and time of the creation of the PAT rule configuration.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The Organization ID the PAT rule configuration is associated with.
UpdatedAt string
The date and time of the last update of the PAT rule configuration.
createdAt String
The date and time of the creation of the PAT rule configuration.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The Organization ID the PAT rule configuration is associated with.
updatedAt String
The date and time of the last update of the PAT rule configuration.
createdAt string
The date and time of the creation of the PAT rule configuration.
id string
The provider-assigned unique ID for this managed resource.
organizationId string
The Organization ID the PAT rule configuration is associated with.
updatedAt string
The date and time of the last update of the PAT rule configuration.
created_at str
The date and time of the creation of the PAT rule configuration.
id str
The provider-assigned unique ID for this managed resource.
organization_id str
The Organization ID the PAT rule configuration is associated with.
updated_at str
The date and time of the last update of the PAT rule configuration.
createdAt String
The date and time of the creation of the PAT rule configuration.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The Organization ID the PAT rule configuration is associated with.
updatedAt String
The date and time of the last update of the PAT rule configuration.

Look up Existing VpcPublicGatewayPatRule Resource

Get an existing VpcPublicGatewayPatRule 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?: VpcPublicGatewayPatRuleState, opts?: CustomResourceOptions): VpcPublicGatewayPatRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        gateway_id: Optional[str] = None,
        organization_id: Optional[str] = None,
        private_ip: Optional[str] = None,
        private_port: Optional[int] = None,
        protocol: Optional[str] = None,
        public_port: Optional[int] = None,
        updated_at: Optional[str] = None,
        zone: Optional[str] = None) -> VpcPublicGatewayPatRule
func GetVpcPublicGatewayPatRule(ctx *Context, name string, id IDInput, state *VpcPublicGatewayPatRuleState, opts ...ResourceOption) (*VpcPublicGatewayPatRule, error)
public static VpcPublicGatewayPatRule Get(string name, Input<string> id, VpcPublicGatewayPatRuleState? state, CustomResourceOptions? opts = null)
public static VpcPublicGatewayPatRule get(String name, Output<String> id, VpcPublicGatewayPatRuleState state, CustomResourceOptions options)
resources:  _:    type: scaleway:VpcPublicGatewayPatRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
The date and time of the creation of the PAT rule configuration.
GatewayId string
The ID of the Public Gateway.
OrganizationId string
The Organization ID the PAT rule configuration is associated with.
PrivateIp string
The private IP address to forward data to.
PrivatePort int
The private port to translate to.
Protocol string
The protocol the rule should apply to. Possible values are both, tcp and udp.
PublicPort int
The public port to listen on.
UpdatedAt string
The date and time of the last update of the PAT rule configuration.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway DHCP configuration should be created.
CreatedAt string
The date and time of the creation of the PAT rule configuration.
GatewayId string
The ID of the Public Gateway.
OrganizationId string
The Organization ID the PAT rule configuration is associated with.
PrivateIp string
The private IP address to forward data to.
PrivatePort int
The private port to translate to.
Protocol string
The protocol the rule should apply to. Possible values are both, tcp and udp.
PublicPort int
The public port to listen on.
UpdatedAt string
The date and time of the last update of the PAT rule configuration.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway DHCP configuration should be created.
createdAt String
The date and time of the creation of the PAT rule configuration.
gatewayId String
The ID of the Public Gateway.
organizationId String
The Organization ID the PAT rule configuration is associated with.
privateIp String
The private IP address to forward data to.
privatePort Integer
The private port to translate to.
protocol String
The protocol the rule should apply to. Possible values are both, tcp and udp.
publicPort Integer
The public port to listen on.
updatedAt String
The date and time of the last update of the PAT rule configuration.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway DHCP configuration should be created.
createdAt string
The date and time of the creation of the PAT rule configuration.
gatewayId string
The ID of the Public Gateway.
organizationId string
The Organization ID the PAT rule configuration is associated with.
privateIp string
The private IP address to forward data to.
privatePort number
The private port to translate to.
protocol string
The protocol the rule should apply to. Possible values are both, tcp and udp.
publicPort number
The public port to listen on.
updatedAt string
The date and time of the last update of the PAT rule configuration.
zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway DHCP configuration should be created.
created_at str
The date and time of the creation of the PAT rule configuration.
gateway_id str
The ID of the Public Gateway.
organization_id str
The Organization ID the PAT rule configuration is associated with.
private_ip str
The private IP address to forward data to.
private_port int
The private port to translate to.
protocol str
The protocol the rule should apply to. Possible values are both, tcp and udp.
public_port int
The public port to listen on.
updated_at str
The date and time of the last update of the PAT rule configuration.
zone Changes to this property will trigger replacement. str
zone) The zone in which the Public Gateway DHCP configuration should be created.
createdAt String
The date and time of the creation of the PAT rule configuration.
gatewayId String
The ID of the Public Gateway.
organizationId String
The Organization ID the PAT rule configuration is associated with.
privateIp String
The private IP address to forward data to.
privatePort Number
The private port to translate to.
protocol String
The protocol the rule should apply to. Possible values are both, tcp and udp.
publicPort Number
The public port to listen on.
updatedAt String
The date and time of the last update of the PAT rule configuration.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway DHCP configuration should be created.

Import

Public Gateway PAT rule configurations can be imported using {zone}/{id}, e.g.

bash

$ pulumi import scaleway:index/vpcPublicGatewayPatRule:VpcPublicGatewayPatRule main fr-par-1/11111111-1111-1111-1111-111111111111
Copy

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

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.