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

cloudflare.getEmailRoutingAddress

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 exampleEmailRoutingAddress = cloudflare.getEmailRoutingAddress({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        destinationAddressIdentifier: "ea95132c15732412d22c1476fa83f27a",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_routing_address = cloudflare.get_email_routing_address(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        destination_address_identifier="ea95132c15732412d22c1476fa83f27a")
    
    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.LookupEmailRoutingAddress(ctx, &cloudflare.LookupEmailRoutingAddressArgs{
    			AccountId:                    "023e105f4ecef8ad9ca31a8372d0c353",
    			DestinationAddressIdentifier: pulumi.StringRef("ea95132c15732412d22c1476fa83f27a"),
    		}, 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 exampleEmailRoutingAddress = Cloudflare.GetEmailRoutingAddress.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            DestinationAddressIdentifier = "ea95132c15732412d22c1476fa83f27a",
        });
    
    });
    
    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.GetEmailRoutingAddressArgs;
    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 exampleEmailRoutingAddress = CloudflareFunctions.getEmailRoutingAddress(GetEmailRoutingAddressArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .destinationAddressIdentifier("ea95132c15732412d22c1476fa83f27a")
                .build());
    
        }
    }
    
    variables:
      exampleEmailRoutingAddress:
        fn::invoke:
          function: cloudflare:getEmailRoutingAddress
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            destinationAddressIdentifier: ea95132c15732412d22c1476fa83f27a
    

    Using getEmailRoutingAddress

    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 getEmailRoutingAddress(args: GetEmailRoutingAddressArgs, opts?: InvokeOptions): Promise<GetEmailRoutingAddressResult>
    function getEmailRoutingAddressOutput(args: GetEmailRoutingAddressOutputArgs, opts?: InvokeOptions): Output<GetEmailRoutingAddressResult>
    def get_email_routing_address(account_id: Optional[str] = None,
                                  destination_address_identifier: Optional[str] = None,
                                  filter: Optional[GetEmailRoutingAddressFilter] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetEmailRoutingAddressResult
    def get_email_routing_address_output(account_id: Optional[pulumi.Input[str]] = None,
                                  destination_address_identifier: Optional[pulumi.Input[str]] = None,
                                  filter: Optional[pulumi.Input[GetEmailRoutingAddressFilterArgs]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetEmailRoutingAddressResult]
    func LookupEmailRoutingAddress(ctx *Context, args *LookupEmailRoutingAddressArgs, opts ...InvokeOption) (*LookupEmailRoutingAddressResult, error)
    func LookupEmailRoutingAddressOutput(ctx *Context, args *LookupEmailRoutingAddressOutputArgs, opts ...InvokeOption) LookupEmailRoutingAddressResultOutput

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

    public static class GetEmailRoutingAddress 
    {
        public static Task<GetEmailRoutingAddressResult> InvokeAsync(GetEmailRoutingAddressArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailRoutingAddressResult> Invoke(GetEmailRoutingAddressInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmailRoutingAddressResult> getEmailRoutingAddress(GetEmailRoutingAddressArgs args, InvokeOptions options)
    public static Output<GetEmailRoutingAddressResult> getEmailRoutingAddress(GetEmailRoutingAddressArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getEmailRoutingAddress:getEmailRoutingAddress
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier
    DestinationAddressIdentifier string
    Destination address identifier.
    Filter GetEmailRoutingAddressFilter
    AccountId string
    Identifier
    DestinationAddressIdentifier string
    Destination address identifier.
    Filter GetEmailRoutingAddressFilter
    accountId String
    Identifier
    destinationAddressIdentifier String
    Destination address identifier.
    filter GetEmailRoutingAddressFilter
    accountId string
    Identifier
    destinationAddressIdentifier string
    Destination address identifier.
    filter GetEmailRoutingAddressFilter
    account_id str
    Identifier
    destination_address_identifier str
    Destination address identifier.
    filter GetEmailRoutingAddressFilter
    accountId String
    Identifier
    destinationAddressIdentifier String
    Destination address identifier.
    filter Property Map

    getEmailRoutingAddress Result

    The following output properties are available:

    AccountId string
    Identifier
    Created string
    The date and time the destination address has been created.
    Email string
    The contact email address of the user.
    Id string
    Destination address identifier.
    Modified string
    The date and time the destination address was last modified.
    Tag string
    Destination address tag. (Deprecated, replaced by destination address identifier)

    Deprecated: This attribute is deprecated.

    Verified string
    The date and time the destination address has been verified. Null means not verified yet.
    DestinationAddressIdentifier string
    Destination address identifier.
    Filter GetEmailRoutingAddressFilter
    AccountId string
    Identifier
    Created string
    The date and time the destination address has been created.
    Email string
    The contact email address of the user.
    Id string
    Destination address identifier.
    Modified string
    The date and time the destination address was last modified.
    Tag string
    Destination address tag. (Deprecated, replaced by destination address identifier)

    Deprecated: This attribute is deprecated.

    Verified string
    The date and time the destination address has been verified. Null means not verified yet.
    DestinationAddressIdentifier string
    Destination address identifier.
    Filter GetEmailRoutingAddressFilter
    accountId String
    Identifier
    created String
    The date and time the destination address has been created.
    email String
    The contact email address of the user.
    id String
    Destination address identifier.
    modified String
    The date and time the destination address was last modified.
    tag String
    Destination address tag. (Deprecated, replaced by destination address identifier)

    Deprecated: This attribute is deprecated.

    verified String
    The date and time the destination address has been verified. Null means not verified yet.
    destinationAddressIdentifier String
    Destination address identifier.
    filter GetEmailRoutingAddressFilter
    accountId string
    Identifier
    created string
    The date and time the destination address has been created.
    email string
    The contact email address of the user.
    id string
    Destination address identifier.
    modified string
    The date and time the destination address was last modified.
    tag string
    Destination address tag. (Deprecated, replaced by destination address identifier)

    Deprecated: This attribute is deprecated.

    verified string
    The date and time the destination address has been verified. Null means not verified yet.
    destinationAddressIdentifier string
    Destination address identifier.
    filter GetEmailRoutingAddressFilter
    account_id str
    Identifier
    created str
    The date and time the destination address has been created.
    email str
    The contact email address of the user.
    id str
    Destination address identifier.
    modified str
    The date and time the destination address was last modified.
    tag str
    Destination address tag. (Deprecated, replaced by destination address identifier)

    Deprecated: This attribute is deprecated.

    verified str
    The date and time the destination address has been verified. Null means not verified yet.
    destination_address_identifier str
    Destination address identifier.
    filter GetEmailRoutingAddressFilter
    accountId String
    Identifier
    created String
    The date and time the destination address has been created.
    email String
    The contact email address of the user.
    id String
    Destination address identifier.
    modified String
    The date and time the destination address was last modified.
    tag String
    Destination address tag. (Deprecated, replaced by destination address identifier)

    Deprecated: This attribute is deprecated.

    verified String
    The date and time the destination address has been verified. Null means not verified yet.
    destinationAddressIdentifier String
    Destination address identifier.
    filter Property Map

    Supporting Types

    GetEmailRoutingAddressFilter

    Direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    Verified bool
    Filter by verified destination addresses.
    Direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    Verified bool
    Filter by verified destination addresses.
    direction String
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    verified Boolean
    Filter by verified destination addresses.
    direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    verified boolean
    Filter by verified destination addresses.
    direction str
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    verified bool
    Filter by verified destination addresses.
    direction String
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    verified Boolean
    Filter by verified destination addresses.

    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