Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getEmailSecurityBlockSenders
Explore with Pulumi AI
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:
- Account
Id string - Account Identifier
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- Order string
- The field to sort by. Available values: "pattern", "created_at".
- Pattern
Type 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 string - Account Identifier
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- Order string
- The field to sort by. Available values: "pattern", "created_at".
- Pattern
Type 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 String - Account Identifier
- direction String
- The sorting direction. Available values: "asc", "desc".
- max
Items Integer - Max items to fetch, default: 1000
- order String
- The field to sort by. Available values: "pattern", "created_at".
- pattern
Type 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 string - Account Identifier
- direction string
- The sorting direction. Available values: "asc", "desc".
- max
Items number - Max items to fetch, default: 1000
- order string
- The field to sort by. Available values: "pattern", "created_at".
- pattern
Type 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.
- account
Id String - Account Identifier
- direction String
- The sorting direction. Available values: "asc", "desc".
- max
Items Number - Max items to fetch, default: 1000
- order String
- The field to sort by. Available values: "pattern", "created_at".
- pattern
Type 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:
- Account
Id string - Account Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Email Security Block Senders Result> - The items returned by the data source
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- Order string
- The field to sort by. Available values: "pattern", "created_at".
- Pattern
Type 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 string - Account Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Email Security Block Senders Result - The items returned by the data source
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- Order string
- The field to sort by. Available values: "pattern", "created_at".
- Pattern
Type 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 String - Account Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Email Security Block Senders Result> - The items returned by the data source
- direction String
- The sorting direction. Available values: "asc", "desc".
- max
Items Integer - Max items to fetch, default: 1000
- order String
- The field to sort by. Available values: "pattern", "created_at".
- pattern
Type 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 string - Account Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Email Security Block Senders Result[] - The items returned by the data source
- direction string
- The sorting direction. Available values: "asc", "desc".
- max
Items number - Max items to fetch, default: 1000
- order string
- The field to sort by. Available values: "pattern", "created_at".
- pattern
Type 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[Get
Email Security Block Senders Result] - 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.
- account
Id 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".
- max
Items Number - Max items to fetch, default: 1000
- order String
- The field to sort by. Available values: "pattern", "created_at".
- pattern
Type 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
- Created
At string - Id int
- The unique identifier for the allow policy.
- Is
Regex bool - Last
Modified string - Pattern string
- Pattern
Type string - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Comments string
- Created
At string - Id int
- The unique identifier for the allow policy.
- Is
Regex bool - Last
Modified string - Pattern string
- Pattern
Type string - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- comments String
- created
At String - id Integer
- The unique identifier for the allow policy.
- is
Regex Boolean - last
Modified String - pattern String
- pattern
Type String - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- comments string
- created
At string - id number
- The unique identifier for the allow policy.
- is
Regex boolean - last
Modified string - pattern string
- pattern
Type 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
- created
At String - id Number
- The unique identifier for the allow policy.
- is
Regex Boolean - last
Modified String - pattern String
- pattern
Type 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.