oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.Email.getEmailDomain

This data source provides details about a specific Email Domain resource in Oracle Cloud Infrastructure Email service.

Retrieves the specified email domain.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testEmailDomain = Oci.Email.GetEmailDomain.Invoke(new()
    {
        EmailDomainId = oci_email_email_domain.Test_email_domain.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Email"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Email.GetEmailDomain(ctx, &email.GetEmailDomainArgs{
			EmailDomainId: oci_email_email_domain.Test_email_domain.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Email.EmailFunctions;
import com.pulumi.oci.Email.inputs.GetEmailDomainArgs;
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 testEmailDomain = EmailFunctions.getEmailDomain(GetEmailDomainArgs.builder()
            .emailDomainId(oci_email_email_domain.test_email_domain().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_email_domain = oci.Email.get_email_domain(email_domain_id=oci_email_email_domain["test_email_domain"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testEmailDomain = oci.Email.getEmailDomain({
    emailDomainId: oci_email_email_domain.test_email_domain.id,
});
variables:
  testEmailDomain:
    fn::invoke:
      Function: oci:Email:getEmailDomain
      Arguments:
        emailDomainId: ${oci_email_email_domain.test_email_domain.id}

Using getEmailDomain

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 getEmailDomain(args: GetEmailDomainArgs, opts?: InvokeOptions): Promise<GetEmailDomainResult>
function getEmailDomainOutput(args: GetEmailDomainOutputArgs, opts?: InvokeOptions): Output<GetEmailDomainResult>
def get_email_domain(email_domain_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetEmailDomainResult
def get_email_domain_output(email_domain_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetEmailDomainResult]
func GetEmailDomain(ctx *Context, args *GetEmailDomainArgs, opts ...InvokeOption) (*GetEmailDomainResult, error)
func GetEmailDomainOutput(ctx *Context, args *GetEmailDomainOutputArgs, opts ...InvokeOption) GetEmailDomainResultOutput

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

public static class GetEmailDomain 
{
    public static Task<GetEmailDomainResult> InvokeAsync(GetEmailDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetEmailDomainResult> Invoke(GetEmailDomainInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEmailDomainResult> getEmailDomain(GetEmailDomainArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Email/getEmailDomain:getEmailDomain
  arguments:
    # arguments dictionary

The following arguments are supported:

EmailDomainId string

The OCID of this email domain.

EmailDomainId string

The OCID of this email domain.

emailDomainId String

The OCID of this email domain.

emailDomainId string

The OCID of this email domain.

email_domain_id str

The OCID of this email domain.

emailDomainId String

The OCID of this email domain.

getEmailDomain Result

The following output properties are available:

ActiveDkimId string

The OCID of the DKIM key that will be used to sign mail sent from this email domain.

CompartmentId string

The OCID of the compartment that contains this email domain.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

The description of a email domain.

EmailDomainId string
FreeformTags Dictionary<string, object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the email domain.

IsSpf bool

Value of the SPF field. For more information about SPF, please see SPF Authentication.

Name string

The name of the email domain in the Internet Domain Name System (DNS). Example: example.net

State string

The current state of the email domain.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time the email domain was created, expressed in RFC 3339 timestamp format, "YYYY-MM-ddThh:mmZ". Example: 2021-02-12T22:47:12.613Z

ActiveDkimId string

The OCID of the DKIM key that will be used to sign mail sent from this email domain.

CompartmentId string

The OCID of the compartment that contains this email domain.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

The description of a email domain.

EmailDomainId string
FreeformTags map[string]interface{}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the email domain.

IsSpf bool

Value of the SPF field. For more information about SPF, please see SPF Authentication.

Name string

The name of the email domain in the Internet Domain Name System (DNS). Example: example.net

State string

The current state of the email domain.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time the email domain was created, expressed in RFC 3339 timestamp format, "YYYY-MM-ddThh:mmZ". Example: 2021-02-12T22:47:12.613Z

activeDkimId String

The OCID of the DKIM key that will be used to sign mail sent from this email domain.

compartmentId String

The OCID of the compartment that contains this email domain.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

The description of a email domain.

emailDomainId String
freeformTags Map<String,Object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the email domain.

isSpf Boolean

Value of the SPF field. For more information about SPF, please see SPF Authentication.

name String

The name of the email domain in the Internet Domain Name System (DNS). Example: example.net

state String

The current state of the email domain.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time the email domain was created, expressed in RFC 3339 timestamp format, "YYYY-MM-ddThh:mmZ". Example: 2021-02-12T22:47:12.613Z

activeDkimId string

The OCID of the DKIM key that will be used to sign mail sent from this email domain.

compartmentId string

The OCID of the compartment that contains this email domain.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description string

The description of a email domain.

emailDomainId string
freeformTags {[key: string]: any}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id string

The OCID of the email domain.

isSpf boolean

Value of the SPF field. For more information about SPF, please see SPF Authentication.

name string

The name of the email domain in the Internet Domain Name System (DNS). Example: example.net

state string

The current state of the email domain.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The time the email domain was created, expressed in RFC 3339 timestamp format, "YYYY-MM-ddThh:mmZ". Example: 2021-02-12T22:47:12.613Z

active_dkim_id str

The OCID of the DKIM key that will be used to sign mail sent from this email domain.

compartment_id str

The OCID of the compartment that contains this email domain.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description str

The description of a email domain.

email_domain_id str
freeform_tags Mapping[str, Any]

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id str

The OCID of the email domain.

is_spf bool

Value of the SPF field. For more information about SPF, please see SPF Authentication.

name str

The name of the email domain in the Internet Domain Name System (DNS). Example: example.net

state str

The current state of the email domain.

system_tags Mapping[str, Any]

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The time the email domain was created, expressed in RFC 3339 timestamp format, "YYYY-MM-ddThh:mmZ". Example: 2021-02-12T22:47:12.613Z

activeDkimId String

The OCID of the DKIM key that will be used to sign mail sent from this email domain.

compartmentId String

The OCID of the compartment that contains this email domain.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

The description of a email domain.

emailDomainId String
freeformTags Map<Any>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the email domain.

isSpf Boolean

Value of the SPF field. For more information about SPF, please see SPF Authentication.

name String

The name of the email domain in the Internet Domain Name System (DNS). Example: example.net

state String

The current state of the email domain.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time the email domain was created, expressed in RFC 3339 timestamp format, "YYYY-MM-ddThh:mmZ". Example: 2021-02-12T22:47:12.613Z

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.