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

scaleway.instance.IpReverseDns

Explore with Pulumi AI

Manages Scaleway compute Instance IPs Reverse DNS.

Please check our guide for more details

Example Usage

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

const serverIp = new scaleway.instance.Ip("server_ip", {});
const tfA = new scaleway.domain.Record("tf_A", {
    dnsZone: "scaleway.com",
    name: "www",
    type: "A",
    data: serverIp.address,
    ttl: 3600,
    priority: 1,
});
const reverse = new scaleway.instance.IpReverseDns("reverse", {
    ipId: serverIp.id,
    reverse: "www.scaleway.com",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

server_ip = scaleway.instance.Ip("server_ip")
tf_a = scaleway.domain.Record("tf_A",
    dns_zone="scaleway.com",
    name="www",
    type="A",
    data=server_ip.address,
    ttl=3600,
    priority=1)
reverse = scaleway.instance.IpReverseDns("reverse",
    ip_id=server_ip.id,
    reverse="www.scaleway.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/instance"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		serverIp, err := instance.NewIp(ctx, "server_ip", nil)
		if err != nil {
			return err
		}
		_, err = domain.NewRecord(ctx, "tf_A", &domain.RecordArgs{
			DnsZone:  pulumi.String("scaleway.com"),
			Name:     pulumi.String("www"),
			Type:     pulumi.String("A"),
			Data:     serverIp.Address,
			Ttl:      pulumi.Int(3600),
			Priority: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		_, err = instance.NewIpReverseDns(ctx, "reverse", &instance.IpReverseDnsArgs{
			IpId:    serverIp.ID(),
			Reverse: pulumi.String("www.scaleway.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 serverIp = new Scaleway.Instance.Ip("server_ip");

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

    var reverse = new Scaleway.Instance.IpReverseDns("reverse", new()
    {
        IpId = serverIp.Id,
        Reverse = "www.scaleway.com",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.instance.Ip;
import com.pulumi.scaleway.domain.Record;
import com.pulumi.scaleway.domain.RecordArgs;
import com.pulumi.scaleway.instance.IpReverseDns;
import com.pulumi.scaleway.instance.IpReverseDnsArgs;
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 serverIp = new Ip("serverIp");

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

        var reverse = new IpReverseDns("reverse", IpReverseDnsArgs.builder()
            .ipId(serverIp.id())
            .reverse("www.scaleway.com")
            .build());

    }
}
Copy
resources:
  serverIp:
    type: scaleway:instance:Ip
    name: server_ip
  tfA:
    type: scaleway:domain:Record
    name: tf_A
    properties:
      dnsZone: scaleway.com
      name: www
      type: A
      data: ${serverIp.address}
      ttl: 3600
      priority: 1
  reverse:
    type: scaleway:instance:IpReverseDns
    properties:
      ipId: ${serverIp.id}
      reverse: www.scaleway.com
Copy

Create IpReverseDns Resource

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

Constructor syntax

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

@overload
def IpReverseDns(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 ip_id: Optional[str] = None,
                 reverse: Optional[str] = None,
                 zone: Optional[str] = None)
func NewIpReverseDns(ctx *Context, name string, args IpReverseDnsArgs, opts ...ResourceOption) (*IpReverseDns, error)
public IpReverseDns(string name, IpReverseDnsArgs args, CustomResourceOptions? opts = null)
public IpReverseDns(String name, IpReverseDnsArgs args)
public IpReverseDns(String name, IpReverseDnsArgs args, CustomResourceOptions options)
type: scaleway:instance:IpReverseDns
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. IpReverseDnsArgs
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. IpReverseDnsArgs
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. IpReverseDnsArgs
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. IpReverseDnsArgs
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. IpReverseDnsArgs
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 ipReverseDnsResource = new Scaleway.Instance.IpReverseDns("ipReverseDnsResource", new()
{
    IpId = "string",
    Reverse = "string",
    Zone = "string",
});
Copy
example, err := instance.NewIpReverseDns(ctx, "ipReverseDnsResource", &instance.IpReverseDnsArgs{
	IpId:    pulumi.String("string"),
	Reverse: pulumi.String("string"),
	Zone:    pulumi.String("string"),
})
Copy
var ipReverseDnsResource = new IpReverseDns("ipReverseDnsResource", IpReverseDnsArgs.builder()
    .ipId("string")
    .reverse("string")
    .zone("string")
    .build());
Copy
ip_reverse_dns_resource = scaleway.instance.IpReverseDns("ipReverseDnsResource",
    ip_id="string",
    reverse="string",
    zone="string")
Copy
const ipReverseDnsResource = new scaleway.instance.IpReverseDns("ipReverseDnsResource", {
    ipId: "string",
    reverse: "string",
    zone: "string",
});
Copy
type: scaleway:instance:IpReverseDns
properties:
    ipId: string
    reverse: string
    zone: string
Copy

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

IpId This property is required. string
The IP ID
Reverse This property is required. string
The reverse DNS for this IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
IpId This property is required. string
The IP ID
Reverse This property is required. string
The reverse DNS for this IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
ipId This property is required. String
The IP ID
reverse This property is required. String
The reverse DNS for this IP.
zone Changes to this property will trigger replacement. String
zone) The zone in which the IP should be reserved.
ipId This property is required. string
The IP ID
reverse This property is required. string
The reverse DNS for this IP.
zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
ip_id This property is required. str
The IP ID
reverse This property is required. str
The reverse DNS for this IP.
zone Changes to this property will trigger replacement. str
zone) The zone in which the IP should be reserved.
ipId This property is required. String
The IP ID
reverse This property is required. String
The reverse DNS for this IP.
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 IpReverseDns 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 IpReverseDns Resource

Get an existing IpReverseDns 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?: IpReverseDnsState, opts?: CustomResourceOptions): IpReverseDns
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ip_id: Optional[str] = None,
        reverse: Optional[str] = None,
        zone: Optional[str] = None) -> IpReverseDns
func GetIpReverseDns(ctx *Context, name string, id IDInput, state *IpReverseDnsState, opts ...ResourceOption) (*IpReverseDns, error)
public static IpReverseDns Get(string name, Input<string> id, IpReverseDnsState? state, CustomResourceOptions? opts = null)
public static IpReverseDns get(String name, Output<String> id, IpReverseDnsState state, CustomResourceOptions options)
resources:  _:    type: scaleway:instance:IpReverseDns    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:
IpId string
The IP ID
Reverse string
The reverse DNS for this IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
IpId string
The IP ID
Reverse string
The reverse DNS for this IP.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
ipId String
The IP ID
reverse String
The reverse DNS for this IP.
zone Changes to this property will trigger replacement. String
zone) The zone in which the IP should be reserved.
ipId string
The IP ID
reverse string
The reverse DNS for this IP.
zone Changes to this property will trigger replacement. string
zone) The zone in which the IP should be reserved.
ip_id str
The IP ID
reverse str
The reverse DNS for this IP.
zone Changes to this property will trigger replacement. str
zone) The zone in which the IP should be reserved.
ipId String
The IP ID
reverse String
The reverse DNS for this IP.
zone Changes to this property will trigger replacement. String
zone) The zone in which the IP should be reserved.

Import

IPs reverse DNS can be imported using the {zone}/{id}, e.g.

bash

$ pulumi import scaleway:instance/ipReverseDns:IpReverseDns 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.