Viewing docs for Cloudflare v6.19.0
published on Thursday, Aug 6, 2026 by Pulumi
published on Thursday, Aug 6, 2026 by Pulumi
Viewing docs for Cloudflare v6.19.0
published on Thursday, Aug 6, 2026 by Pulumi
published on Thursday, Aug 6, 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 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 dictionarydata "cloudflare_get_email_security_block_senders" "name" {
# arguments
}The following arguments are supported:
- account_
id string - direction string
- max_
items number - order string
- pattern string
- pattern_
type string - search string
- account_
id str - direction str
- max_
items int - order str
- pattern str
- pattern_
type str - search str
getEmailSecurityBlockSenders Result
The following output properties are available:
- Results
List<Get
Email Security Block Senders Result> - Account
Id string - Direction string
- Max
Items int - Order string
- Pattern string
- Pattern
Type string - Search string
- Results
[]Get
Email Security Block Senders Result - Account
Id string - Direction string
- Max
Items int - Order string
- Pattern string
- Pattern
Type string - Search string
- results list(object)
- account_
id string - direction string
- max_
items number - order string
- pattern string
- pattern_
type string - search string
- results
List<Get
Email Security Block Senders Result> - account
Id String - direction String
- max
Items Integer - order String
- pattern String
- pattern
Type String - search String
- results
Get
Email Security Block Senders Result[] - account
Id string - direction string
- max
Items number - order string
- pattern string
- pattern
Type string - search string
- results
Sequence[Get
Email Security Block Senders Result] - account_
id str - direction str
- max_
items int - order str
- pattern str
- pattern_
type str - search str
- results List<Property Map>
- account
Id String - direction String
- max
Items Number - order String
- pattern String
- pattern
Type String - search String
Supporting Types
GetEmailSecurityBlockSendersResult
- Comments string
- Created
At string - Id string
- Blocked sender pattern identifier
- Is
Regex bool - Last
Modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - 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.
- EMAIL: a valid email address, e.g.
- 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".
- EMAIL: matches a full email address (e.g.
- Comments string
- Created
At string - Id string
- Blocked sender pattern identifier
- Is
Regex bool - Last
Modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - 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.
- EMAIL: a valid email address, e.g.
- 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".
- EMAIL: matches a full email address (e.g.
- comments string
- created_
at string - id string
- Blocked sender pattern identifier
- is_
regex bool - last_
modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - 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.
- EMAIL: a valid email address, e.g.
- 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".
- EMAIL: matches a full email address (e.g.
- comments String
- created
At String - id String
- Blocked sender pattern identifier
- is
Regex Boolean - last
Modified String - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - 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.
- EMAIL: a valid email address, e.g.
- 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".
- EMAIL: matches a full email address (e.g.
- comments string
- created
At string - id string
- Blocked sender pattern identifier
- is
Regex boolean - last
Modified string - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - 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.
- EMAIL: a valid email address, e.g.
- 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".
- EMAIL: matches a full email address (e.g.
- comments str
- created_
at str - id str
- Blocked sender pattern identifier
- is_
regex bool - last_
modified str - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - 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.
- EMAIL: a valid email address, e.g.
- 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".
- EMAIL: matches a full email address (e.g.
- comments String
- created
At String - id String
- Blocked sender pattern identifier
- is
Regex Boolean - last
Modified String - Deprecated, use
modifiedAtinstead. End of life: November 1, 2026. - 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.
- EMAIL: a valid email address, e.g.
- 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".
- EMAIL: matches a full email address (e.g.
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.19.0
published on Thursday, Aug 6, 2026 by Pulumi
published on Thursday, Aug 6, 2026 by Pulumi