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 exampleEmailSecurityAllowPolicy = cloudflare.getEmailSecurityAllowPolicy({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
policyId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_email_security_allow_policy = cloudflare.get_email_security_allow_policy(account_id="023e105f4ecef8ad9ca31a8372d0c353",
policy_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.GetEmailSecurityAllowPolicy(ctx, &cloudflare.LookupEmailSecurityAllowPolicyArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
PolicyId: 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 exampleEmailSecurityAllowPolicy = Cloudflare.GetEmailSecurityAllowPolicy.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
PolicyId = "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.GetEmailSecurityAllowPolicyArgs;
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 exampleEmailSecurityAllowPolicy = CloudflareFunctions.getEmailSecurityAllowPolicy(GetEmailSecurityAllowPolicyArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.policyId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
.build());
}
}
variables:
exampleEmailSecurityAllowPolicy:
fn::invoke:
function: cloudflare:getEmailSecurityAllowPolicy
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
policyId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getemailsecurityallowpolicy" "exampleEmailSecurityAllowPolicy" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
policy_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
}
Using getEmailSecurityAllowPolicy
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 getEmailSecurityAllowPolicy(args: GetEmailSecurityAllowPolicyArgs, opts?: InvokeOptions): Promise<GetEmailSecurityAllowPolicyResult>
function getEmailSecurityAllowPolicyOutput(args: GetEmailSecurityAllowPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetEmailSecurityAllowPolicyResult>def get_email_security_allow_policy(account_id: Optional[str] = None,
filter: Optional[GetEmailSecurityAllowPolicyFilter] = None,
policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEmailSecurityAllowPolicyResult
def get_email_security_allow_policy_output(account_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetEmailSecurityAllowPolicyFilterArgs]] = None,
policy_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetEmailSecurityAllowPolicyResult]func LookupEmailSecurityAllowPolicy(ctx *Context, args *LookupEmailSecurityAllowPolicyArgs, opts ...InvokeOption) (*LookupEmailSecurityAllowPolicyResult, error)
func LookupEmailSecurityAllowPolicyOutput(ctx *Context, args *LookupEmailSecurityAllowPolicyOutputArgs, opts ...InvokeOption) LookupEmailSecurityAllowPolicyResultOutput> Note: This function is named LookupEmailSecurityAllowPolicy in the Go SDK.
public static class GetEmailSecurityAllowPolicy
{
public static Task<GetEmailSecurityAllowPolicyResult> InvokeAsync(GetEmailSecurityAllowPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetEmailSecurityAllowPolicyResult> Invoke(GetEmailSecurityAllowPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetEmailSecurityAllowPolicyResult> Invoke(GetEmailSecurityAllowPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetEmailSecurityAllowPolicyResult> getEmailSecurityAllowPolicy(GetEmailSecurityAllowPolicyArgs args, InvokeOptions options)
public static Output<GetEmailSecurityAllowPolicyResult> getEmailSecurityAllowPolicy(GetEmailSecurityAllowPolicyArgs args, InvokeOptions options)
public static Output<GetEmailSecurityAllowPolicyResult> getEmailSecurityAllowPolicy(GetEmailSecurityAllowPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getEmailSecurityAllowPolicy:getEmailSecurityAllowPolicy
arguments:
# arguments dictionarydata "cloudflare_get_email_security_allow_policy" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Filter
Get
Email Security Allow Policy Filter - Policy
Id string
- Account
Id string - Filter
Get
Email Security Allow Policy Filter - Policy
Id string
- account_
id string - filter object
- policy_
id string
- account
Id String - filter
Get
Email Security Allow Policy Filter - policy
Id String
- account
Id string - filter
Get
Email Security Allow Policy Filter - policy
Id string
- account
Id String - filter Property Map
- policy
Id String
getEmailSecurityAllowPolicy Result
The following output properties are available:
- Account
Id string - Comments string
- Created
At string - Id string
- Is
Acceptable boolSender - Is
Exempt boolRecipient - Is
Recipient bool - Is
Regex bool - Is
Sender bool - Is
Spoof bool - Is
Trusted boolSender - Last
Modified string - Modified
At string - Pattern string
- Pattern
Type string - Verify
Sender bool - Filter
Get
Email Security Allow Policy Filter - Policy
Id string
- Account
Id string - Comments string
- Created
At string - Id string
- Is
Acceptable boolSender - Is
Exempt boolRecipient - Is
Recipient bool - Is
Regex bool - Is
Sender bool - Is
Spoof bool - Is
Trusted boolSender - Last
Modified string - Modified
At string - Pattern string
- Pattern
Type string - Verify
Sender bool - Filter
Get
Email Security Allow Policy Filter - Policy
Id string
- account_
id string - comments string
- created_
at string - id string
- is_
acceptable_ boolsender - is_
exempt_ boolrecipient - is_
recipient bool - is_
regex bool - is_
sender bool - is_
spoof bool - is_
trusted_ boolsender - last_
modified string - modified_
at string - pattern string
- pattern_
type string - verify_
sender bool - filter object
- policy_
id string
- account
Id String - comments String
- created
At String - id String
- is
Acceptable BooleanSender - is
Exempt BooleanRecipient - is
Recipient Boolean - is
Regex Boolean - is
Sender Boolean - is
Spoof Boolean - is
Trusted BooleanSender - last
Modified String - modified
At String - pattern String
- pattern
Type String - verify
Sender Boolean - filter
Get
Email Security Allow Policy Filter - policy
Id String
- account
Id string - comments string
- created
At string - id string
- is
Acceptable booleanSender - is
Exempt booleanRecipient - is
Recipient boolean - is
Regex boolean - is
Sender boolean - is
Spoof boolean - is
Trusted booleanSender - last
Modified string - modified
At string - pattern string
- pattern
Type string - verify
Sender boolean - filter
Get
Email Security Allow Policy Filter - policy
Id string
- account_
id str - comments str
- created_
at str - id str
- is_
acceptable_ boolsender - is_
exempt_ boolrecipient - is_
recipient bool - is_
regex bool - is_
sender bool - is_
spoof bool - is_
trusted_ boolsender - last_
modified str - modified_
at str - pattern str
- pattern_
type str - verify_
sender bool - filter
Get
Email Security Allow Policy Filter - policy_
id str
- account
Id String - comments String
- created
At String - id String
- is
Acceptable BooleanSender - is
Exempt BooleanRecipient - is
Recipient Boolean - is
Regex Boolean - is
Sender Boolean - is
Spoof Boolean - is
Trusted BooleanSender - last
Modified String - modified
At String - pattern String
- pattern
Type String - verify
Sender Boolean - filter Property Map
- policy
Id String
Supporting Types
GetEmailSecurityAllowPolicyFilter
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Is
Acceptable boolSender - Filter to show only policies where messages from the sender are exempted from Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
- Is
Exempt boolRecipient - Filter to show only policies where messages to the recipient bypass all detections.
- Is
Trusted boolSender - Filter to show only policies where messages from the sender bypass all detections and link following.
- Order string
- Field to sort by. Available values: "pattern", "createdAt".
- Pattern string
- 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 or IPv6 address (e.g.
1.2.3.4or2606:4700:4700::1111) or CIDR block (e.g.1.2.3.0/24or2606:4700:4700::/48). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- EMAIL: matches a full email address (e.g.
- Search string
- Search term for filtering records. Behavior may change.
- Verify
Sender bool - Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Is
Acceptable boolSender - Filter to show only policies where messages from the sender are exempted from Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
- Is
Exempt boolRecipient - Filter to show only policies where messages to the recipient bypass all detections.
- Is
Trusted boolSender - Filter to show only policies where messages from the sender bypass all detections and link following.
- Order string
- Field to sort by. Available values: "pattern", "createdAt".
- Pattern string
- 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 or IPv6 address (e.g.
1.2.3.4or2606:4700:4700::1111) or CIDR block (e.g.1.2.3.0/24or2606:4700:4700::/48). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- EMAIL: matches a full email address (e.g.
- Search string
- Search term for filtering records. Behavior may change.
- Verify
Sender bool - Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
- direction string
- The sorting direction. Available values: "asc", "desc".
- is_
acceptable_ boolsender - Filter to show only policies where messages from the sender are exempted from Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
- is_
exempt_ boolrecipient - Filter to show only policies where messages to the recipient bypass all detections.
- is_
trusted_ boolsender - Filter to show only policies where messages from the sender bypass all detections and link following.
- order string
- Field to sort by. Available values: "pattern", "createdAt".
- pattern string
- 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 or IPv6 address (e.g.
1.2.3.4or2606:4700:4700::1111) or CIDR block (e.g.1.2.3.0/24or2606:4700:4700::/48). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- EMAIL: matches a full email address (e.g.
- search string
- Search term for filtering records. Behavior may change.
- verify_
sender bool - Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
- direction String
- The sorting direction. Available values: "asc", "desc".
- is
Acceptable BooleanSender - Filter to show only policies where messages from the sender are exempted from Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
- is
Exempt BooleanRecipient - Filter to show only policies where messages to the recipient bypass all detections.
- is
Trusted BooleanSender - Filter to show only policies where messages from the sender bypass all detections and link following.
- order String
- Field to sort by. Available values: "pattern", "createdAt".
- pattern String
- 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 or IPv6 address (e.g.
1.2.3.4or2606:4700:4700::1111) or CIDR block (e.g.1.2.3.0/24or2606:4700:4700::/48). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- EMAIL: matches a full email address (e.g.
- search String
- Search term for filtering records. Behavior may change.
- verify
Sender Boolean - Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
- direction string
- The sorting direction. Available values: "asc", "desc".
- is
Acceptable booleanSender - Filter to show only policies where messages from the sender are exempted from Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
- is
Exempt booleanRecipient - Filter to show only policies where messages to the recipient bypass all detections.
- is
Trusted booleanSender - Filter to show only policies where messages from the sender bypass all detections and link following.
- order string
- Field to sort by. Available values: "pattern", "createdAt".
- pattern string
- 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 or IPv6 address (e.g.
1.2.3.4or2606:4700:4700::1111) or CIDR block (e.g.1.2.3.0/24or2606:4700:4700::/48). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- EMAIL: matches a full email address (e.g.
- search string
- Search term for filtering records. Behavior may change.
- verify
Sender boolean - Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
- direction str
- The sorting direction. Available values: "asc", "desc".
- is_
acceptable_ boolsender - Filter to show only policies where messages from the sender are exempted from Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
- is_
exempt_ boolrecipient - Filter to show only policies where messages to the recipient bypass all detections.
- is_
trusted_ boolsender - Filter to show only policies where messages from the sender bypass all detections and link following.
- order str
- Field to sort by. Available values: "pattern", "createdAt".
- pattern str
- 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 or IPv6 address (e.g.
1.2.3.4or2606:4700:4700::1111) or CIDR block (e.g.1.2.3.0/24or2606:4700:4700::/48). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- EMAIL: matches a full email address (e.g.
- search str
- Search term for filtering records. Behavior may change.
- verify_
sender bool - Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
- direction String
- The sorting direction. Available values: "asc", "desc".
- is
Acceptable BooleanSender - Filter to show only policies where messages from the sender are exempted from Spam, Spoof, and Bulk dispositions (not Malicious or Suspicious).
- is
Exempt BooleanRecipient - Filter to show only policies where messages to the recipient bypass all detections.
- is
Trusted BooleanSender - Filter to show only policies where messages from the sender bypass all detections and link following.
- order String
- Field to sort by. Available values: "pattern", "createdAt".
- pattern String
- 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 or IPv6 address (e.g.
1.2.3.4or2606:4700:4700::1111) or CIDR block (e.g.1.2.3.0/24or2606:4700:4700::/48). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- EMAIL: matches a full email address (e.g.
- search String
- Search term for filtering records. Behavior may change.
- verify
Sender Boolean - Filter to show only policies that enforce DMARC, SPF, or DKIM authentication.
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