Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 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 exampleEmailSecurityBlockSender = cloudflare.getEmailSecurityBlockSender({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
patternId: "2402",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_email_security_block_sender = cloudflare.get_email_security_block_sender(account_id="023e105f4ecef8ad9ca31a8372d0c353",
pattern_id="2402")
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.GetEmailSecurityBlockSender(ctx, &cloudflare.LookupEmailSecurityBlockSenderArgs{
AccountId: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
PatternId: pulumi.StringRef("2402"),
}, 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 exampleEmailSecurityBlockSender = Cloudflare.GetEmailSecurityBlockSender.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
PatternId = "2402",
});
});
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.GetEmailSecurityBlockSenderArgs;
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 exampleEmailSecurityBlockSender = CloudflareFunctions.getEmailSecurityBlockSender(GetEmailSecurityBlockSenderArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.patternId("2402")
.build());
}
}
variables:
exampleEmailSecurityBlockSender:
fn::invoke:
function: cloudflare:getEmailSecurityBlockSender
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
patternId: 2402
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getemailsecurityblocksender" "exampleEmailSecurityBlockSender" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
pattern_id = 2402
}
Using getEmailSecurityBlockSender
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 getEmailSecurityBlockSender(args: GetEmailSecurityBlockSenderArgs, opts?: InvokeOptions): Promise<GetEmailSecurityBlockSenderResult>
function getEmailSecurityBlockSenderOutput(args: GetEmailSecurityBlockSenderOutputArgs, opts?: InvokeOptions): Output<GetEmailSecurityBlockSenderResult>def get_email_security_block_sender(account_id: Optional[str] = None,
filter: Optional[GetEmailSecurityBlockSenderFilter] = None,
pattern_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEmailSecurityBlockSenderResult
def get_email_security_block_sender_output(account_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetEmailSecurityBlockSenderFilterArgs]] = None,
pattern_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEmailSecurityBlockSenderResult]func LookupEmailSecurityBlockSender(ctx *Context, args *LookupEmailSecurityBlockSenderArgs, opts ...InvokeOption) (*LookupEmailSecurityBlockSenderResult, error)
func LookupEmailSecurityBlockSenderOutput(ctx *Context, args *LookupEmailSecurityBlockSenderOutputArgs, opts ...InvokeOption) LookupEmailSecurityBlockSenderResultOutput> Note: This function is named LookupEmailSecurityBlockSender in the Go SDK.
public static class GetEmailSecurityBlockSender
{
public static Task<GetEmailSecurityBlockSenderResult> InvokeAsync(GetEmailSecurityBlockSenderArgs args, InvokeOptions? opts = null)
public static Output<GetEmailSecurityBlockSenderResult> Invoke(GetEmailSecurityBlockSenderInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEmailSecurityBlockSenderResult> getEmailSecurityBlockSender(GetEmailSecurityBlockSenderArgs args, InvokeOptions options)
public static Output<GetEmailSecurityBlockSenderResult> getEmailSecurityBlockSender(GetEmailSecurityBlockSenderArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getEmailSecurityBlockSender:getEmailSecurityBlockSender
arguments:
# arguments dictionarydata "cloudflare_getemailsecurityblocksender" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Identifier.
- Filter
Get
Email Security Block Sender Filter - Pattern
Id string - Blocked sender pattern identifier
- Account
Id string - Identifier.
- Filter
Get
Email Security Block Sender Filter - Pattern
Id string - Blocked sender pattern identifier
- account_
id string - Identifier.
- filter object
- pattern_
id string - Blocked sender pattern identifier
- account
Id String - Identifier.
- filter
Get
Email Security Block Sender Filter - pattern
Id String - Blocked sender pattern identifier
- account
Id string - Identifier.
- filter
Get
Email Security Block Sender Filter - pattern
Id string - Blocked sender pattern identifier
- account_
id str - Identifier.
- filter
Get
Email Security Block Sender Filter - pattern_
id str - Blocked sender pattern identifier
- account
Id String - Identifier.
- filter Property Map
- pattern
Id String - Blocked sender pattern identifier
getEmailSecurityBlockSender Result
The following output properties are available:
- 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
- Pattern
Type string - Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Account
Id string - Identifier.
- Filter
Get
Email Security Block Sender Filter - Pattern
Id string - Blocked sender pattern identifier
- 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
- Pattern
Type string - Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Account
Id string - Identifier.
- Filter
Get
Email Security Block Sender Filter - Pattern
Id string - Blocked sender pattern identifier
- 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
- pattern_
type string - Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- account_
id string - Identifier.
- filter object
- pattern_
id string - Blocked sender pattern identifier
- 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
- pattern
Type String - Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- account
Id String - Identifier.
- filter
Get
Email Security Block Sender Filter - pattern
Id String - Blocked sender pattern identifier
- 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
- pattern
Type string - Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- account
Id string - Identifier.
- filter
Get
Email Security Block Sender Filter - pattern
Id string - Blocked sender pattern identifier
- 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
- pattern_
type str - Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- account_
id str - Identifier.
- filter
Get
Email Security Block Sender Filter - pattern_
id str - Blocked sender pattern identifier
- 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
- pattern
Type String - Type of pattern matching. Note: UNKNOWN is deprecated and cannot be used when creating or updating policies, but may be returned for existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- account
Id String - Identifier.
- filter Property Map
- pattern
Id String - Blocked sender pattern identifier
Supporting Types
GetEmailSecurityBlockSenderFilter
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Order string
- Field to sort by. Available values: "pattern", "createdAt".
- Pattern string
- Filter by pattern value.
- Pattern
Type string - Filter by pattern type. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Search string
- Search term for filtering records. Behavior may change.
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Order string
- Field to sort by. Available values: "pattern", "createdAt".
- Pattern string
- Filter by pattern value.
- Pattern
Type string - Filter by pattern type. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Search string
- Search term for filtering records. Behavior may change.
- direction string
- The sorting direction. Available values: "asc", "desc".
- order string
- Field to sort by. Available values: "pattern", "createdAt".
- pattern string
- Filter by pattern value.
- pattern_
type string - Filter by pattern type. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- search string
- Search term for filtering records. Behavior may change.
- direction String
- The sorting direction. Available values: "asc", "desc".
- order String
- Field to sort by. Available values: "pattern", "createdAt".
- pattern String
- Filter by pattern value.
- pattern
Type String - Filter by pattern type. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- search String
- Search term for filtering records. Behavior may change.
- direction string
- The sorting direction. Available values: "asc", "desc".
- order string
- Field to sort by. Available values: "pattern", "createdAt".
- pattern string
- Filter by pattern value.
- pattern
Type string - Filter by pattern type. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- search string
- Search term for filtering records. Behavior may change.
- direction str
- The sorting direction. Available values: "asc", "desc".
- order str
- Field to sort by. Available values: "pattern", "createdAt".
- pattern str
- Filter by pattern value.
- pattern_
type str - Filter by pattern type. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- search str
- Search term for filtering records. Behavior may change.
- direction String
- The sorting direction. Available values: "asc", "desc".
- order String
- Field to sort by. Available values: "pattern", "createdAt".
- pattern String
- Filter by pattern value.
- pattern
Type String - Filter by pattern type. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- search String
- Search term for filtering records. Behavior may change.
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.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi