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

cloudflare.getEmailRoutingSettings

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 exampleEmailRoutingSettings = cloudflare.getEmailRoutingSettings({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_routing_settings = cloudflare.get_email_routing_settings(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.LookupEmailRoutingSettings(ctx, &cloudflare.LookupEmailRoutingSettingsArgs{
    			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 exampleEmailRoutingSettings = Cloudflare.GetEmailRoutingSettings.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.GetEmailRoutingSettingsArgs;
    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 exampleEmailRoutingSettings = CloudflareFunctions.getEmailRoutingSettings(GetEmailRoutingSettingsArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleEmailRoutingSettings:
        fn::invoke:
          function: cloudflare:getEmailRoutingSettings
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getEmailRoutingSettings

    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 getEmailRoutingSettings(args: GetEmailRoutingSettingsArgs, opts?: InvokeOptions): Promise<GetEmailRoutingSettingsResult>
    function getEmailRoutingSettingsOutput(args: GetEmailRoutingSettingsOutputArgs, opts?: InvokeOptions): Output<GetEmailRoutingSettingsResult>
    def get_email_routing_settings(zone_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetEmailRoutingSettingsResult
    def get_email_routing_settings_output(zone_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetEmailRoutingSettingsResult]
    func LookupEmailRoutingSettings(ctx *Context, args *LookupEmailRoutingSettingsArgs, opts ...InvokeOption) (*LookupEmailRoutingSettingsResult, error)
    func LookupEmailRoutingSettingsOutput(ctx *Context, args *LookupEmailRoutingSettingsOutputArgs, opts ...InvokeOption) LookupEmailRoutingSettingsResultOutput

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

    public static class GetEmailRoutingSettings 
    {
        public static Task<GetEmailRoutingSettingsResult> InvokeAsync(GetEmailRoutingSettingsArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailRoutingSettingsResult> Invoke(GetEmailRoutingSettingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmailRoutingSettingsResult> getEmailRoutingSettings(GetEmailRoutingSettingsArgs args, InvokeOptions options)
    public static Output<GetEmailRoutingSettingsResult> getEmailRoutingSettings(GetEmailRoutingSettingsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getEmailRoutingSettings:getEmailRoutingSettings
      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

    getEmailRoutingSettings Result

    The following output properties are available:

    Created string
    The date and time the settings have been created.
    Enabled bool
    State of the zone settings for Email Routing.
    Id string
    Email Routing settings identifier.
    Modified string
    The date and time the settings have been modified.
    Name string
    Domain of your zone.
    SkipWizard bool
    Flag to check if the user skipped the configuration wizard.
    Status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    Tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    ZoneId string
    Identifier
    Created string
    The date and time the settings have been created.
    Enabled bool
    State of the zone settings for Email Routing.
    Id string
    Email Routing settings identifier.
    Modified string
    The date and time the settings have been modified.
    Name string
    Domain of your zone.
    SkipWizard bool
    Flag to check if the user skipped the configuration wizard.
    Status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    Tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    ZoneId string
    Identifier
    created String
    The date and time the settings have been created.
    enabled Boolean
    State of the zone settings for Email Routing.
    id String
    Email Routing settings identifier.
    modified String
    The date and time the settings have been modified.
    name String
    Domain of your zone.
    skipWizard Boolean
    Flag to check if the user skipped the configuration wizard.
    status String
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    tag String
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zoneId String
    Identifier
    created string
    The date and time the settings have been created.
    enabled boolean
    State of the zone settings for Email Routing.
    id string
    Email Routing settings identifier.
    modified string
    The date and time the settings have been modified.
    name string
    Domain of your zone.
    skipWizard boolean
    Flag to check if the user skipped the configuration wizard.
    status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zoneId string
    Identifier
    created str
    The date and time the settings have been created.
    enabled bool
    State of the zone settings for Email Routing.
    id str
    Email Routing settings identifier.
    modified str
    The date and time the settings have been modified.
    name str
    Domain of your zone.
    skip_wizard bool
    Flag to check if the user skipped the configuration wizard.
    status str
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    tag str
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zone_id str
    Identifier
    created String
    The date and time the settings have been created.
    enabled Boolean
    State of the zone settings for Email Routing.
    id String
    Email Routing settings identifier.
    modified String
    The date and time the settings have been modified.
    name String
    Domain of your zone.
    skipWizard Boolean
    Flag to check if the user skipped the configuration wizard.
    status String
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    tag String
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zoneId String
    Identifier

    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