published on Tuesday, Apr 14, 2026 by pulumiverse
published on Tuesday, Apr 14, 2026 by pulumiverse
The scaleway.domain.Zone resource allows you to create and manage Scaleway DNS zones.
Refer to the Domains and DNS product documentation and API documentation for more information.
Example Usage
Create a DNS zone
The following command allows you to create a DNS zone for the test.scaleway-terraform.com subdomain.
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const test = new scaleway.domain.Zone("test", {
domain: "scaleway-terraform.com",
subdomain: "test",
});
import pulumi
import pulumiverse_scaleway as scaleway
test = scaleway.domain.Zone("test",
domain="scaleway-terraform.com",
subdomain="test")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/domain"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := domain.NewZone(ctx, "test", &domain.ZoneArgs{
Domain: pulumi.String("scaleway-terraform.com"),
Subdomain: pulumi.String("test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var test = new Scaleway.Domain.Zone("test", new()
{
Domain = "scaleway-terraform.com",
Subdomain = "test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.domain.Zone;
import com.pulumi.scaleway.domain.ZoneArgs;
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 test = new Zone("test", ZoneArgs.builder()
.domain("scaleway-terraform.com")
.subdomain("test")
.build());
}
}
resources:
test:
type: scaleway:domain:Zone
properties:
domain: scaleway-terraform.com
subdomain: test
Create Zone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Zone(name: string, args: ZoneArgs, opts?: CustomResourceOptions);@overload
def Zone(resource_name: str,
args: ZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Zone(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
subdomain: Optional[str] = None,
project_id: Optional[str] = None)func NewZone(ctx *Context, name string, args ZoneArgs, opts ...ResourceOption) (*Zone, error)public Zone(string name, ZoneArgs args, CustomResourceOptions? opts = null)type: scaleway:domain:Zone
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneArgs
- 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 zoneResource = new Scaleway.Domain.Zone("zoneResource", new()
{
Domain = "string",
Subdomain = "string",
ProjectId = "string",
});
example, err := domain.NewZone(ctx, "zoneResource", &domain.ZoneArgs{
Domain: pulumi.String("string"),
Subdomain: pulumi.String("string"),
ProjectId: pulumi.String("string"),
})
var zoneResource = new Zone("zoneResource", ZoneArgs.builder()
.domain("string")
.subdomain("string")
.projectId("string")
.build());
zone_resource = scaleway.domain.Zone("zoneResource",
domain="string",
subdomain="string",
project_id="string")
const zoneResource = new scaleway.domain.Zone("zoneResource", {
domain: "string",
subdomain: "string",
projectId: "string",
});
type: scaleway:domain:Zone
properties:
domain: string
projectId: string
subdomain: string
Zone 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 Zone resource accepts the following input properties:
- domain str
- The main domain where the DNS zone will be created.
- subdomain str
- The name of the subdomain (zone name) to create within the domain.
- project_
id str projectId) The ID of the Project associated with the domain.
Outputs
All input properties are implicitly available as output properties. Additionally, the Zone resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Message string
- Message.
- Ns List<string>
- The list of same servers for the zone.
- Ns
Defaults List<string> - The default list of same servers for the zone.
- Ns
Masters List<string> - The master list of same servers for the zone.
- Status string
- The status of the domain zone.
- Updated
At string - The date and time at which the DNS zone was last updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Message string
- Message.
- Ns []string
- The list of same servers for the zone.
- Ns
Defaults []string - The default list of same servers for the zone.
- Ns
Masters []string - The master list of same servers for the zone.
- Status string
- The status of the domain zone.
- Updated
At string - The date and time at which the DNS zone was last updated.
- id String
- The provider-assigned unique ID for this managed resource.
- message String
- Message.
- ns List<String>
- The list of same servers for the zone.
- ns
Defaults List<String> - The default list of same servers for the zone.
- ns
Masters List<String> - The master list of same servers for the zone.
- status String
- The status of the domain zone.
- updated
At String - The date and time at which the DNS zone was last updated.
- id string
- The provider-assigned unique ID for this managed resource.
- message string
- Message.
- ns string[]
- The list of same servers for the zone.
- ns
Defaults string[] - The default list of same servers for the zone.
- ns
Masters string[] - The master list of same servers for the zone.
- status string
- The status of the domain zone.
- updated
At string - The date and time at which the DNS zone was last updated.
- id str
- The provider-assigned unique ID for this managed resource.
- message str
- Message.
- ns Sequence[str]
- The list of same servers for the zone.
- ns_
defaults Sequence[str] - The default list of same servers for the zone.
- ns_
masters Sequence[str] - The master list of same servers for the zone.
- status str
- The status of the domain zone.
- updated_
at str - The date and time at which the DNS zone was last updated.
- id String
- The provider-assigned unique ID for this managed resource.
- message String
- Message.
- ns List<String>
- The list of same servers for the zone.
- ns
Defaults List<String> - The default list of same servers for the zone.
- ns
Masters List<String> - The master list of same servers for the zone.
- status String
- The status of the domain zone.
- updated
At String - The date and time at which the DNS zone was last updated.
Look up Existing Zone Resource
Get an existing Zone 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?: ZoneState, opts?: CustomResourceOptions): Zone@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
message: Optional[str] = None,
ns: Optional[Sequence[str]] = None,
ns_defaults: Optional[Sequence[str]] = None,
ns_masters: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
status: Optional[str] = None,
subdomain: Optional[str] = None,
updated_at: Optional[str] = None) -> Zonefunc GetZone(ctx *Context, name string, id IDInput, state *ZoneState, opts ...ResourceOption) (*Zone, error)public static Zone Get(string name, Input<string> id, ZoneState? state, CustomResourceOptions? opts = null)public static Zone get(String name, Output<String> id, ZoneState state, CustomResourceOptions options)resources: _: type: scaleway:domain:Zone get: id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Domain string
- The main domain where the DNS zone will be created.
- Message string
- Message.
- Ns List<string>
- The list of same servers for the zone.
- Ns
Defaults List<string> - The default list of same servers for the zone.
- Ns
Masters List<string> - The master list of same servers for the zone.
- Project
Id string projectId) The ID of the Project associated with the domain.- Status string
- The status of the domain zone.
- Subdomain string
- The name of the subdomain (zone name) to create within the domain.
- Updated
At string - The date and time at which the DNS zone was last updated.
- Domain string
- The main domain where the DNS zone will be created.
- Message string
- Message.
- Ns []string
- The list of same servers for the zone.
- Ns
Defaults []string - The default list of same servers for the zone.
- Ns
Masters []string - The master list of same servers for the zone.
- Project
Id string projectId) The ID of the Project associated with the domain.- Status string
- The status of the domain zone.
- Subdomain string
- The name of the subdomain (zone name) to create within the domain.
- Updated
At string - The date and time at which the DNS zone was last updated.
- domain String
- The main domain where the DNS zone will be created.
- message String
- Message.
- ns List<String>
- The list of same servers for the zone.
- ns
Defaults List<String> - The default list of same servers for the zone.
- ns
Masters List<String> - The master list of same servers for the zone.
- project
Id String projectId) The ID of the Project associated with the domain.- status String
- The status of the domain zone.
- subdomain String
- The name of the subdomain (zone name) to create within the domain.
- updated
At String - The date and time at which the DNS zone was last updated.
- domain string
- The main domain where the DNS zone will be created.
- message string
- Message.
- ns string[]
- The list of same servers for the zone.
- ns
Defaults string[] - The default list of same servers for the zone.
- ns
Masters string[] - The master list of same servers for the zone.
- project
Id string projectId) The ID of the Project associated with the domain.- status string
- The status of the domain zone.
- subdomain string
- The name of the subdomain (zone name) to create within the domain.
- updated
At string - The date and time at which the DNS zone was last updated.
- domain str
- The main domain where the DNS zone will be created.
- message str
- Message.
- ns Sequence[str]
- The list of same servers for the zone.
- ns_
defaults Sequence[str] - The default list of same servers for the zone.
- ns_
masters Sequence[str] - The master list of same servers for the zone.
- project_
id str projectId) The ID of the Project associated with the domain.- status str
- The status of the domain zone.
- subdomain str
- The name of the subdomain (zone name) to create within the domain.
- updated_
at str - The date and time at which the DNS zone was last updated.
- domain String
- The main domain where the DNS zone will be created.
- message String
- Message.
- ns List<String>
- The list of same servers for the zone.
- ns
Defaults List<String> - The default list of same servers for the zone.
- ns
Masters List<String> - The master list of same servers for the zone.
- project
Id String projectId) The ID of the Project associated with the domain.- status String
- The status of the domain zone.
- subdomain String
- The name of the subdomain (zone name) to create within the domain.
- updated
At String - The date and time at which the DNS zone was last updated.
Import
This section explains how to import a zone using the {subdomain}.{domain} format.
$ pulumi import scaleway:domain/zone:Zone test test.scaleway-terraform.com
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
scalewayTerraform Provider.
published on Tuesday, Apr 14, 2026 by pulumiverse
