1. Packages
  2. Scaleway
  3. API Docs
  4. getTemDomain
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.getTemDomain

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Gets information about a transactional email domain.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myDomain = scaleway.getTemDomain({
        domainId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_domain = scaleway.get_tem_domain(domain_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupTemDomain(ctx, &scaleway.LookupTemDomainArgs{
    			DomainId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myDomain = Scaleway.GetTemDomain.Invoke(new()
        {
            DomainId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetTemDomainArgs;
    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 myDomain = ScalewayFunctions.getTemDomain(GetTemDomainArgs.builder()
                .domainId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      myDomain:
        fn::invoke:
          Function: scaleway:getTemDomain
          Arguments:
            domainId: 11111111-1111-1111-1111-111111111111
    

    Using getTemDomain

    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 getTemDomain(args: GetTemDomainArgs, opts?: InvokeOptions): Promise<GetTemDomainResult>
    function getTemDomainOutput(args: GetTemDomainOutputArgs, opts?: InvokeOptions): Output<GetTemDomainResult>
    def get_tem_domain(domain_id: Optional[str] = None,
                       name: Optional[str] = None,
                       project_id: Optional[str] = None,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetTemDomainResult
    def get_tem_domain_output(domain_id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       project_id: Optional[pulumi.Input[str]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetTemDomainResult]
    func LookupTemDomain(ctx *Context, args *LookupTemDomainArgs, opts ...InvokeOption) (*LookupTemDomainResult, error)
    func LookupTemDomainOutput(ctx *Context, args *LookupTemDomainOutputArgs, opts ...InvokeOption) LookupTemDomainResultOutput

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

    public static class GetTemDomain 
    {
        public static Task<GetTemDomainResult> InvokeAsync(GetTemDomainArgs args, InvokeOptions? opts = null)
        public static Output<GetTemDomainResult> Invoke(GetTemDomainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTemDomainResult> getTemDomain(GetTemDomainArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getTemDomain:getTemDomain
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DomainId string
    The domain id. Only one of name and domain_id should be specified.
    Name string
    The domain name. Only one of name and domain_id should be specified.
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Region string
    region) The region in which the domain exists.
    DomainId string
    The domain id. Only one of name and domain_id should be specified.
    Name string
    The domain name. Only one of name and domain_id should be specified.
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Region string
    region) The region in which the domain exists.
    domainId String
    The domain id. Only one of name and domain_id should be specified.
    name String
    The domain name. Only one of name and domain_id should be specified.
    projectId String
    project_id) The ID of the project the domain is associated with.
    region String
    region) The region in which the domain exists.
    domainId string
    The domain id. Only one of name and domain_id should be specified.
    name string
    The domain name. Only one of name and domain_id should be specified.
    projectId string
    project_id) The ID of the project the domain is associated with.
    region string
    region) The region in which the domain exists.
    domain_id str
    The domain id. Only one of name and domain_id should be specified.
    name str
    The domain name. Only one of name and domain_id should be specified.
    project_id str
    project_id) The ID of the project the domain is associated with.
    region str
    region) The region in which the domain exists.
    domainId String
    The domain id. Only one of name and domain_id should be specified.
    name String
    The domain name. Only one of name and domain_id should be specified.
    projectId String
    project_id) The ID of the project the domain is associated with.
    region String
    region) The region in which the domain exists.

    getTemDomain Result

    The following output properties are available:

    AcceptTos bool
    CreatedAt string
    DkimConfig string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastError string
    LastValidAt string
    MxBlackhole string
    NextCheckAt string
    Reputations List<Pulumiverse.Scaleway.Outputs.GetTemDomainReputation>
    RevokedAt string
    SmtpHost string
    SmtpPort int
    SmtpPortAlternative int
    SmtpPortUnsecure int
    SmtpsAuthUser string
    SmtpsPort int
    SmtpsPortAlternative int
    SpfConfig string
    Status string
    DomainId string
    Name string
    ProjectId string
    Region string
    AcceptTos bool
    CreatedAt string
    DkimConfig string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastError string
    LastValidAt string
    MxBlackhole string
    NextCheckAt string
    Reputations []GetTemDomainReputation
    RevokedAt string
    SmtpHost string
    SmtpPort int
    SmtpPortAlternative int
    SmtpPortUnsecure int
    SmtpsAuthUser string
    SmtpsPort int
    SmtpsPortAlternative int
    SpfConfig string
    Status string
    DomainId string
    Name string
    ProjectId string
    Region string
    acceptTos Boolean
    createdAt String
    dkimConfig String
    id String
    The provider-assigned unique ID for this managed resource.
    lastError String
    lastValidAt String
    mxBlackhole String
    nextCheckAt String
    reputations List<GetTemDomainReputation>
    revokedAt String
    smtpHost String
    smtpPort Integer
    smtpPortAlternative Integer
    smtpPortUnsecure Integer
    smtpsAuthUser String
    smtpsPort Integer
    smtpsPortAlternative Integer
    spfConfig String
    status String
    domainId String
    name String
    projectId String
    region String
    acceptTos boolean
    createdAt string
    dkimConfig string
    id string
    The provider-assigned unique ID for this managed resource.
    lastError string
    lastValidAt string
    mxBlackhole string
    nextCheckAt string
    reputations GetTemDomainReputation[]
    revokedAt string
    smtpHost string
    smtpPort number
    smtpPortAlternative number
    smtpPortUnsecure number
    smtpsAuthUser string
    smtpsPort number
    smtpsPortAlternative number
    spfConfig string
    status string
    domainId string
    name string
    projectId string
    region string
    acceptTos Boolean
    createdAt String
    dkimConfig String
    id String
    The provider-assigned unique ID for this managed resource.
    lastError String
    lastValidAt String
    mxBlackhole String
    nextCheckAt String
    reputations List<Property Map>
    revokedAt String
    smtpHost String
    smtpPort Number
    smtpPortAlternative Number
    smtpPortUnsecure Number
    smtpsAuthUser String
    smtpsPort Number
    smtpsPortAlternative Number
    spfConfig String
    status String
    domainId String
    name String
    projectId String
    region String

    Supporting Types

    GetTemDomainReputation

    PreviousScore int
    The previously-calculated domain's reputation score
    PreviousScoredAt string
    Time and date the previous reputation score was calculated
    Score int
    A range from 0 to 100 that determines your domain's reputation score
    ScoredAt string
    Time and date the score was calculated
    Status string
    Status of the domain's reputation
    PreviousScore int
    The previously-calculated domain's reputation score
    PreviousScoredAt string
    Time and date the previous reputation score was calculated
    Score int
    A range from 0 to 100 that determines your domain's reputation score
    ScoredAt string
    Time and date the score was calculated
    Status string
    Status of the domain's reputation
    previousScore Integer
    The previously-calculated domain's reputation score
    previousScoredAt String
    Time and date the previous reputation score was calculated
    score Integer
    A range from 0 to 100 that determines your domain's reputation score
    scoredAt String
    Time and date the score was calculated
    status String
    Status of the domain's reputation
    previousScore number
    The previously-calculated domain's reputation score
    previousScoredAt string
    Time and date the previous reputation score was calculated
    score number
    A range from 0 to 100 that determines your domain's reputation score
    scoredAt string
    Time and date the score was calculated
    status string
    Status of the domain's reputation
    previous_score int
    The previously-calculated domain's reputation score
    previous_scored_at str
    Time and date the previous reputation score was calculated
    score int
    A range from 0 to 100 that determines your domain's reputation score
    scored_at str
    Time and date the score was calculated
    status str
    Status of the domain's reputation
    previousScore Number
    The previously-calculated domain's reputation score
    previousScoredAt String
    Time and date the previous reputation score was calculated
    score Number
    A range from 0 to 100 that determines your domain's reputation score
    scoredAt String
    Time and date the score was calculated
    status String
    Status of the domain's reputation

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse