Data Source: oci_email_email_domains
This data source provides the list of Email Domains in Oracle Cloud Infrastructure Email service.
Lists email domains in the specified compartment.
Example Usage
data "oci_email_email_domains" "test_email_domains" {
#Required
compartment_id = var.compartment_id
#Optional
id = var.email_domain_id
name = var.email_domain_name
state = var.email_domain_state
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) The OCID for the compartment.id- (Optional) A filter to only return resources that match the given id exactly.name- (Optional) A filter to only return resources that match the given name exactly.state- (Optional) Filter returned list by specified lifecycle state. This parameter is case-insensitive.
Attributes Reference
The following attributes are exported:
email_domain_collection- The list of email_domain_collection.
EmailDomain Reference
The following attributes are exported:
active_dkim_id- The OCID of the DKIM key that will be used to sign mail sent from this email domain.compartment_id- The OCID of the compartment that contains this email domain.defined_tags- 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- The description of an email domain.domain_verification_id- Id for Domain in Domain Management (under governance) if DOMAINID verification method used.domain_verification_status- The current domain verification status.freeform_tags- 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- The OCID of the email domain.is_spf- Value of the SPF field. For more information about SPF, please see SPF Authentication.locks- Locks associated with this resource.compartment_id- The lock compartment ID.message- A message added by the lock creator. The message typically gives an indication of why the resource is locked.related_resource_id- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.time_created- Indicates when the lock was created, in the format defined by RFC 3339.type- Lock type.
name- The name of the email domain in the Internet Domain Name System (DNS). Example:mydomain.example.comstate- The current state of the email domain.system_tags- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The time the email domain was created, expressed in RFC 3339 timestamp format, “YYYY-MM-ddThh:mmZ”. Example:2021-02-12T22:47:12.613Z