published on Sunday, Nov 8, 2026 by pulumiverse
published on Sunday, Nov 8, 2026 by pulumiverse
Creates and manages a Scaleway Mailbox mailbox.
A mailbox is a hosted email address (local_part@domain) that belongs to a
scaleway.mailbox.Domain. Prefer passwordWo so the password is never stored in state.
Note This resource is in alpha and the API is subject to change.
Example Usage
Basic mailbox
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.mailbox.Domain("main", {name: "mail.example.com"});
const john = new scaleway.mailbox.Mailbox("john", {
domainId: main.id,
localPart: "john.doe",
password: mailboxPassword,
subscriptionPeriod: "monthly",
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.mailbox.Domain("main", name="mail.example.com")
john = scaleway.mailbox.Mailbox("john",
domain_id=main.id,
local_part="john.doe",
password=mailbox_password,
subscription_period="monthly")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/mailbox"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := mailbox.NewDomain(ctx, "main", &mailbox.DomainArgs{
Name: pulumi.String("mail.example.com"),
})
if err != nil {
return err
}
_, err = mailbox.NewMailbox(ctx, "john", &mailbox.MailboxArgs{
DomainId: main.ID(),
LocalPart: pulumi.String("john.doe"),
Password: pulumi.Any(mailboxPassword),
SubscriptionPeriod: pulumi.String("monthly"),
})
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 main = new Scaleway.Mailbox.Domain("main", new()
{
Name = "mail.example.com",
});
var john = new Scaleway.Mailbox.Mailbox("john", new()
{
DomainId = main.Id,
LocalPart = "john.doe",
Password = mailboxPassword,
SubscriptionPeriod = "monthly",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mailbox.Domain;
import com.pulumi.scaleway.mailbox.DomainArgs;
import com.pulumi.scaleway.mailbox.Mailbox;
import com.pulumi.scaleway.mailbox.MailboxArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 Domain("main", DomainArgs.builder()
.name("mail.example.com")
.build());
var john = new Mailbox("john", MailboxArgs.builder()
.domainId(main.id())
.localPart("john.doe")
.password(mailboxPassword)
.subscriptionPeriod("monthly")
.build());
}
}
resources:
main:
type: scaleway:mailbox:Domain
properties:
name: mail.example.com
john:
type: scaleway:mailbox:Mailbox
properties:
domainId: ${main.id}
localPart: john.doe
password: ${mailboxPassword}
subscriptionPeriod: monthly
terraform {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
resource "scaleway_mailbox_domain" "main" {
lifecycle {
create_before_destroy = true
}
name = "mail.example.com"
}
resource "scaleway_mailbox_mailbox" "john" {
lifecycle {
create_before_destroy = true
}
domain_id = scaleway_mailbox_domain.main.id
local_part = "john.doe"
password = mailboxPassword
subscription_period = "monthly"
}
Write-only password
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.mailbox.Domain("main", {name: "mail.example.com"});
const support = new scaleway.mailbox.Mailbox("support", {
domainId: main.id,
localPart: "support",
passwordWo: mailboxPassword,
passwordWoVersion: 1,
subscriptionPeriod: "monthly",
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.mailbox.Domain("main", name="mail.example.com")
support = scaleway.mailbox.Mailbox("support",
domain_id=main.id,
local_part="support",
password_wo=mailbox_password,
password_wo_version=1,
subscription_period="monthly")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/mailbox"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := mailbox.NewDomain(ctx, "main", &mailbox.DomainArgs{
Name: pulumi.String("mail.example.com"),
})
if err != nil {
return err
}
_, err = mailbox.NewMailbox(ctx, "support", &mailbox.MailboxArgs{
DomainId: main.ID(),
LocalPart: pulumi.String("support"),
PasswordWo: pulumi.Any(mailboxPassword),
PasswordWoVersion: pulumi.Int(1),
SubscriptionPeriod: pulumi.String("monthly"),
})
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 main = new Scaleway.Mailbox.Domain("main", new()
{
Name = "mail.example.com",
});
var support = new Scaleway.Mailbox.Mailbox("support", new()
{
DomainId = main.Id,
LocalPart = "support",
PasswordWo = mailboxPassword,
PasswordWoVersion = 1,
SubscriptionPeriod = "monthly",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mailbox.Domain;
import com.pulumi.scaleway.mailbox.DomainArgs;
import com.pulumi.scaleway.mailbox.Mailbox;
import com.pulumi.scaleway.mailbox.MailboxArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 Domain("main", DomainArgs.builder()
.name("mail.example.com")
.build());
var support = new Mailbox("support", MailboxArgs.builder()
.domainId(main.id())
.localPart("support")
.passwordWo(mailboxPassword)
.passwordWoVersion(1)
.subscriptionPeriod("monthly")
.build());
}
}
resources:
main:
type: scaleway:mailbox:Domain
properties:
name: mail.example.com
support:
type: scaleway:mailbox:Mailbox
properties:
domainId: ${main.id}
localPart: support
passwordWo: ${mailboxPassword}
passwordWoVersion: 1
subscriptionPeriod: monthly
terraform {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
resource "scaleway_mailbox_domain" "main" {
lifecycle {
create_before_destroy = true
}
name = "mail.example.com"
}
resource "scaleway_mailbox_mailbox" "support" {
lifecycle {
create_before_destroy = true
}
domain_id = scaleway_mailbox_domain.main.id
local_part = "support"
password_wo = mailboxPassword
password_wo_version = 1
subscription_period = "monthly"
}
Multiple mailboxes on one domain
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
import * as std from "@pulumi/std";
export = async () => {
const corp = new scaleway.mailbox.Domain("corp", {name: "corp.example.com"});
const mailboxes = (await std.toset({
input: [
"alice",
"bob",
],
})).result;
const employees: scaleway.mailbox.Mailbox[] = [];
for (const range of mailboxes.map((v, k) => ({key: k, value: v}))) {
employees.push(new scaleway.mailbox.Mailbox(`employees-${range.key}`, {
domainId: corp.id,
localPart: String(range.key),
password: mailboxPassword,
subscriptionPeriod: "monthly",
}));
}
}
import pulumi
from typing import Any
import pulumi_std as std
import pulumiverse_scaleway as scaleway
corp = scaleway.mailbox.Domain("corp", name="corp.example.com")
mailboxes = std.toset(input=[
"alice",
"bob",
]).result
employees: list[scaleway.mailbox.Mailbox] = []
for employees_range in [{"key": k, "value": v} for [k, v] in enumerate(mailboxes)]:
employees.append(scaleway.mailbox.Mailbox(f"employees-{employees_range['key']}",
domain_id=corp.id,
local_part=str(employees_range["key"]),
password=mailbox_password,
subscription_period="monthly"))
package main
import (
"fmt"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/mailbox"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
corp, err := mailbox.NewDomain(ctx, "corp", &mailbox.DomainArgs{
Name: pulumi.String("corp.example.com"),
})
if err != nil {
return err
}
mailboxes := std.Toset(ctx, &std.TosetArgs{
Input: []string{
"alice",
"bob",
},
}, nil).Result
var employees []*mailbox.Mailbox
for key0, _ := range mailboxes {
__res, err := mailbox.NewMailbox(ctx, fmt.Sprintf("employees-%v", key0), &mailbox.MailboxArgs{
DomainId: corp.ID(),
LocalPart: pulumi.Int(key0),
Password: pulumi.Any(mailboxPassword),
SubscriptionPeriod: pulumi.String("monthly"),
})
if err != nil {
return err
}
employees = append(employees, __res)
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
using Std = Pulumi.Std;
return await Deployment.RunAsync(async() =>
{
var corp = new Scaleway.Mailbox.Domain("corp", new()
{
Name = "corp.example.com",
});
var mailboxes = (await Std.Toset.InvokeAsync(new()
{
Input = new[]
{
"alice",
"bob",
},
})).Result;
var employees = new List<Scaleway.Mailbox.Mailbox>();
foreach (var range in )
{
employees.Add(new Scaleway.Mailbox.Mailbox($"employees-{range.Key}", new()
{
DomainId = corp.Id,
LocalPart = range.Key.ToString(System.Globalization.CultureInfo.InvariantCulture),
Password = mailboxPassword,
SubscriptionPeriod = "monthly",
}));
}
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mailbox.Domain;
import com.pulumi.scaleway.mailbox.DomainArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.TosetArgs;
import com.pulumi.scaleway.mailbox.Mailbox;
import com.pulumi.scaleway.mailbox.MailboxArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.ArrayList;
import java.util.Arrays;
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 corp = new Domain("corp", DomainArgs.builder()
.name("corp.example.com")
.build());
final var mailboxes = StdFunctions.toset(TosetArgs.builder()
.input(
"alice",
"bob")
.build()).result();
for (var range : KeyedValue.of(mailboxes)) {
new Mailbox("employees-" + range.key(), MailboxArgs.builder()
.domainId(corp.id())
.localPart(range.key())
.password(mailboxPassword)
.subscriptionPeriod("monthly")
.build());
}
}
}
resources:
corp:
type: scaleway:mailbox:Domain
properties:
name: corp.example.com
employees:
type: scaleway:mailbox:Mailbox
properties:
domainId: ${corp.id}
localPart: ${range.key}
password: ${mailboxPassword}
subscriptionPeriod: monthly
options: {}
variables:
mailboxes:
fn::invoke:
function: std:toset
arguments:
input:
- alice
- bob
return: result
terraform {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
std = {
source = "pulumi/std"
}
}
}
resource "scaleway_mailbox_domain" "corp" {
lifecycle {
create_before_destroy = true
}
name = "corp.example.com"
}
resource "scaleway_mailbox_mailbox" "employees" {
for_each = local.mailboxes
pulumi {
name ="employees-${each.key}"
}
lifecycle {
create_before_destroy = true
}
domain_id = scaleway_mailbox_domain.corp.id
local_part = each.key
password = mailboxPassword
subscription_period = "monthly"
}
locals {
mailboxes = toset(["alice", "bob"])
}
Create Mailbox Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Mailbox(name: string, args: MailboxArgs, opts?: CustomResourceOptions);@overload
def Mailbox(resource_name: str,
args: MailboxArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Mailbox(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
local_part: Optional[str] = None,
subscription_period: Optional[str] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[int] = None)func NewMailbox(ctx *Context, name string, args MailboxArgs, opts ...ResourceOption) (*Mailbox, error)public Mailbox(string name, MailboxArgs args, CustomResourceOptions? opts = null)
public Mailbox(String name, MailboxArgs args)
public Mailbox(String name, MailboxArgs args, CustomResourceOptions options)
type: scaleway:mailbox:Mailbox
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "scaleway_mailbox_mailbox" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MailboxArgs
- 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 MailboxArgs
- 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 MailboxArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MailboxArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MailboxArgs
- 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 mailboxResource = new Scaleway.Mailbox.Mailbox("mailboxResource", new()
{
DomainId = "string",
LocalPart = "string",
SubscriptionPeriod = "string",
Password = "string",
PasswordWo = "string",
PasswordWoVersion = 0,
});
example, err := mailbox.NewMailbox(ctx, "mailboxResource", &mailbox.MailboxArgs{
DomainId: pulumi.String("string"),
LocalPart: pulumi.String("string"),
SubscriptionPeriod: pulumi.String("string"),
Password: pulumi.String("string"),
PasswordWo: pulumi.String("string"),
PasswordWoVersion: pulumi.Int(0),
})
resource "scaleway_mailbox_mailbox" "mailboxResource" {
lifecycle {
create_before_destroy = true
}
domain_id = "string"
local_part = "string"
subscription_period = "string"
password = "string"
password_wo = "string"
password_wo_version = 0
}
var mailboxResource = new Mailbox("mailboxResource", MailboxArgs.builder()
.domainId("string")
.localPart("string")
.subscriptionPeriod("string")
.password("string")
.passwordWo("string")
.passwordWoVersion(0)
.build());
mailbox_resource = scaleway.mailbox.Mailbox("mailboxResource",
domain_id="string",
local_part="string",
subscription_period="string",
password="string",
password_wo="string",
password_wo_version=0)
const mailboxResource = new scaleway.mailbox.Mailbox("mailboxResource", {
domainId: "string",
localPart: "string",
subscriptionPeriod: "string",
password: "string",
passwordWo: "string",
passwordWoVersion: 0,
});
type: scaleway:mailbox:Mailbox
properties:
domainId: string
localPart: string
password: string
passwordWo: string
passwordWoVersion: 0
subscriptionPeriod: string
Mailbox 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 Mailbox resource accepts the following input properties:
- Domain
Id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - Local
Part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - Subscription
Period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - Password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - Password
Wo intVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password.
- Domain
Id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - Local
Part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - Subscription
Period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - Password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - Password
Wo intVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password.
- domain_
id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - local_
part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - subscription_
period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password_
wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password_
wo_ numberversion - Version of the write-only password. Bump it together with
passwordWoto rotate the password.
- domain
Id String - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - local
Part String - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - subscription
Period String - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - password String
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password
Wo IntegerVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password.
- domain
Id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - local
Part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - subscription
Period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password
Wo numberVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password.
- domain_
id str - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - local_
part str - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - subscription_
period str - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - password str
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password_
wo str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password_
wo_ intversion - Version of the write-only password. Bump it together with
passwordWoto rotate the password.
- domain
Id String - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - local
Part String - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - subscription
Period String - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - password String
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password
Wo NumberVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password.
Outputs
All input properties are implicitly available as output properties. Additionally, the Mailbox resource produces the following output properties:
- Created
At string - Date and time of mailbox creation (RFC 3339 format).
- Deletion
Scheduled stringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - Email string
- Full email address of the mailbox (
local_part@domain). - Id string
- The provider-assigned unique ID for this managed resource.
- Next
Subscription stringPeriod - Next renewal period (
monthly,yearly, orcanceled). - Next
Subscription stringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- Status string
- Current status of the mailbox:
- Subscription
Period stringStarted At - Start date of the current billing period (RFC 3339 format).
- Updated
At string - Date and time of last update (RFC 3339 format).
- Created
At string - Date and time of mailbox creation (RFC 3339 format).
- Deletion
Scheduled stringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - Email string
- Full email address of the mailbox (
local_part@domain). - Id string
- The provider-assigned unique ID for this managed resource.
- Next
Subscription stringPeriod - Next renewal period (
monthly,yearly, orcanceled). - Next
Subscription stringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- Status string
- Current status of the mailbox:
- Subscription
Period stringStarted At - Start date of the current billing period (RFC 3339 format).
- Updated
At string - Date and time of last update (RFC 3339 format).
- created_
at string - Date and time of mailbox creation (RFC 3339 format).
- deletion_
scheduled_ stringat - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - email string
- Full email address of the mailbox (
local_part@domain). - id string
- The provider-assigned unique ID for this managed resource.
- next_
subscription_ stringperiod - Next renewal period (
monthly,yearly, orcanceled). - next_
subscription_ stringperiod_ starts_ at - Date when the next billing period begins (RFC 3339 format).
- status string
- Current status of the mailbox:
- subscription_
period_ stringstarted_ at - Start date of the current billing period (RFC 3339 format).
- updated_
at string - Date and time of last update (RFC 3339 format).
- created
At String - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled StringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - email String
- Full email address of the mailbox (
local_part@domain). - id String
- The provider-assigned unique ID for this managed resource.
- next
Subscription StringPeriod - Next renewal period (
monthly,yearly, orcanceled). - next
Subscription StringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- status String
- Current status of the mailbox:
- subscription
Period StringStarted At - Start date of the current billing period (RFC 3339 format).
- updated
At String - Date and time of last update (RFC 3339 format).
- created
At string - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled stringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - email string
- Full email address of the mailbox (
local_part@domain). - id string
- The provider-assigned unique ID for this managed resource.
- next
Subscription stringPeriod - Next renewal period (
monthly,yearly, orcanceled). - next
Subscription stringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- status string
- Current status of the mailbox:
- subscription
Period stringStarted At - Start date of the current billing period (RFC 3339 format).
- updated
At string - Date and time of last update (RFC 3339 format).
- created_
at str - Date and time of mailbox creation (RFC 3339 format).
- deletion_
scheduled_ strat - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - email str
- Full email address of the mailbox (
local_part@domain). - id str
- The provider-assigned unique ID for this managed resource.
- next_
subscription_ strperiod - Next renewal period (
monthly,yearly, orcanceled). - next_
subscription_ strperiod_ starts_ at - Date when the next billing period begins (RFC 3339 format).
- status str
- Current status of the mailbox:
- subscription_
period_ strstarted_ at - Start date of the current billing period (RFC 3339 format).
- updated_
at str - Date and time of last update (RFC 3339 format).
- created
At String - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled StringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - email String
- Full email address of the mailbox (
local_part@domain). - id String
- The provider-assigned unique ID for this managed resource.
- next
Subscription StringPeriod - Next renewal period (
monthly,yearly, orcanceled). - next
Subscription StringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- status String
- Current status of the mailbox:
- subscription
Period StringStarted At - Start date of the current billing period (RFC 3339 format).
- updated
At String - Date and time of last update (RFC 3339 format).
Look up Existing Mailbox Resource
Get an existing Mailbox 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?: MailboxState, opts?: CustomResourceOptions): Mailbox@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
deletion_scheduled_at: Optional[str] = None,
domain_id: Optional[str] = None,
email: Optional[str] = None,
local_part: Optional[str] = None,
next_subscription_period: Optional[str] = None,
next_subscription_period_starts_at: Optional[str] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[int] = None,
status: Optional[str] = None,
subscription_period: Optional[str] = None,
subscription_period_started_at: Optional[str] = None,
updated_at: Optional[str] = None) -> Mailboxfunc GetMailbox(ctx *Context, name string, id IDInput, state *MailboxState, opts ...ResourceOption) (*Mailbox, error)public static Mailbox Get(string name, Input<string> id, MailboxState? state, CustomResourceOptions? opts = null)public static Mailbox get(String name, Output<String> id, MailboxState state, CustomResourceOptions options)resources: _: type: scaleway:mailbox:Mailbox get: id: ${id}import {
to = scaleway_mailbox_mailbox.example
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.
- Created
At string - Date and time of mailbox creation (RFC 3339 format).
- Deletion
Scheduled stringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - Domain
Id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - Email string
- Full email address of the mailbox (
local_part@domain). - Local
Part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - Next
Subscription stringPeriod - Next renewal period (
monthly,yearly, orcanceled). - Next
Subscription stringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- Password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - Password
Wo intVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password. - Status string
- Current status of the mailbox:
- Subscription
Period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - Subscription
Period stringStarted At - Start date of the current billing period (RFC 3339 format).
- Updated
At string - Date and time of last update (RFC 3339 format).
- Created
At string - Date and time of mailbox creation (RFC 3339 format).
- Deletion
Scheduled stringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - Domain
Id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - Email string
- Full email address of the mailbox (
local_part@domain). - Local
Part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - Next
Subscription stringPeriod - Next renewal period (
monthly,yearly, orcanceled). - Next
Subscription stringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- Password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - Password
Wo intVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password. - Status string
- Current status of the mailbox:
- Subscription
Period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - Subscription
Period stringStarted At - Start date of the current billing period (RFC 3339 format).
- Updated
At string - Date and time of last update (RFC 3339 format).
- created_
at string - Date and time of mailbox creation (RFC 3339 format).
- deletion_
scheduled_ stringat - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - domain_
id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - email string
- Full email address of the mailbox (
local_part@domain). - local_
part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - next_
subscription_ stringperiod - Next renewal period (
monthly,yearly, orcanceled). - next_
subscription_ stringperiod_ starts_ at - Date when the next billing period begins (RFC 3339 format).
- password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password_
wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password_
wo_ numberversion - Version of the write-only password. Bump it together with
passwordWoto rotate the password. - status string
- Current status of the mailbox:
- subscription_
period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - subscription_
period_ stringstarted_ at - Start date of the current billing period (RFC 3339 format).
- updated_
at string - Date and time of last update (RFC 3339 format).
- created
At String - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled StringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - domain
Id String - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - email String
- Full email address of the mailbox (
local_part@domain). - local
Part String - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - next
Subscription StringPeriod - Next renewal period (
monthly,yearly, orcanceled). - next
Subscription StringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- password String
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password
Wo IntegerVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password. - status String
- Current status of the mailbox:
- subscription
Period String - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - subscription
Period StringStarted At - Start date of the current billing period (RFC 3339 format).
- updated
At String - Date and time of last update (RFC 3339 format).
- created
At string - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled stringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - domain
Id string - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - email string
- Full email address of the mailbox (
local_part@domain). - local
Part string - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - next
Subscription stringPeriod - Next renewal period (
monthly,yearly, orcanceled). - next
Subscription stringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- password string
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password
Wo numberVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password. - status string
- Current status of the mailbox:
- subscription
Period string - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - subscription
Period stringStarted At - Start date of the current billing period (RFC 3339 format).
- updated
At string - Date and time of last update (RFC 3339 format).
- created_
at str - Date and time of mailbox creation (RFC 3339 format).
- deletion_
scheduled_ strat - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - domain_
id str - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - email str
- Full email address of the mailbox (
local_part@domain). - local_
part str - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - next_
subscription_ strperiod - Next renewal period (
monthly,yearly, orcanceled). - next_
subscription_ strperiod_ starts_ at - Date when the next billing period begins (RFC 3339 format).
- password str
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password_
wo str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password_
wo_ intversion - Version of the write-only password. Bump it together with
passwordWoto rotate the password. - status str
- Current status of the mailbox:
- subscription_
period str - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - subscription_
period_ strstarted_ at - Start date of the current billing period (RFC 3339 format).
- updated_
at str - Date and time of last update (RFC 3339 format).
- created
At String - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled StringAt - Scheduled deletion date when status is
deletionScheduled(RFC 3339 format). - domain
Id String - UUID of the
scaleway.mailbox.Domainto which this mailbox belongs. - email String
- Full email address of the mailbox (
local_part@domain). - local
Part String - Local part of the email address (part before the
@). Must be 1–64 characters. Changing this value forces a new mailbox to be created. - next
Subscription StringPeriod - Next renewal period (
monthly,yearly, orcanceled). - next
Subscription StringPeriod Starts At - Date when the next billing period begins (RFC 3339 format).
- password String
- Password for the mailbox. Conflicts with
passwordWo. Stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password in write-only mode. Conflicts with
password. Never stored in state. RequirespasswordWoVersion. - password
Wo NumberVersion - Version of the write-only password. Bump it together with
passwordWoto rotate the password. - status String
- Current status of the mailbox:
- subscription
Period String - Billing period for the mailbox. Accepted values:
monthly,yearly. Can be updated in place to change the next renewal period. - subscription
Period StringStarted At - Start date of the current billing period (RFC 3339 format).
- updated
At String - Date and time of last update (RFC 3339 format).
Import
Mailboxes can be imported using their UUID. Password fields cannot be recovered and must be ignored on import verification.
$ pulumi import scaleway:mailbox/mailbox:Mailbox john 11111111-1111-1111-1111-111111111111
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 Sunday, Nov 8, 2026 by pulumiverse