1. Packages
  2. Scaleway
  3. API Docs
  4. network
  5. PublicGatewayIpReverseDns
Scaleway v1.27.0 published on Monday, Apr 21, 2025 by pulumiverse

scaleway.network.PublicGatewayIpReverseDns

Explore with Pulumi AI

Manages Scaleway Public Gateway public (flexible) IPs’ reverse DNS. 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", {});
const tfA = new scaleway.domain.Record("tf_A", {
    dnsZone: "example.com",
    name: "tf",
    type: "A",
    data: main.address,
    ttl: 3600,
    priority: 1,
});
const mainPublicGatewayIpReverseDns = new scaleway.network.PublicGatewayIpReverseDns("main", {
    gatewayIpId: main.id,
    reverse: "tf.example.com",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.network.PublicGatewayIp("main")
tf_a = scaleway.domain.Record("tf_A",
    dns_zone="example.com",
    name="tf",
    type="A",
    data=main.address,
    ttl=3600,
    priority=1)
main_public_gateway_ip_reverse_dns = scaleway.network.PublicGatewayIpReverseDns("main",
    gateway_ip_id=main.id,
    reverse="tf.example.com")
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", nil)
		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
		}
		_, err = network.NewPublicGatewayIpReverseDns(ctx, "main", &network.PublicGatewayIpReverseDnsArgs{
			GatewayIpId: main.ID(),
			Reverse:     pulumi.String("tf.example.com"),
		})
		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");

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

    var mainPublicGatewayIpReverseDns = new Scaleway.Network.PublicGatewayIpReverseDns("main", new()
    {
        GatewayIpId = main.Id,
        Reverse = "tf.example.com",
    });

});
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.domain.Record;
import com.pulumi.scaleway.domain.RecordArgs;
import com.pulumi.scaleway.network.PublicGatewayIpReverseDns;
import com.pulumi.scaleway.network.PublicGatewayIpReverseDnsArgs;
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");

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

        var mainPublicGatewayIpReverseDns = new PublicGatewayIpReverseDns("mainPublicGatewayIpReverseDns", PublicGatewayIpReverseDnsArgs.builder()
            .gatewayIpId(main.id())
            .reverse("tf.example.com")
            .build());

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

Create PublicGatewayIpReverseDns Resource

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

Constructor syntax

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

@overload
def PublicGatewayIpReverseDns(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              gateway_ip_id: Optional[str] = None,
                              reverse: Optional[str] = None,
                              zone: Optional[str] = None)
func NewPublicGatewayIpReverseDns(ctx *Context, name string, args PublicGatewayIpReverseDnsArgs, opts ...ResourceOption) (*PublicGatewayIpReverseDns, error)
public PublicGatewayIpReverseDns(string name, PublicGatewayIpReverseDnsArgs args, CustomResourceOptions? opts = null)
public PublicGatewayIpReverseDns(String name, PublicGatewayIpReverseDnsArgs args)
public PublicGatewayIpReverseDns(String name, PublicGatewayIpReverseDnsArgs args, CustomResourceOptions options)
type: scaleway:network:PublicGatewayIpReverseDns
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. PublicGatewayIpReverseDnsArgs
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. PublicGatewayIpReverseDnsArgs
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. PublicGatewayIpReverseDnsArgs
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. PublicGatewayIpReverseDnsArgs
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. PublicGatewayIpReverseDnsArgs
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 publicGatewayIpReverseDnsResource = new Scaleway.Network.PublicGatewayIpReverseDns("publicGatewayIpReverseDnsResource", new()
{
    GatewayIpId = "string",
    Reverse = "string",
    Zone = "string",
});
Copy
example, err := network.NewPublicGatewayIpReverseDns(ctx, "publicGatewayIpReverseDnsResource", &network.PublicGatewayIpReverseDnsArgs{
	GatewayIpId: pulumi.String("string"),
	Reverse:     pulumi.String("string"),
	Zone:        pulumi.String("string"),
})
Copy
var publicGatewayIpReverseDnsResource = new PublicGatewayIpReverseDns("publicGatewayIpReverseDnsResource", PublicGatewayIpReverseDnsArgs.builder()
    .gatewayIpId("string")
    .reverse("string")
    .zone("string")
    .build());
Copy
public_gateway_ip_reverse_dns_resource = scaleway.network.PublicGatewayIpReverseDns("publicGatewayIpReverseDnsResource",
    gateway_ip_id="string",
    reverse="string",
    zone="string")
Copy
const publicGatewayIpReverseDnsResource = new scaleway.network.PublicGatewayIpReverseDns("publicGatewayIpReverseDnsResource", {
    gatewayIpId: "string",
    reverse: "string",
    zone: "string",
});
Copy
type: scaleway:network:PublicGatewayIpReverseDns
properties:
    gatewayIpId: string
    reverse: string
    zone: string
Copy

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

GatewayIpId This property is required. string
The Public Gateway IP ID
Reverse This property is required. string
The reverse domain name for this IP address
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
GatewayIpId This property is required. string
The Public Gateway IP ID
Reverse This property is required. string
The reverse domain name for this IP address
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
gatewayIpId This property is required. String
The Public Gateway IP ID
reverse This property is required. String
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. String
zone) The zone in which the IP should be reserved.
gatewayIpId This property is required. string
The Public Gateway IP ID
reverse This property is required. string
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
gateway_ip_id This property is required. str
The Public Gateway IP ID
reverse This property is required. str
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. str
zone) The zone in which the IP should be reserved.
gatewayIpId This property is required. String
The Public Gateway IP ID
reverse This property is required. String
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. String
zone) The zone in which the IP should be reserved.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing PublicGatewayIpReverseDns Resource

Get an existing PublicGatewayIpReverseDns 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?: PublicGatewayIpReverseDnsState, opts?: CustomResourceOptions): PublicGatewayIpReverseDns
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        gateway_ip_id: Optional[str] = None,
        reverse: Optional[str] = None,
        zone: Optional[str] = None) -> PublicGatewayIpReverseDns
func GetPublicGatewayIpReverseDns(ctx *Context, name string, id IDInput, state *PublicGatewayIpReverseDnsState, opts ...ResourceOption) (*PublicGatewayIpReverseDns, error)
public static PublicGatewayIpReverseDns Get(string name, Input<string> id, PublicGatewayIpReverseDnsState? state, CustomResourceOptions? opts = null)
public static PublicGatewayIpReverseDns get(String name, Output<String> id, PublicGatewayIpReverseDnsState state, CustomResourceOptions options)
resources:  _:    type: scaleway:network:PublicGatewayIpReverseDns    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:
GatewayIpId string
The Public Gateway IP ID
Reverse string
The reverse domain name for this IP address
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
GatewayIpId string
The Public Gateway IP ID
Reverse string
The reverse domain name for this IP address
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
gatewayIpId String
The Public Gateway IP ID
reverse String
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. String
zone) The zone in which the IP should be reserved.
gatewayIpId string
The Public Gateway IP ID
reverse string
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
gateway_ip_id str
The Public Gateway IP ID
reverse str
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. str
zone) The zone in which the IP should be reserved.
gatewayIpId String
The Public Gateway IP ID
reverse String
The reverse domain name for this IP address
zone Changes to this property will trigger replacement. String
zone) The zone in which the IP should be reserved.

Import

Public Gateway IP reverse DNS can be imported using {zone}/{id}, e.g.

bash

$ pulumi import scaleway:network/publicGatewayIpReverseDns:PublicGatewayIpReverseDns reverse 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.