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

cloudflare.getEmailRoutingAddress

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleEmailRoutingAddress = cloudflare.getEmailRoutingAddress({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    destinationAddressIdentifier: "ea95132c15732412d22c1476fa83f27a",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_email_routing_address = cloudflare.get_email_routing_address(account_id="023e105f4ecef8ad9ca31a8372d0c353",
    destination_address_identifier="ea95132c15732412d22c1476fa83f27a")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  exampleEmailRoutingAddress:
    fn::invoke:
      function: cloudflare:getEmailRoutingAddress
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        destinationAddressIdentifier: ea95132c15732412d22c1476fa83f27a
Copy

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>
Copy
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]
Copy
func LookupEmailRoutingAddress(ctx *Context, args *LookupEmailRoutingAddressArgs, opts ...InvokeOption) (*LookupEmailRoutingAddressResult, error)
func LookupEmailRoutingAddressOutput(ctx *Context, args *LookupEmailRoutingAddressOutputArgs, opts ...InvokeOption) LookupEmailRoutingAddressResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetEmailRoutingAddressResult> getEmailRoutingAddress(GetEmailRoutingAddressArgs args, InvokeOptions options)
public static Output<GetEmailRoutingAddressResult> getEmailRoutingAddress(GetEmailRoutingAddressArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getEmailRoutingAddress:getEmailRoutingAddress
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Identifier
DestinationAddressIdentifier string
Destination address identifier.
Filter GetEmailRoutingAddressFilter
AccountId This property is required. string
Identifier
DestinationAddressIdentifier string
Destination address identifier.
Filter GetEmailRoutingAddressFilter
accountId This property is required. String
Identifier
destinationAddressIdentifier String
Destination address identifier.
filter GetEmailRoutingAddressFilter
accountId This property is required. string
Identifier
destinationAddressIdentifier string
Destination address identifier.
filter GetEmailRoutingAddressFilter
account_id This property is required. str
Identifier
destination_address_identifier str
Destination address identifier.
filter GetEmailRoutingAddressFilter
accountId This property is required. 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 This property is required. string
Sorts results in an ascending or descending order. Available values: "asc", "desc".
Verified This property is required. bool
Filter by verified destination addresses.
Direction This property is required. string
Sorts results in an ascending or descending order. Available values: "asc", "desc".
Verified This property is required. bool
Filter by verified destination addresses.
direction This property is required. String
Sorts results in an ascending or descending order. Available values: "asc", "desc".
verified This property is required. Boolean
Filter by verified destination addresses.
direction This property is required. string
Sorts results in an ascending or descending order. Available values: "asc", "desc".
verified This property is required. boolean
Filter by verified destination addresses.
direction This property is required. str
Sorts results in an ascending or descending order. Available values: "asc", "desc".
verified This property is required. bool
Filter by verified destination addresses.
direction This property is required. String
Sorts results in an ascending or descending order. Available values: "asc", "desc".
verified This property is required. 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.