1. Packages
  2. Scaleway
  3. API Docs
  4. VpcPublicGatewayIp
Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse

scaleway.VpcPublicGatewayIp

Explore with Pulumi AI

Deprecated: scaleway.index/vpcpublicgatewayip.VpcPublicGatewayIp has been deprecated in favor of scaleway.network/publicgatewayip.PublicGatewayIp

Creates and manages Scaleway VPC Public Gateway public (flexible) IP addresses. For more information, see the API documentation.

Example Usage

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

const main = new scaleway.network.PublicGatewayIp("main", {reverse: "tf.example.com"});
const tfA = new scaleway.domain.Record("tf_A", {
    dnsZone: "example.com",
    name: "tf",
    type: "A",
    data: main.address,
    ttl: 3600,
    priority: 1,
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.network.PublicGatewayIp("main", reverse="tf.example.com")
tf_a = scaleway.domain.Record("tf_A",
    dns_zone="example.com",
    name="tf",
    type="A",
    data=main.address,
    ttl=3600,
    priority=1)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := network.NewPublicGatewayIp(ctx, "main", &network.PublicGatewayIpArgs{
			Reverse: pulumi.String("tf.example.com"),
		})
		if err != nil {
			return err
		}
		_, err = domain.NewRecord(ctx, "tf_A", &domain.RecordArgs{
			DnsZone:  pulumi.String("example.com"),
			Name:     pulumi.String("tf"),
			Type:     pulumi.String("A"),
			Data:     main.Address,
			Ttl:      pulumi.Int(3600),
			Priority: pulumi.Int(1),
		})
		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 main = new Scaleway.Network.PublicGatewayIp("main", new()
    {
        Reverse = "tf.example.com",
    });

    var tfA = new Scaleway.Domain.Record("tf_A", new()
    {
        DnsZone = "example.com",
        Name = "tf",
        Type = "A",
        Data = main.Address,
        Ttl = 3600,
        Priority = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.PublicGatewayIp;
import com.pulumi.scaleway.network.PublicGatewayIpArgs;
import com.pulumi.scaleway.domain.Record;
import com.pulumi.scaleway.domain.RecordArgs;
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 main = new PublicGatewayIp("main", PublicGatewayIpArgs.builder()
            .reverse("tf.example.com")
            .build());

        var tfA = new Record("tfA", RecordArgs.builder()
            .dnsZone("example.com")
            .name("tf")
            .type("A")
            .data(main.address())
            .ttl(3600)
            .priority(1)
            .build());

    }
}
Copy
resources:
  tfA:
    type: scaleway:domain:Record
    name: tf_A
    properties:
      dnsZone: example.com
      name: tf
      type: A
      data: ${main.address}
      ttl: 3600
      priority: 1
  main:
    type: scaleway:network:PublicGatewayIp
    properties:
      reverse: tf.example.com
Copy

Create VpcPublicGatewayIp Resource

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

Constructor syntax

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

@overload
def VpcPublicGatewayIp(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       project_id: Optional[str] = None,
                       reverse: Optional[str] = None,
                       tags: Optional[Sequence[str]] = None,
                       zone: Optional[str] = None)
func NewVpcPublicGatewayIp(ctx *Context, name string, args *VpcPublicGatewayIpArgs, opts ...ResourceOption) (*VpcPublicGatewayIp, error)
public VpcPublicGatewayIp(string name, VpcPublicGatewayIpArgs? args = null, CustomResourceOptions? opts = null)
public VpcPublicGatewayIp(String name, VpcPublicGatewayIpArgs args)
public VpcPublicGatewayIp(String name, VpcPublicGatewayIpArgs args, CustomResourceOptions options)
type: scaleway:VpcPublicGatewayIp
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 VpcPublicGatewayIpArgs
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 VpcPublicGatewayIpArgs
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 VpcPublicGatewayIpArgs
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 VpcPublicGatewayIpArgs
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. VpcPublicGatewayIpArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the Public Gateway IP is associated with.
Reverse string
The reverse domain name for the IP address
Tags List<string>
The tags associated with the Public Gateway IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway IP should be created.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the Public Gateway IP is associated with.
Reverse string
The reverse domain name for the IP address
Tags []string
The tags associated with the Public Gateway IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway IP should be created.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse String
The reverse domain name for the IP address
tags List<String>
The tags associated with the Public Gateway IP.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway IP should be created.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse string
The reverse domain name for the IP address
tags string[]
The tags associated with the Public Gateway IP.
zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway IP should be created.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse str
The reverse domain name for the IP address
tags Sequence[str]
The tags associated with the Public Gateway IP.
zone Changes to this property will trigger replacement. str
zone) The zone in which the Public Gateway IP should be created.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse String
The reverse domain name for the IP address
tags List<String>
The tags associated with the Public Gateway IP.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway IP should be created.

Outputs

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

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

Look up Existing VpcPublicGatewayIp Resource

Get an existing VpcPublicGatewayIp 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?: VpcPublicGatewayIpState, opts?: CustomResourceOptions): VpcPublicGatewayIp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        created_at: Optional[str] = None,
        organization_id: Optional[str] = None,
        project_id: Optional[str] = None,
        reverse: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        updated_at: Optional[str] = None,
        zone: Optional[str] = None) -> VpcPublicGatewayIp
func GetVpcPublicGatewayIp(ctx *Context, name string, id IDInput, state *VpcPublicGatewayIpState, opts ...ResourceOption) (*VpcPublicGatewayIp, error)
public static VpcPublicGatewayIp Get(string name, Input<string> id, VpcPublicGatewayIpState? state, CustomResourceOptions? opts = null)
public static VpcPublicGatewayIp get(String name, Output<String> id, VpcPublicGatewayIpState state, CustomResourceOptions options)
resources:  _:    type: scaleway:VpcPublicGatewayIp    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:
Address string
The IP address itself.
CreatedAt string
The date and time of the creation of the Public Gateway IP.
OrganizationId string
The Organization ID the Public Gateway IP is associated with.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the Public Gateway IP is associated with.
Reverse string
The reverse domain name for the IP address
Tags List<string>
The tags associated with the Public Gateway IP.
UpdatedAt string
The date and time of the last update of the Public Gateway IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway IP should be created.
Address string
The IP address itself.
CreatedAt string
The date and time of the creation of the Public Gateway IP.
OrganizationId string
The Organization ID the Public Gateway IP is associated with.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the Public Gateway IP is associated with.
Reverse string
The reverse domain name for the IP address
Tags []string
The tags associated with the Public Gateway IP.
UpdatedAt string
The date and time of the last update of the Public Gateway IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway IP should be created.
address String
The IP address itself.
createdAt String
The date and time of the creation of the Public Gateway IP.
organizationId String
The Organization ID the Public Gateway IP is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse String
The reverse domain name for the IP address
tags List<String>
The tags associated with the Public Gateway IP.
updatedAt String
The date and time of the last update of the Public Gateway IP.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway IP should be created.
address string
The IP address itself.
createdAt string
The date and time of the creation of the Public Gateway IP.
organizationId string
The Organization ID the Public Gateway IP is associated with.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse string
The reverse domain name for the IP address
tags string[]
The tags associated with the Public Gateway IP.
updatedAt string
The date and time of the last update of the Public Gateway IP.
zone Changes to this property will trigger replacement. string
zone) The zone in which the Public Gateway IP should be created.
address str
The IP address itself.
created_at str
The date and time of the creation of the Public Gateway IP.
organization_id str
The Organization ID the Public Gateway IP is associated with.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse str
The reverse domain name for the IP address
tags Sequence[str]
The tags associated with the Public Gateway IP.
updated_at str
The date and time of the last update of the Public Gateway IP.
zone Changes to this property will trigger replacement. str
zone) The zone in which the Public Gateway IP should be created.
address String
The IP address itself.
createdAt String
The date and time of the creation of the Public Gateway IP.
organizationId String
The Organization ID the Public Gateway IP is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the Public Gateway IP is associated with.
reverse String
The reverse domain name for the IP address
tags List<String>
The tags associated with the Public Gateway IP.
updatedAt String
The date and time of the last update of the Public Gateway IP.
zone Changes to this property will trigger replacement. String
zone) The zone in which the Public Gateway IP should be created.

Import

Public Gateway IPs can be imported using {zone}/{id}, e.g.

bash

$ pulumi import scaleway:index/vpcPublicGatewayIp:VpcPublicGatewayIp 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.