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

cloudflare.getEmailRoutingCatchAll

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 exampleEmailRoutingCatchAll = cloudflare.getEmailRoutingCatchAll({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_routing_catch_all = cloudflare.get_email_routing_catch_all(zone_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.LookupEmailRoutingCatchAll(ctx, &cloudflare.LookupEmailRoutingCatchAllArgs{
    			ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleEmailRoutingCatchAll = Cloudflare.GetEmailRoutingCatchAll.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetEmailRoutingCatchAllArgs;
    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 exampleEmailRoutingCatchAll = CloudflareFunctions.getEmailRoutingCatchAll(GetEmailRoutingCatchAllArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleEmailRoutingCatchAll:
        fn::invoke:
          function: cloudflare:getEmailRoutingCatchAll
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getEmailRoutingCatchAll

    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 getEmailRoutingCatchAll(args: GetEmailRoutingCatchAllArgs, opts?: InvokeOptions): Promise<GetEmailRoutingCatchAllResult>
    function getEmailRoutingCatchAllOutput(args: GetEmailRoutingCatchAllOutputArgs, opts?: InvokeOptions): Output<GetEmailRoutingCatchAllResult>
    def get_email_routing_catch_all(zone_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetEmailRoutingCatchAllResult
    def get_email_routing_catch_all_output(zone_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetEmailRoutingCatchAllResult]
    func LookupEmailRoutingCatchAll(ctx *Context, args *LookupEmailRoutingCatchAllArgs, opts ...InvokeOption) (*LookupEmailRoutingCatchAllResult, error)
    func LookupEmailRoutingCatchAllOutput(ctx *Context, args *LookupEmailRoutingCatchAllOutputArgs, opts ...InvokeOption) LookupEmailRoutingCatchAllResultOutput

    > Note: This function is named LookupEmailRoutingCatchAll in the Go SDK.

    public static class GetEmailRoutingCatchAll 
    {
        public static Task<GetEmailRoutingCatchAllResult> InvokeAsync(GetEmailRoutingCatchAllArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailRoutingCatchAllResult> Invoke(GetEmailRoutingCatchAllInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmailRoutingCatchAllResult> getEmailRoutingCatchAll(GetEmailRoutingCatchAllArgs args, InvokeOptions options)
    public static Output<GetEmailRoutingCatchAllResult> getEmailRoutingCatchAll(GetEmailRoutingCatchAllArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getEmailRoutingCatchAll:getEmailRoutingCatchAll
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZoneId string
    Identifier
    ZoneId string
    Identifier
    zoneId String
    Identifier
    zoneId string
    Identifier
    zone_id str
    Identifier
    zoneId String
    Identifier

    getEmailRoutingCatchAll Result

    The following output properties are available:

    Actions List<GetEmailRoutingCatchAllAction>
    List actions for the catch-all routing rule.
    Enabled bool
    Routing rule status.
    Id string
    Routing rule identifier.
    Matchers List<GetEmailRoutingCatchAllMatcher>
    List of matchers for the catch-all routing rule.
    Name string
    Routing rule name.
    Tag string
    Routing rule tag. (Deprecated, replaced by routing rule identifier)

    Deprecated: This attribute is deprecated.

    ZoneId string
    Identifier
    Actions []GetEmailRoutingCatchAllAction
    List actions for the catch-all routing rule.
    Enabled bool
    Routing rule status.
    Id string
    Routing rule identifier.
    Matchers []GetEmailRoutingCatchAllMatcher
    List of matchers for the catch-all routing rule.
    Name string
    Routing rule name.
    Tag string
    Routing rule tag. (Deprecated, replaced by routing rule identifier)

    Deprecated: This attribute is deprecated.

    ZoneId string
    Identifier
    actions List<GetEmailRoutingCatchAllAction>
    List actions for the catch-all routing rule.
    enabled Boolean
    Routing rule status.
    id String
    Routing rule identifier.
    matchers List<GetEmailRoutingCatchAllMatcher>
    List of matchers for the catch-all routing rule.
    name String
    Routing rule name.
    tag String
    Routing rule tag. (Deprecated, replaced by routing rule identifier)

    Deprecated: This attribute is deprecated.

    zoneId String
    Identifier
    actions GetEmailRoutingCatchAllAction[]
    List actions for the catch-all routing rule.
    enabled boolean
    Routing rule status.
    id string
    Routing rule identifier.
    matchers GetEmailRoutingCatchAllMatcher[]
    List of matchers for the catch-all routing rule.
    name string
    Routing rule name.
    tag string
    Routing rule tag. (Deprecated, replaced by routing rule identifier)

    Deprecated: This attribute is deprecated.

    zoneId string
    Identifier
    actions Sequence[GetEmailRoutingCatchAllAction]
    List actions for the catch-all routing rule.
    enabled bool
    Routing rule status.
    id str
    Routing rule identifier.
    matchers Sequence[GetEmailRoutingCatchAllMatcher]
    List of matchers for the catch-all routing rule.
    name str
    Routing rule name.
    tag str
    Routing rule tag. (Deprecated, replaced by routing rule identifier)

    Deprecated: This attribute is deprecated.

    zone_id str
    Identifier
    actions List<Property Map>
    List actions for the catch-all routing rule.
    enabled Boolean
    Routing rule status.
    id String
    Routing rule identifier.
    matchers List<Property Map>
    List of matchers for the catch-all routing rule.
    name String
    Routing rule name.
    tag String
    Routing rule tag. (Deprecated, replaced by routing rule identifier)

    Deprecated: This attribute is deprecated.

    zoneId String
    Identifier

    Supporting Types

    GetEmailRoutingCatchAllAction

    Type string
    Type of action for catch-all rule. Available values: "drop", "forward", "worker".
    Values List<string>
    Type string
    Type of action for catch-all rule. Available values: "drop", "forward", "worker".
    Values []string
    type String
    Type of action for catch-all rule. Available values: "drop", "forward", "worker".
    values List<String>
    type string
    Type of action for catch-all rule. Available values: "drop", "forward", "worker".
    values string[]
    type str
    Type of action for catch-all rule. Available values: "drop", "forward", "worker".
    values Sequence[str]
    type String
    Type of action for catch-all rule. Available values: "drop", "forward", "worker".
    values List<String>

    GetEmailRoutingCatchAllMatcher

    Type string
    Type of matcher. Default is 'all'. Available values: "all".
    Type string
    Type of matcher. Default is 'all'. Available values: "all".
    type String
    Type of matcher. Default is 'all'. Available values: "all".
    type string
    Type of matcher. Default is 'all'. Available values: "all".
    type str
    Type of matcher. Default is 'all'. Available values: "all".
    type String
    Type of matcher. Default is 'all'. Available values: "all".

    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