Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getEmailSecurityBlockSender
Explore with Pulumi AI
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:
- Account
Id string - Account Identifier
- Filter
Get
Email Security Block Sender Filter - Pattern
Id int - The unique identifier for the allow policy.
- Account
Id string - Account Identifier
- Filter
Get
Email Security Block Sender Filter - Pattern
Id int - The unique identifier for the allow policy.
- account
Id String - Account Identifier
- filter
Get
Email Security Block Sender Filter - pattern
Id Integer - The unique identifier for the allow policy.
- account
Id string - Account Identifier
- filter
Get
Email Security Block Sender Filter - pattern
Id number - The unique identifier for the allow policy.
- account_
id str - Account Identifier
- filter
Get
Email Security Block Sender Filter - pattern_
id int - The unique identifier for the allow policy.
- account
Id String - Account Identifier
- filter Property Map
- pattern
Id Number - The unique identifier for the allow policy.
getEmailSecurityBlockSender Result
The following output properties are available:
- Account
Id string - Account Identifier
- 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".
- Filter
Get
Email Security Block Sender Filter - Pattern
Id int - The unique identifier for the allow policy.
- Account
Id string - Account Identifier
- 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".
- Filter
Get
Email Security Block Sender Filter - Pattern
Id int - The unique identifier for the allow policy.
- account
Id String - Account Identifier
- 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".
- filter
Get
Email Security Block Sender Filter - pattern
Id Integer - The unique identifier for the allow policy.
- account
Id string - Account Identifier
- 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".
- filter
Get
Email Security Block Sender Filter - pattern
Id 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
Get
Email Security Block Sender Filter - pattern_
id int - The unique identifier for the allow policy.
- account
Id String - Account Identifier
- 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".
- filter Property Map
- pattern
Id 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".
- 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.
- Direction string
- The sorting direction. Available values: "asc", "desc".
- 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.
- direction String
- The sorting direction. Available values: "asc", "desc".
- 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.
- direction string
- The sorting direction. Available values: "asc", "desc".
- 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.
- 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".
- 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.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.