Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Accepted Permissions
Cloud Email Security: ReadCloud Email Security: Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleEmailSecurityDomain = cloudflare.getEmailSecurityDomain({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
domainId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_email_security_domain = cloudflare.get_email_security_domain(account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.GetEmailSecurityDomain(ctx, &cloudflare.LookupEmailSecurityDomainArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
DomainId: pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleEmailSecurityDomain = Cloudflare.GetEmailSecurityDomain.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
DomainId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetEmailSecurityDomainArgs;
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 exampleEmailSecurityDomain = CloudflareFunctions.getEmailSecurityDomain(GetEmailSecurityDomainArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.domainId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
.build());
}
}
variables:
exampleEmailSecurityDomain:
fn::invoke:
function: cloudflare:getEmailSecurityDomain
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
domainId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getemailsecuritydomain" "exampleEmailSecurityDomain" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
domain_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
}
Using getEmailSecurityDomain
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 getEmailSecurityDomain(args: GetEmailSecurityDomainArgs, opts?: InvokeOptions): Promise<GetEmailSecurityDomainResult>
function getEmailSecurityDomainOutput(args: GetEmailSecurityDomainOutputArgs, opts?: InvokeOutputOptions): Output<GetEmailSecurityDomainResult>def get_email_security_domain(account_id: Optional[str] = None,
domain_id: Optional[str] = None,
filter: Optional[GetEmailSecurityDomainFilter] = None,
opts: Optional[InvokeOptions] = None) -> GetEmailSecurityDomainResult
def get_email_security_domain_output(account_id: pulumi.Input[Optional[str]] = None,
domain_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetEmailSecurityDomainFilterArgs]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetEmailSecurityDomainResult]func LookupEmailSecurityDomain(ctx *Context, args *LookupEmailSecurityDomainArgs, opts ...InvokeOption) (*LookupEmailSecurityDomainResult, error)
func LookupEmailSecurityDomainOutput(ctx *Context, args *LookupEmailSecurityDomainOutputArgs, opts ...InvokeOption) LookupEmailSecurityDomainResultOutput> Note: This function is named LookupEmailSecurityDomain in the Go SDK.
public static class GetEmailSecurityDomain
{
public static Task<GetEmailSecurityDomainResult> InvokeAsync(GetEmailSecurityDomainArgs args, InvokeOptions? opts = null)
public static Output<GetEmailSecurityDomainResult> Invoke(GetEmailSecurityDomainInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetEmailSecurityDomainResult> Invoke(GetEmailSecurityDomainInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetEmailSecurityDomainResult> getEmailSecurityDomain(GetEmailSecurityDomainArgs args, InvokeOptions options)
public static Output<GetEmailSecurityDomainResult> getEmailSecurityDomain(GetEmailSecurityDomainArgs args, InvokeOptions options)
public static Output<GetEmailSecurityDomainResult> getEmailSecurityDomain(GetEmailSecurityDomainArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getEmailSecurityDomain:getEmailSecurityDomain
arguments:
# arguments dictionarydata "cloudflare_get_email_security_domain" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Identifier.
- Domain
Id string - Domain identifier.
- Filter
Get
Email Security Domain Filter
- Account
Id string - Identifier.
- Domain
Id string - Domain identifier.
- Filter
Get
Email Security Domain Filter
- account_
id string - Identifier.
- domain_
id string - Domain identifier.
- filter object
- account
Id String - Identifier.
- domain
Id String - Domain identifier.
- filter
Get
Email Security Domain Filter
- account
Id string - Identifier.
- domain
Id string - Domain identifier.
- filter
Get
Email Security Domain Filter
- account_
id str - Identifier.
- domain_
id str - Domain identifier.
- filter
Get
Email Security Domain Filter
- account
Id String - Identifier.
- domain
Id String - Domain identifier.
- filter Property Map
getEmailSecurityDomain Result
The following output properties are available:
- Account
Id string - Identifier.
- Allowed
Delivery List<string>Modes -
Get
Email Security Domain Authorization - Created
At string - Dmarc
Status string - Available values: "none", "good", "invalid".
- Domain string
- Drop
Dispositions List<string> - Emails
Processed GetEmail Security Domain Emails Processed - Folder string
- Available values: "AllItems", "Inbox".
- Id string
- Domain identifier.
- Inbox
Provider string - Available values: "Microsoft", "Google".
- Integration
Id string - Ip
Restrictions List<string> - Last
Modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - Lookback
Hops int - Modified
At string - O365Tenant
Id string - Regions List<string>
- Require
Tls boolInbound - Require
Tls boolOutbound - Spf
Status string - Available values: "none", "good", "neutral", "open", "invalid".
- Status string
- Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- Transport string
- Domain
Id string - Domain identifier.
- Filter
Get
Email Security Domain Filter
- Account
Id string - Identifier.
- Allowed
Delivery []stringModes -
Get
Email Security Domain Authorization - Created
At string - Dmarc
Status string - Available values: "none", "good", "invalid".
- Domain string
- Drop
Dispositions []string - Emails
Processed GetEmail Security Domain Emails Processed - Folder string
- Available values: "AllItems", "Inbox".
- Id string
- Domain identifier.
- Inbox
Provider string - Available values: "Microsoft", "Google".
- Integration
Id string - Ip
Restrictions []string - Last
Modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - Lookback
Hops int - Modified
At string - O365Tenant
Id string - Regions []string
- Require
Tls boolInbound - Require
Tls boolOutbound - Spf
Status string - Available values: "none", "good", "neutral", "open", "invalid".
- Status string
- Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- Transport string
- Domain
Id string - Domain identifier.
- Filter
Get
Email Security Domain Filter
- account_
id string - Identifier.
- allowed_
delivery_ list(string)modes - object
- created_
at string - dmarc_
status string - Available values: "none", "good", "invalid".
- domain string
- drop_
dispositions list(string) - emails_
processed object - folder string
- Available values: "AllItems", "Inbox".
- id string
- Domain identifier.
- inbox_
provider string - Available values: "Microsoft", "Google".
- integration_
id string - ip_
restrictions list(string) - last_
modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - lookback_
hops number - modified_
at string - o365_
tenant_ stringid - regions list(string)
- require_
tls_ boolinbound - require_
tls_ booloutbound - spf_
status string - Available values: "none", "good", "neutral", "open", "invalid".
- status string
- Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- transport string
- domain_
id string - Domain identifier.
- filter object
- account
Id String - Identifier.
- allowed
Delivery List<String>Modes -
Get
Email Security Domain Authorization - created
At String - dmarc
Status String - Available values: "none", "good", "invalid".
- domain String
- drop
Dispositions List<String> - emails
Processed GetEmail Security Domain Emails Processed - folder String
- Available values: "AllItems", "Inbox".
- id String
- Domain identifier.
- inbox
Provider String - Available values: "Microsoft", "Google".
- integration
Id String - ip
Restrictions List<String> - last
Modified String - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - lookback
Hops Integer - modified
At String - o365Tenant
Id String - regions List<String>
- require
Tls BooleanInbound - require
Tls BooleanOutbound - spf
Status String - Available values: "none", "good", "neutral", "open", "invalid".
- status String
- Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- transport String
- domain
Id String - Domain identifier.
- filter
Get
Email Security Domain Filter
- account
Id string - Identifier.
- allowed
Delivery string[]Modes -
Get
Email Security Domain Authorization - created
At string - dmarc
Status string - Available values: "none", "good", "invalid".
- domain string
- drop
Dispositions string[] - emails
Processed GetEmail Security Domain Emails Processed - folder string
- Available values: "AllItems", "Inbox".
- id string
- Domain identifier.
- inbox
Provider string - Available values: "Microsoft", "Google".
- integration
Id string - ip
Restrictions string[] - last
Modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - lookback
Hops number - modified
At string - o365Tenant
Id string - regions string[]
- require
Tls booleanInbound - require
Tls booleanOutbound - spf
Status string - Available values: "none", "good", "neutral", "open", "invalid".
- status string
- Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- transport string
- domain
Id string - Domain identifier.
- filter
Get
Email Security Domain Filter
- account_
id str - Identifier.
- allowed_
delivery_ Sequence[str]modes -
Get
Email Security Domain Authorization - created_
at str - dmarc_
status str - Available values: "none", "good", "invalid".
- domain str
- drop_
dispositions Sequence[str] - emails_
processed GetEmail Security Domain Emails Processed - folder str
- Available values: "AllItems", "Inbox".
- id str
- Domain identifier.
- inbox_
provider str - Available values: "Microsoft", "Google".
- integration_
id str - ip_
restrictions Sequence[str] - last_
modified str - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - lookback_
hops int - modified_
at str - o365_
tenant_ strid - regions Sequence[str]
- require_
tls_ boolinbound - require_
tls_ booloutbound - spf_
status str - Available values: "none", "good", "neutral", "open", "invalid".
- status str
- Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- transport str
- domain_
id str - Domain identifier.
- filter
Get
Email Security Domain Filter
- account
Id String - Identifier.
- allowed
Delivery List<String>Modes - Property Map
- created
At String - dmarc
Status String - Available values: "none", "good", "invalid".
- domain String
- drop
Dispositions List<String> - emails
Processed Property Map - folder String
- Available values: "AllItems", "Inbox".
- id String
- Domain identifier.
- inbox
Provider String - Available values: "Microsoft", "Google".
- integration
Id String - ip
Restrictions List<String> - last
Modified String - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - lookback
Hops Number - modified
At String - o365Tenant
Id String - regions List<String>
- require
Tls BooleanInbound - require
Tls BooleanOutbound - spf
Status String - Available values: "none", "good", "neutral", "open", "invalid".
- status String
- Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- transport String
- domain
Id String - Domain identifier.
- filter Property Map
Supporting Types
GetEmailSecurityDomainAuthorization
- bool
- Status
Message string - Timestamp string
- bool
- Status
Message string - Timestamp string
- bool
- status_
message string - timestamp string
- Boolean
- status
Message String - timestamp String
- boolean
- status
Message string - timestamp string
- bool
- status_
message str - timestamp str
- Boolean
- status
Message String - timestamp String
GetEmailSecurityDomainEmailsProcessed
- Timestamp string
- Total
Emails intProcessed - Total
Emails intProcessed Previous
- Timestamp string
- Total
Emails intProcessed - Total
Emails intProcessed Previous
- timestamp string
- total_
emails_ numberprocessed - total_
emails_ numberprocessed_ previous
- timestamp String
- total
Emails IntegerProcessed - total
Emails IntegerProcessed Previous
- timestamp string
- total
Emails numberProcessed - total
Emails numberProcessed Previous
- timestamp String
- total
Emails NumberProcessed - total
Emails NumberProcessed Previous
GetEmailSecurityDomainFilter
- Active
Delivery stringMode - Currently active delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- Allowed
Delivery stringMode - Delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Domains List<string>
- Domain names to filter by.
- Integration
Id string - Integration ID to filter by.
- Order string
- Field to sort by. Available values: "domain", "createdAt".
- Search string
- Search term for filtering records. Behavior may change.
- Status string
- Filters response to domains with the provided status. Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- Active
Delivery stringMode - Currently active delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- Allowed
Delivery stringMode - Delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Domains []string
- Domain names to filter by.
- Integration
Id string - Integration ID to filter by.
- Order string
- Field to sort by. Available values: "domain", "createdAt".
- Search string
- Search term for filtering records. Behavior may change.
- Status string
- Filters response to domains with the provided status. Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- active_
delivery_ stringmode - Currently active delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- allowed_
delivery_ stringmode - Delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- direction string
- The sorting direction. Available values: "asc", "desc".
- domains list(string)
- Domain names to filter by.
- integration_
id string - Integration ID to filter by.
- order string
- Field to sort by. Available values: "domain", "createdAt".
- search string
- Search term for filtering records. Behavior may change.
- status string
- Filters response to domains with the provided status. Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- active
Delivery StringMode - Currently active delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- allowed
Delivery StringMode - Delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- direction String
- The sorting direction. Available values: "asc", "desc".
- domains List<String>
- Domain names to filter by.
- integration
Id String - Integration ID to filter by.
- order String
- Field to sort by. Available values: "domain", "createdAt".
- search String
- Search term for filtering records. Behavior may change.
- status String
- Filters response to domains with the provided status. Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- active
Delivery stringMode - Currently active delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- allowed
Delivery stringMode - Delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- direction string
- The sorting direction. Available values: "asc", "desc".
- domains string[]
- Domain names to filter by.
- integration
Id string - Integration ID to filter by.
- order string
- Field to sort by. Available values: "domain", "createdAt".
- search string
- Search term for filtering records. Behavior may change.
- status string
- Filters response to domains with the provided status. Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- active_
delivery_ strmode - Currently active delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- allowed_
delivery_ strmode - Delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- direction str
- The sorting direction. Available values: "asc", "desc".
- domains Sequence[str]
- Domain names to filter by.
- integration_
id str - Integration ID to filter by.
- order str
- Field to sort by. Available values: "domain", "createdAt".
- search str
- Search term for filtering records. Behavior may change.
- status str
- Filters response to domains with the provided status. Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
- active
Delivery StringMode - Currently active delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- allowed
Delivery StringMode - Delivery mode to filter by. Available values: "DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN".
- direction String
- The sorting direction. Available values: "asc", "desc".
- domains List<String>
- Domain names to filter by.
- integration
Id String - Integration ID to filter by.
- order String
- Field to sort by. Available values: "domain", "createdAt".
- search String
- Search term for filtering records. Behavior may change.
- status String
- Filters response to domains with the provided status. Available values: "PENDING", "ACTIVE", "FAILED", "TIMEOUT".
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi