published on Saturday, Oct 24, 2026 by pulumiverse
published on Saturday, Oct 24, 2026 by pulumiverse
Use this data source to get information about a Scaleway Mailbox mailbox based on its UUID or its full email address.
Note This data source is in alpha and the API is subject to change.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const byId = scaleway.mailbox.getMailbox({
mailboxId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
by_id = scaleway.mailbox.get_mailbox(mailbox_id="11111111-1111-1111-1111-111111111111")
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 {
_, err := mailbox.LookupMailbox(ctx, &mailbox.LookupMailboxArgs{
MailboxId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
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 byId = Scaleway.Mailbox.GetMailbox.Invoke(new()
{
MailboxId = "11111111-1111-1111-1111-111111111111",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mailbox.MailboxFunctions;
import com.pulumi.scaleway.mailbox.inputs.GetMailboxArgs;
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) {
final var byId = MailboxFunctions.getMailbox(GetMailboxArgs.builder()
.mailboxId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
byId:
fn::invoke:
function: scaleway:mailbox:getMailbox
arguments:
mailboxId: 11111111-1111-1111-1111-111111111111
pulumi {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
data "scaleway_mailbox_getmailbox" "byId" {
mailbox_id = "11111111-1111-1111-1111-111111111111"
}
By email
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const byEmail = scaleway.mailbox.getMailbox({
email: "john.doe@mail.example.com",
});
import pulumi
import pulumi_scaleway as scaleway
by_email = scaleway.mailbox.get_mailbox(email="john.doe@mail.example.com")
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 {
_, err := mailbox.LookupMailbox(ctx, &mailbox.LookupMailboxArgs{
Email: pulumi.StringRef("john.doe@mail.example.com"),
}, nil)
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 byEmail = Scaleway.Mailbox.GetMailbox.Invoke(new()
{
Email = "john.doe@mail.example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mailbox.MailboxFunctions;
import com.pulumi.scaleway.mailbox.inputs.GetMailboxArgs;
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) {
final var byEmail = MailboxFunctions.getMailbox(GetMailboxArgs.builder()
.email("john.doe@mail.example.com")
.build());
}
}
variables:
byEmail:
fn::invoke:
function: scaleway:mailbox:getMailbox
arguments:
email: john.doe@mail.example.com
pulumi {
required_providers {
scaleway = {
source = "pulumi/scaleway"
}
}
}
data "scaleway_mailbox_getmailbox" "byEmail" {
email = "john.doe@mail.example.com"
}
Using getMailbox
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMailbox(args: GetMailboxArgs, opts?: InvokeOptions): Promise<GetMailboxResult>
function getMailboxOutput(args: GetMailboxOutputArgs, opts?: InvokeOutputOptions): Output<GetMailboxResult>def get_mailbox(email: Optional[str] = None,
mailbox_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMailboxResult
def get_mailbox_output(email: pulumi.Input[Optional[str]] = None,
mailbox_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetMailboxResult]func LookupMailbox(ctx *Context, args *LookupMailboxArgs, opts ...InvokeOption) (*LookupMailboxResult, error)
func LookupMailboxOutput(ctx *Context, args *LookupMailboxOutputArgs, opts ...InvokeOption) LookupMailboxResultOutput> Note: This function is named LookupMailbox in the Go SDK.
public static class GetMailbox
{
public static Task<GetMailboxResult> InvokeAsync(GetMailboxArgs args, InvokeOptions? opts = null)
public static Output<GetMailboxResult> Invoke(GetMailboxInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetMailboxResult> Invoke(GetMailboxInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetMailboxResult> getMailbox(GetMailboxArgs args, InvokeOptions options)
public static Output<GetMailboxResult> getMailbox(GetMailboxArgs args, InvokeOptions options)
public static Output<GetMailboxResult> getMailbox(GetMailboxArgs args, InvokeOutputOptions options)
fn::invoke:
function: scaleway:mailbox/getMailbox:getMailbox
arguments:
# arguments dictionarydata "scaleway_mailbox_get_mailbox" "name" {
# arguments
}The following arguments are supported:
- email string
Full email address of the mailbox (
local_part@domain). Exactly one ofmailboxIdoremailmust be specified.Note You must specify exactly one of
mailboxIdoremail.- mailbox_
id string - UUID of the mailbox. Exactly one of
mailboxIdoremailmust be specified.
- email str
Full email address of the mailbox (
local_part@domain). Exactly one ofmailboxIdoremailmust be specified.Note You must specify exactly one of
mailboxIdoremail.- mailbox_
id str - UUID of the mailbox. Exactly one of
mailboxIdoremailmust be specified.
getMailbox Result
The following output properties are available:
- Created
At string - Date and time of mailbox creation (RFC 3339 format).
- Deletion
Scheduled stringAt - Scheduled deletion date if status is
deletionScheduled(RFC 3339 format). - Domain
Id string - UUID of the domain to which this mailbox belongs.
- Email string
- Full email address (
local_part@domain). - Id string
- Unique identifier of the mailbox (UUID).
- Local
Part string - Local part of the email address.
- Next
Subscription stringPeriod - Next renewal period.
- Next
Subscription stringPeriod Starts At - Date when the next period starts (RFC 3339 format).
- Status string
- Current mailbox status (
ready,locked,deletionScheduled, etc.). - Subscription
Period string - Active billing period (
monthlyoryearly). - 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).
- Mailbox
Id string
- Created
At string - Date and time of mailbox creation (RFC 3339 format).
- Deletion
Scheduled stringAt - Scheduled deletion date if status is
deletionScheduled(RFC 3339 format). - Domain
Id string - UUID of the domain to which this mailbox belongs.
- Email string
- Full email address (
local_part@domain). - Id string
- Unique identifier of the mailbox (UUID).
- Local
Part string - Local part of the email address.
- Next
Subscription stringPeriod - Next renewal period.
- Next
Subscription stringPeriod Starts At - Date when the next period starts (RFC 3339 format).
- Status string
- Current mailbox status (
ready,locked,deletionScheduled, etc.). - Subscription
Period string - Active billing period (
monthlyoryearly). - 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).
- Mailbox
Id string
- created_
at string - Date and time of mailbox creation (RFC 3339 format).
- deletion_
scheduled_ stringat - Scheduled deletion date if status is
deletionScheduled(RFC 3339 format). - domain_
id string - UUID of the domain to which this mailbox belongs.
- email string
- Full email address (
local_part@domain). - id string
- Unique identifier of the mailbox (UUID).
- local_
part string - Local part of the email address.
- next_
subscription_ stringperiod - Next renewal period.
- next_
subscription_ stringperiod_ starts_ at - Date when the next period starts (RFC 3339 format).
- status string
- Current mailbox status (
ready,locked,deletionScheduled, etc.). - subscription_
period string - Active billing period (
monthlyoryearly). - 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).
- mailbox_
id string
- created
At String - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled StringAt - Scheduled deletion date if status is
deletionScheduled(RFC 3339 format). - domain
Id String - UUID of the domain to which this mailbox belongs.
- email String
- Full email address (
local_part@domain). - id String
- Unique identifier of the mailbox (UUID).
- local
Part String - Local part of the email address.
- next
Subscription StringPeriod - Next renewal period.
- next
Subscription StringPeriod Starts At - Date when the next period starts (RFC 3339 format).
- status String
- Current mailbox status (
ready,locked,deletionScheduled, etc.). - subscription
Period String - Active billing period (
monthlyoryearly). - 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).
- mailbox
Id String
- created
At string - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled stringAt - Scheduled deletion date if status is
deletionScheduled(RFC 3339 format). - domain
Id string - UUID of the domain to which this mailbox belongs.
- email string
- Full email address (
local_part@domain). - id string
- Unique identifier of the mailbox (UUID).
- local
Part string - Local part of the email address.
- next
Subscription stringPeriod - Next renewal period.
- next
Subscription stringPeriod Starts At - Date when the next period starts (RFC 3339 format).
- status string
- Current mailbox status (
ready,locked,deletionScheduled, etc.). - subscription
Period string - Active billing period (
monthlyoryearly). - 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).
- mailbox
Id string
- created_
at str - Date and time of mailbox creation (RFC 3339 format).
- deletion_
scheduled_ strat - Scheduled deletion date if status is
deletionScheduled(RFC 3339 format). - domain_
id str - UUID of the domain to which this mailbox belongs.
- email str
- Full email address (
local_part@domain). - id str
- Unique identifier of the mailbox (UUID).
- local_
part str - Local part of the email address.
- next_
subscription_ strperiod - Next renewal period.
- next_
subscription_ strperiod_ starts_ at - Date when the next period starts (RFC 3339 format).
- status str
- Current mailbox status (
ready,locked,deletionScheduled, etc.). - subscription_
period str - Active billing period (
monthlyoryearly). - 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).
- mailbox_
id str
- created
At String - Date and time of mailbox creation (RFC 3339 format).
- deletion
Scheduled StringAt - Scheduled deletion date if status is
deletionScheduled(RFC 3339 format). - domain
Id String - UUID of the domain to which this mailbox belongs.
- email String
- Full email address (
local_part@domain). - id String
- Unique identifier of the mailbox (UUID).
- local
Part String - Local part of the email address.
- next
Subscription StringPeriod - Next renewal period.
- next
Subscription StringPeriod Starts At - Date when the next period starts (RFC 3339 format).
- status String
- Current mailbox status (
ready,locked,deletionScheduled, etc.). - subscription
Period String - Active billing period (
monthlyoryearly). - 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).
- mailbox
Id String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
published on Saturday, Oct 24, 2026 by pulumiverse