1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getEmailRoutingAddresses
Cloudflare v6.1.0 published on Friday, Apr 18, 2025 by Pulumi

cloudflare.getEmailRoutingAddresses

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.0 published on Friday, Apr 18, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleEmailRoutingAddresses = cloudflare.getEmailRoutingAddresses({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_routing_addresses = cloudflare.get_email_routing_addresses(account_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.LookupEmailRoutingAddresses(ctx, &cloudflare.LookupEmailRoutingAddressesArgs{
    			AccountId: "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 exampleEmailRoutingAddresses = Cloudflare.GetEmailRoutingAddresses.Invoke(new()
        {
            AccountId = "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.GetEmailRoutingAddressesArgs;
    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 exampleEmailRoutingAddresses = CloudflareFunctions.getEmailRoutingAddresses(GetEmailRoutingAddressesArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleEmailRoutingAddresses:
        fn::invoke:
          function: cloudflare:getEmailRoutingAddresses
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getEmailRoutingAddresses

    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 getEmailRoutingAddresses(args: GetEmailRoutingAddressesArgs, opts?: InvokeOptions): Promise<GetEmailRoutingAddressesResult>
    function getEmailRoutingAddressesOutput(args: GetEmailRoutingAddressesOutputArgs, opts?: InvokeOptions): Output<GetEmailRoutingAddressesResult>
    def get_email_routing_addresses(account_id: Optional[str] = None,
                                    direction: Optional[str] = None,
                                    max_items: Optional[int] = None,
                                    verified: Optional[bool] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetEmailRoutingAddressesResult
    def get_email_routing_addresses_output(account_id: Optional[pulumi.Input[str]] = None,
                                    direction: Optional[pulumi.Input[str]] = None,
                                    max_items: Optional[pulumi.Input[int]] = None,
                                    verified: Optional[pulumi.Input[bool]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetEmailRoutingAddressesResult]
    func LookupEmailRoutingAddresses(ctx *Context, args *LookupEmailRoutingAddressesArgs, opts ...InvokeOption) (*LookupEmailRoutingAddressesResult, error)
    func LookupEmailRoutingAddressesOutput(ctx *Context, args *LookupEmailRoutingAddressesOutputArgs, opts ...InvokeOption) LookupEmailRoutingAddressesResultOutput

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

    public static class GetEmailRoutingAddresses 
    {
        public static Task<GetEmailRoutingAddressesResult> InvokeAsync(GetEmailRoutingAddressesArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailRoutingAddressesResult> Invoke(GetEmailRoutingAddressesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmailRoutingAddressesResult> getEmailRoutingAddresses(GetEmailRoutingAddressesArgs args, InvokeOptions options)
    public static Output<GetEmailRoutingAddressesResult> getEmailRoutingAddresses(GetEmailRoutingAddressesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getEmailRoutingAddresses:getEmailRoutingAddresses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier
    Direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Verified bool
    Filter by verified destination addresses.
    AccountId string
    Identifier
    Direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Verified bool
    Filter by verified destination addresses.
    accountId String
    Identifier
    direction String
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    verified Boolean
    Filter by verified destination addresses.
    accountId string
    Identifier
    direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    maxItems number
    Max items to fetch, default: 1000
    verified boolean
    Filter by verified destination addresses.
    account_id str
    Identifier
    direction str
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    max_items int
    Max items to fetch, default: 1000
    verified bool
    Filter by verified destination addresses.
    accountId String
    Identifier
    direction String
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    maxItems Number
    Max items to fetch, default: 1000
    verified Boolean
    Filter by verified destination addresses.

    getEmailRoutingAddresses Result

    The following output properties are available:

    AccountId string
    Identifier
    Direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetEmailRoutingAddressesResult>
    The items returned by the data source
    Verified bool
    Filter by verified destination addresses.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier
    Direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetEmailRoutingAddressesResult
    The items returned by the data source
    Verified bool
    Filter by verified destination addresses.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    direction String
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetEmailRoutingAddressesResult>
    The items returned by the data source
    verified Boolean
    Filter by verified destination addresses.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier
    direction string
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    id string
    The provider-assigned unique ID for this managed resource.
    results GetEmailRoutingAddressesResult[]
    The items returned by the data source
    verified boolean
    Filter by verified destination addresses.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier
    direction str
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetEmailRoutingAddressesResult]
    The items returned by the data source
    verified bool
    Filter by verified destination addresses.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    direction String
    Sorts results in an ascending or descending order. Available values: "asc", "desc".
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    verified Boolean
    Filter by verified destination addresses.
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetEmailRoutingAddressesResult

    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.
    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.
    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.
    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.
    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.
    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.

    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.0 published on Friday, Apr 18, 2025 by Pulumi