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

cloudflare.getEmailSecurityBlockSender

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 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.LookupEmailSecurityBlockSender(ctx, &cloudflare.LookupEmailSecurityBlockSenderArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			PatternId: pulumi.IntRef(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.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 exampleEmailSecurityBlockSender = CloudflareFunctions.getEmailSecurityBlockSender(GetEmailSecurityBlockSenderArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .patternId(2402)
                .build());
    
        }
    }
    
    variables:
      exampleEmailSecurityBlockSender:
        fn::invoke:
          function: cloudflare:getEmailSecurityBlockSender
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            patternId: 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[int] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetEmailSecurityBlockSenderResult
    def get_email_security_block_sender_output(account_id: Optional[pulumi.Input[str]] = None,
                                        filter: Optional[pulumi.Input[GetEmailSecurityBlockSenderFilterArgs]] = None,
                                        pattern_id: Optional[pulumi.Input[int]] = 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 dictionary

    The following arguments are supported:

    AccountId string
    Account Identifier
    Filter GetEmailSecurityBlockSenderFilter
    PatternId int
    The unique identifier for the allow policy.
    AccountId string
    Account Identifier
    Filter GetEmailSecurityBlockSenderFilter
    PatternId int
    The unique identifier for the allow policy.
    accountId String
    Account Identifier
    filter GetEmailSecurityBlockSenderFilter
    patternId Integer
    The unique identifier for the allow policy.
    accountId string
    Account Identifier
    filter GetEmailSecurityBlockSenderFilter
    patternId number
    The unique identifier for the allow policy.
    account_id str
    Account Identifier
    filter GetEmailSecurityBlockSenderFilter
    pattern_id int
    The unique identifier for the allow policy.
    accountId String
    Account Identifier
    filter Property Map
    patternId Number
    The unique identifier for the allow policy.

    getEmailSecurityBlockSender Result

    The following output properties are available:

    AccountId string
    Account Identifier
    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".
    Filter GetEmailSecurityBlockSenderFilter
    PatternId int
    The unique identifier for the allow policy.
    AccountId string
    Account Identifier
    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".
    Filter GetEmailSecurityBlockSenderFilter
    PatternId int
    The unique identifier for the allow policy.
    accountId String
    Account Identifier
    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".
    filter GetEmailSecurityBlockSenderFilter
    patternId Integer
    The unique identifier for the allow policy.
    accountId string
    Account Identifier
    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".
    filter GetEmailSecurityBlockSenderFilter
    patternId number
    The unique identifier for the allow policy.
    account_id str
    Account Identifier
    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".
    filter GetEmailSecurityBlockSenderFilter
    pattern_id int
    The unique identifier for the allow policy.
    accountId String
    Account Identifier
    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".
    filter Property Map
    patternId Number
    The unique identifier for the allow policy.

    Supporting Types

    GetEmailSecurityBlockSenderFilter

    Direction string
    The sorting direction. Available values: "asc", "desc".
    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.
    Direction string
    The sorting direction. Available values: "asc", "desc".
    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.
    direction String
    The sorting direction. Available values: "asc", "desc".
    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.
    direction string
    The sorting direction. Available values: "asc", "desc".
    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.
    direction str
    The sorting direction. Available values: "asc", "desc".
    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.
    direction String
    The sorting direction. Available values: "asc", "desc".
    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.

    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