1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getEmailSecurityBlockSenders
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getEmailSecurityBlockSenders

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleEmailSecurityBlockSenders = cloudflare.getEmailSecurityBlockSenders({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        direction: "asc",
        order: "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_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.LookupEmailSecurityBlockSenders(ctx, &cloudflare.LookupEmailSecurityBlockSendersArgs{
    			AccountId:   "023e105f4ecef8ad9ca31a8372d0c353",
    			Direction:   pulumi.StringRef("asc"),
    			Order:       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",
            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.List;
    import java.util.ArrayList;
    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")
                .patternType("EMAIL")
                .search("search")
                .build());
    
        }
    }
    
    variables:
      exampleEmailSecurityBlockSenders:
        fn::invoke:
          function: cloudflare:getEmailSecurityBlockSenders
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            direction: asc
            order: pattern
            patternType: 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?: InvokeOptions): 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_type: Optional[str] = None,
                                         search: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetEmailSecurityBlockSendersResult
    def get_email_security_block_senders_output(account_id: Optional[pulumi.Input[str]] = None,
                                         direction: Optional[pulumi.Input[str]] = None,
                                         max_items: Optional[pulumi.Input[int]] = None,
                                         order: Optional[pulumi.Input[str]] = None,
                                         pattern_type: Optional[pulumi.Input[str]] = None,
                                         search: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = 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 CompletableFuture<GetEmailSecurityBlockSendersResult> getEmailSecurityBlockSenders(GetEmailSecurityBlockSendersArgs args, InvokeOptions options)
    public static Output<GetEmailSecurityBlockSendersResult> getEmailSecurityBlockSenders(GetEmailSecurityBlockSendersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getEmailSecurityBlockSenders:getEmailSecurityBlockSenders
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account Identifier
    Direction string
    The sorting direction. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    The field to sort by. Available values: "pattern", "created_at".
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    AccountId string
    Account Identifier
    Direction string
    The sorting direction. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    The field to sort by. Available values: "pattern", "created_at".
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    accountId String
    Account Identifier
    direction String
    The sorting direction. Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    The field to sort by. Available values: "pattern", "created_at".
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search String
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    accountId string
    Account Identifier
    direction string
    The sorting direction. Available values: "asc", "desc".
    maxItems number
    Max items to fetch, default: 1000
    order string
    The field to sort by. Available values: "pattern", "created_at".
    patternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    account_id str
    Account Identifier
    direction str
    The sorting direction. Available values: "asc", "desc".
    max_items int
    Max items to fetch, default: 1000
    order str
    The field to sort by. Available values: "pattern", "created_at".
    pattern_type str
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search str
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    accountId String
    Account Identifier
    direction String
    The sorting direction. Available values: "asc", "desc".
    maxItems Number
    Max items to fetch, default: 1000
    order String
    The field to sort by. Available values: "pattern", "created_at".
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search String
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.

    getEmailSecurityBlockSenders Result

    The following output properties are available:

    AccountId string
    Account Identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetEmailSecurityBlockSendersResult>
    The items returned by the data source
    Direction string
    The sorting direction. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    The field to sort by. Available values: "pattern", "created_at".
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    AccountId string
    Account Identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetEmailSecurityBlockSendersResult
    The items returned by the data source
    Direction string
    The sorting direction. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    The field to sort by. Available values: "pattern", "created_at".
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    accountId String
    Account Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetEmailSecurityBlockSendersResult>
    The items returned by the data source
    direction String
    The sorting direction. Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    The field to sort by. Available values: "pattern", "created_at".
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search String
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    accountId string
    Account Identifier
    id string
    The provider-assigned unique ID for this managed resource.
    results GetEmailSecurityBlockSendersResult[]
    The items returned by the data source
    direction string
    The sorting direction. Available values: "asc", "desc".
    maxItems number
    Max items to fetch, default: 1000
    order string
    The field to sort by. Available values: "pattern", "created_at".
    patternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    account_id str
    Account Identifier
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetEmailSecurityBlockSendersResult]
    The items returned by the data source
    direction str
    The sorting direction. Available values: "asc", "desc".
    max_items int
    Max items to fetch, default: 1000
    order str
    The field to sort by. Available values: "pattern", "created_at".
    pattern_type str
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search str
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    accountId String
    Account Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    direction String
    The sorting direction. Available values: "asc", "desc".
    maxItems Number
    Max items to fetch, default: 1000
    order String
    The field to sort by. Available values: "pattern", "created_at".
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    search String
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.

    Supporting Types

    GetEmailSecurityBlockSendersResult

    Comments string
    CreatedAt string
    Id int
    The unique identifier for the allow policy.
    IsRegex bool
    LastModified string
    Pattern string
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Comments string
    CreatedAt string
    Id int
    The unique identifier for the allow policy.
    IsRegex bool
    LastModified string
    Pattern string
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments String
    createdAt String
    id Integer
    The unique identifier for the allow policy.
    isRegex Boolean
    lastModified String
    pattern String
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments string
    createdAt string
    id number
    The unique identifier for the allow policy.
    isRegex boolean
    lastModified string
    pattern string
    patternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments str
    created_at str
    id int
    The unique identifier for the allow policy.
    is_regex bool
    last_modified str
    pattern str
    pattern_type str
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments String
    createdAt String
    id Number
    The unique identifier for the allow policy.
    isRegex Boolean
    lastModified String
    pattern String
    patternType String
    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 v6.1.2 published on Monday, Apr 28, 2025 by Pulumi