1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getEmailSecurityBlockSenders
Viewing docs for Cloudflare v6.19.0
published on Thursday, Aug 6, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.19.0
published on Thursday, Aug 6, 2026 by Pulumi

    Accepted Permissions

    • Cloud Email Security: Read
    • Cloud Email Security: Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleEmailSecurityBlockSenders = cloudflare.getEmailSecurityBlockSenders({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        direction: "asc",
        order: "pattern",
        pattern: "pattern",
        patternType: "EMAIL",
        search: "search",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_security_block_senders = cloudflare.get_email_security_block_senders(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        direction="asc",
        order="pattern",
        pattern="pattern",
        pattern_type="EMAIL",
        search="search")
    
    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.GetEmailSecurityBlockSenders(ctx, &cloudflare.LookupEmailSecurityBlockSendersArgs{
    			AccountId:   pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
    			Direction:   pulumi.StringRef("asc"),
    			Order:       pulumi.StringRef("pattern"),
    			Pattern:     pulumi.StringRef("pattern"),
    			PatternType: pulumi.StringRef("EMAIL"),
    			Search:      pulumi.StringRef("search"),
    		}, 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 exampleEmailSecurityBlockSenders = Cloudflare.GetEmailSecurityBlockSenders.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Direction = "asc",
            Order = "pattern",
            Pattern = "pattern",
            PatternType = "EMAIL",
            Search = "search",
        });
    
    });
    
    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.GetEmailSecurityBlockSendersArgs;
    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 exampleEmailSecurityBlockSenders = CloudflareFunctions.getEmailSecurityBlockSenders(GetEmailSecurityBlockSendersArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .direction("asc")
                .order("pattern")
                .pattern("pattern")
                .patternType("EMAIL")
                .search("search")
                .build());
    
        }
    }
    
    variables:
      exampleEmailSecurityBlockSenders:
        fn::invoke:
          function: cloudflare:getEmailSecurityBlockSenders
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            direction: asc
            order: pattern
            pattern: pattern
            patternType: EMAIL
            search: search
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getemailsecurityblocksenders" "exampleEmailSecurityBlockSenders" {
      account_id   = "023e105f4ecef8ad9ca31a8372d0c353"
      direction    = "asc"
      order        = "pattern"
      pattern      = "pattern"
      pattern_type = "EMAIL"
      search       = "search"
    }
    

    Using getEmailSecurityBlockSenders

    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 getEmailSecurityBlockSenders(args: GetEmailSecurityBlockSendersArgs, opts?: InvokeOptions): Promise<GetEmailSecurityBlockSendersResult>
    function getEmailSecurityBlockSendersOutput(args: GetEmailSecurityBlockSendersOutputArgs, opts?: InvokeOutputOptions): Output<GetEmailSecurityBlockSendersResult>
    def get_email_security_block_senders(account_id: Optional[str] = None,
                                         direction: Optional[str] = None,
                                         max_items: Optional[int] = None,
                                         order: Optional[str] = None,
                                         pattern: Optional[str] = None,
                                         pattern_type: Optional[str] = None,
                                         search: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetEmailSecurityBlockSendersResult
    def get_email_security_block_senders_output(account_id: pulumi.Input[Optional[str]] = None,
                                         direction: pulumi.Input[Optional[str]] = None,
                                         max_items: pulumi.Input[Optional[int]] = None,
                                         order: pulumi.Input[Optional[str]] = None,
                                         pattern: pulumi.Input[Optional[str]] = None,
                                         pattern_type: pulumi.Input[Optional[str]] = None,
                                         search: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetEmailSecurityBlockSendersResult]
    func LookupEmailSecurityBlockSenders(ctx *Context, args *LookupEmailSecurityBlockSendersArgs, opts ...InvokeOption) (*LookupEmailSecurityBlockSendersResult, error)
    func LookupEmailSecurityBlockSendersOutput(ctx *Context, args *LookupEmailSecurityBlockSendersOutputArgs, opts ...InvokeOption) LookupEmailSecurityBlockSendersResultOutput

    > Note: This function is named LookupEmailSecurityBlockSenders in the Go SDK.

    public static class GetEmailSecurityBlockSenders 
    {
        public static Task<GetEmailSecurityBlockSendersResult> InvokeAsync(GetEmailSecurityBlockSendersArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailSecurityBlockSendersResult> Invoke(GetEmailSecurityBlockSendersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailSecurityBlockSendersResult> Invoke(GetEmailSecurityBlockSendersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetEmailSecurityBlockSendersResult> getEmailSecurityBlockSenders(GetEmailSecurityBlockSendersArgs args, InvokeOptions options)
    public static Output<GetEmailSecurityBlockSendersResult> getEmailSecurityBlockSenders(GetEmailSecurityBlockSendersArgs args, InvokeOptions options)
    public static Output<GetEmailSecurityBlockSendersResult> getEmailSecurityBlockSenders(GetEmailSecurityBlockSendersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getEmailSecurityBlockSenders:getEmailSecurityBlockSenders
      arguments:
        # arguments dictionary
    data "cloudflare_get_email_security_block_senders" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Direction string
    MaxItems int
    Order string
    Pattern string
    PatternType string
    Search string
    AccountId string
    Direction string
    MaxItems int
    Order string
    Pattern string
    PatternType string
    Search string
    account_id string
    direction string
    max_items number
    order string
    pattern string
    pattern_type string
    search string
    accountId String
    direction String
    maxItems Integer
    order String
    pattern String
    patternType String
    search String
    accountId string
    direction string
    maxItems number
    order string
    pattern string
    patternType string
    search string
    accountId String
    direction String
    maxItems Number
    order String
    pattern String
    patternType String
    search String

    getEmailSecurityBlockSenders Result

    The following output properties are available:

    Supporting Types

    GetEmailSecurityBlockSendersResult

    Comments string
    CreatedAt string
    Id string
    Blocked sender pattern identifier
    IsRegex bool
    LastModified string
    Deprecated, use modifiedAt instead. End of life: November 1, 2026.

    Deprecated: Use modifiedAt instead.

    ModifiedAt string
    Pattern string
    The pattern value to match against. Format depends on patternType:

    • EMAIL: a valid email address, e.g. user@example.com
    • DOMAIN: a valid domain name, e.g. example.com
    • IP: a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted; private, loopback, link-local, and unspecified addresses are rejected.
    PatternType string
    Type of pattern matching.

    • EMAIL: matches a full email address (e.g. user@example.com)
    • DOMAIN: matches a domain name (e.g. example.com)
    • IP: matches a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted.
    • UNKNOWN: deprecated, cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Comments string
    CreatedAt string
    Id string
    Blocked sender pattern identifier
    IsRegex bool
    LastModified string
    Deprecated, use modifiedAt instead. End of life: November 1, 2026.

    Deprecated: Use modifiedAt instead.

    ModifiedAt string
    Pattern string
    The pattern value to match against. Format depends on patternType:

    • EMAIL: a valid email address, e.g. user@example.com
    • DOMAIN: a valid domain name, e.g. example.com
    • IP: a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted; private, loopback, link-local, and unspecified addresses are rejected.
    PatternType string
    Type of pattern matching.

    • EMAIL: matches a full email address (e.g. user@example.com)
    • DOMAIN: matches a domain name (e.g. example.com)
    • IP: matches a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted.
    • UNKNOWN: deprecated, cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments string
    created_at string
    id string
    Blocked sender pattern identifier
    is_regex bool
    last_modified string
    Deprecated, use modifiedAt instead. End of life: November 1, 2026.

    Deprecated: Use modifiedAt instead.

    modified_at string
    pattern string
    The pattern value to match against. Format depends on patternType:

    • EMAIL: a valid email address, e.g. user@example.com
    • DOMAIN: a valid domain name, e.g. example.com
    • IP: a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted; private, loopback, link-local, and unspecified addresses are rejected.
    pattern_type string
    Type of pattern matching.

    • EMAIL: matches a full email address (e.g. user@example.com)
    • DOMAIN: matches a domain name (e.g. example.com)
    • IP: matches a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted.
    • UNKNOWN: deprecated, cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments String
    createdAt String
    id String
    Blocked sender pattern identifier
    isRegex Boolean
    lastModified String
    Deprecated, use modifiedAt instead. End of life: November 1, 2026.

    Deprecated: Use modifiedAt instead.

    modifiedAt String
    pattern String
    The pattern value to match against. Format depends on patternType:

    • EMAIL: a valid email address, e.g. user@example.com
    • DOMAIN: a valid domain name, e.g. example.com
    • IP: a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted; private, loopback, link-local, and unspecified addresses are rejected.
    patternType String
    Type of pattern matching.

    • EMAIL: matches a full email address (e.g. user@example.com)
    • DOMAIN: matches a domain name (e.g. example.com)
    • IP: matches a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted.
    • UNKNOWN: deprecated, cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments string
    createdAt string
    id string
    Blocked sender pattern identifier
    isRegex boolean
    lastModified string
    Deprecated, use modifiedAt instead. End of life: November 1, 2026.

    Deprecated: Use modifiedAt instead.

    modifiedAt string
    pattern string
    The pattern value to match against. Format depends on patternType:

    • EMAIL: a valid email address, e.g. user@example.com
    • DOMAIN: a valid domain name, e.g. example.com
    • IP: a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted; private, loopback, link-local, and unspecified addresses are rejected.
    patternType string
    Type of pattern matching.

    • EMAIL: matches a full email address (e.g. user@example.com)
    • DOMAIN: matches a domain name (e.g. example.com)
    • IP: matches a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted.
    • UNKNOWN: deprecated, cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments str
    created_at str
    id str
    Blocked sender pattern identifier
    is_regex bool
    last_modified str
    Deprecated, use modifiedAt instead. End of life: November 1, 2026.

    Deprecated: Use modifiedAt instead.

    modified_at str
    pattern str
    The pattern value to match against. Format depends on patternType:

    • EMAIL: a valid email address, e.g. user@example.com
    • DOMAIN: a valid domain name, e.g. example.com
    • IP: a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted; private, loopback, link-local, and unspecified addresses are rejected.
    pattern_type str
    Type of pattern matching.

    • EMAIL: matches a full email address (e.g. user@example.com)
    • DOMAIN: matches a domain name (e.g. example.com)
    • IP: matches a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted.
    • UNKNOWN: deprecated, cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments String
    createdAt String
    id String
    Blocked sender pattern identifier
    isRegex Boolean
    lastModified String
    Deprecated, use modifiedAt instead. End of life: November 1, 2026.

    Deprecated: Use modifiedAt instead.

    modifiedAt String
    pattern String
    The pattern value to match against. Format depends on patternType:

    • EMAIL: a valid email address, e.g. user@example.com
    • DOMAIN: a valid domain name, e.g. example.com
    • IP: a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted; private, loopback, link-local, and unspecified addresses are rejected.
    patternType String
    Type of pattern matching.

    • EMAIL: matches a full email address (e.g. user@example.com)
    • DOMAIN: matches a domain name (e.g. example.com)
    • IP: matches a plain IPv4 address (e.g. 1.2.3.4) or an IPv4 CIDR block (e.g. 1.2.3.0/24). Only globally reachable addresses are accepted.
    • UNKNOWN: deprecated, cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo cloudflare logo
    Viewing docs for Cloudflare v6.19.0
    published on Thursday, Aug 6, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial