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

cloudflare.getEmailSecurityTrustedDomains

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 exampleEmailSecurityTrustedDomains = cloudflare.getEmailSecurityTrustedDomains({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        trustedDomainId: 2401,
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_security_trusted_domains = cloudflare.get_email_security_trusted_domains(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        trusted_domain_id=2401)
    
    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.LookupEmailSecurityTrustedDomains(ctx, &cloudflare.LookupEmailSecurityTrustedDomainsArgs{
    			AccountId:       "023e105f4ecef8ad9ca31a8372d0c353",
    			TrustedDomainId: pulumi.IntRef(2401),
    		}, 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 exampleEmailSecurityTrustedDomains = Cloudflare.GetEmailSecurityTrustedDomains.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            TrustedDomainId = 2401,
        });
    
    });
    
    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.GetEmailSecurityTrustedDomainsArgs;
    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 exampleEmailSecurityTrustedDomains = CloudflareFunctions.getEmailSecurityTrustedDomains(GetEmailSecurityTrustedDomainsArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .trustedDomainId(2401)
                .build());
    
        }
    }
    
    variables:
      exampleEmailSecurityTrustedDomains:
        fn::invoke:
          function: cloudflare:getEmailSecurityTrustedDomains
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            trustedDomainId: 2401
    

    Using getEmailSecurityTrustedDomains

    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 getEmailSecurityTrustedDomains(args: GetEmailSecurityTrustedDomainsArgs, opts?: InvokeOptions): Promise<GetEmailSecurityTrustedDomainsResult>
    function getEmailSecurityTrustedDomainsOutput(args: GetEmailSecurityTrustedDomainsOutputArgs, opts?: InvokeOptions): Output<GetEmailSecurityTrustedDomainsResult>
    def get_email_security_trusted_domains(account_id: Optional[str] = None,
                                           filter: Optional[GetEmailSecurityTrustedDomainsFilter] = None,
                                           trusted_domain_id: Optional[int] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetEmailSecurityTrustedDomainsResult
    def get_email_security_trusted_domains_output(account_id: Optional[pulumi.Input[str]] = None,
                                           filter: Optional[pulumi.Input[GetEmailSecurityTrustedDomainsFilterArgs]] = None,
                                           trusted_domain_id: Optional[pulumi.Input[int]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetEmailSecurityTrustedDomainsResult]
    func LookupEmailSecurityTrustedDomains(ctx *Context, args *LookupEmailSecurityTrustedDomainsArgs, opts ...InvokeOption) (*LookupEmailSecurityTrustedDomainsResult, error)
    func LookupEmailSecurityTrustedDomainsOutput(ctx *Context, args *LookupEmailSecurityTrustedDomainsOutputArgs, opts ...InvokeOption) LookupEmailSecurityTrustedDomainsResultOutput

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

    public static class GetEmailSecurityTrustedDomains 
    {
        public static Task<GetEmailSecurityTrustedDomainsResult> InvokeAsync(GetEmailSecurityTrustedDomainsArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailSecurityTrustedDomainsResult> Invoke(GetEmailSecurityTrustedDomainsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmailSecurityTrustedDomainsResult> getEmailSecurityTrustedDomains(GetEmailSecurityTrustedDomainsArgs args, InvokeOptions options)
    public static Output<GetEmailSecurityTrustedDomainsResult> getEmailSecurityTrustedDomains(GetEmailSecurityTrustedDomainsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getEmailSecurityTrustedDomains:getEmailSecurityTrustedDomains
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account Identifier
    Filter GetEmailSecurityTrustedDomainsFilter
    TrustedDomainId int
    The unique identifier for the trusted domain.
    AccountId string
    Account Identifier
    Filter GetEmailSecurityTrustedDomainsFilter
    TrustedDomainId int
    The unique identifier for the trusted domain.
    accountId String
    Account Identifier
    filter GetEmailSecurityTrustedDomainsFilter
    trustedDomainId Integer
    The unique identifier for the trusted domain.
    accountId string
    Account Identifier
    filter GetEmailSecurityTrustedDomainsFilter
    trustedDomainId number
    The unique identifier for the trusted domain.
    account_id str
    Account Identifier
    filter GetEmailSecurityTrustedDomainsFilter
    trusted_domain_id int
    The unique identifier for the trusted domain.
    accountId String
    Account Identifier
    filter Property Map
    trustedDomainId Number
    The unique identifier for the trusted domain.

    getEmailSecurityTrustedDomains Result

    The following output properties are available:

    AccountId string
    Account Identifier
    Comments string
    CreatedAt string
    Id int
    The unique identifier for the trusted domain.
    IsRecent bool
    Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
    IsRegex bool
    IsSimilarity bool
    Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
    LastModified string
    Pattern string
    Filter GetEmailSecurityTrustedDomainsFilter
    TrustedDomainId int
    The unique identifier for the trusted domain.
    AccountId string
    Account Identifier
    Comments string
    CreatedAt string
    Id int
    The unique identifier for the trusted domain.
    IsRecent bool
    Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
    IsRegex bool
    IsSimilarity bool
    Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
    LastModified string
    Pattern string
    Filter GetEmailSecurityTrustedDomainsFilter
    TrustedDomainId int
    The unique identifier for the trusted domain.
    accountId String
    Account Identifier
    comments String
    createdAt String
    id Integer
    The unique identifier for the trusted domain.
    isRecent Boolean
    Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
    isRegex Boolean
    isSimilarity Boolean
    Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
    lastModified String
    pattern String
    filter GetEmailSecurityTrustedDomainsFilter
    trustedDomainId Integer
    The unique identifier for the trusted domain.
    accountId string
    Account Identifier
    comments string
    createdAt string
    id number
    The unique identifier for the trusted domain.
    isRecent boolean
    Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
    isRegex boolean
    isSimilarity boolean
    Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
    lastModified string
    pattern string
    filter GetEmailSecurityTrustedDomainsFilter
    trustedDomainId number
    The unique identifier for the trusted domain.
    account_id str
    Account Identifier
    comments str
    created_at str
    id int
    The unique identifier for the trusted domain.
    is_recent bool
    Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
    is_regex bool
    is_similarity bool
    Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
    last_modified str
    pattern str
    filter GetEmailSecurityTrustedDomainsFilter
    trusted_domain_id int
    The unique identifier for the trusted domain.
    accountId String
    Account Identifier
    comments String
    createdAt String
    id Number
    The unique identifier for the trusted domain.
    isRecent Boolean
    Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
    isRegex Boolean
    isSimilarity Boolean
    Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
    lastModified String
    pattern String
    filter Property Map
    trustedDomainId Number
    The unique identifier for the trusted domain.

    Supporting Types

    GetEmailSecurityTrustedDomainsFilter

    Direction string
    The sorting direction. Available values: "asc", "desc".
    IsRecent bool
    IsSimilarity bool
    Order string
    The field to sort by. Available values: "pattern", "created_at".
    Search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    Direction string
    The sorting direction. Available values: "asc", "desc".
    IsRecent bool
    IsSimilarity bool
    Order string
    The field to sort by. Available values: "pattern", "created_at".
    Search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    direction String
    The sorting direction. Available values: "asc", "desc".
    isRecent Boolean
    isSimilarity Boolean
    order String
    The field to sort by. Available values: "pattern", "created_at".
    search String
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    direction string
    The sorting direction. Available values: "asc", "desc".
    isRecent boolean
    isSimilarity boolean
    order string
    The field to sort by. Available values: "pattern", "created_at".
    search string
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    direction str
    The sorting direction. Available values: "asc", "desc".
    is_recent bool
    is_similarity bool
    order str
    The field to sort by. Available values: "pattern", "created_at".
    search str
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.
    direction String
    The sorting direction. Available values: "asc", "desc".
    isRecent Boolean
    isSimilarity Boolean
    order String
    The field to sort by. Available values: "pattern", "created_at".
    search String
    Allows searching in multiple properties of a record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future.

    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