Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific Sender resource in Oracle Cloud Infrastructure Email service.
Gets an approved sender for a given senderId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSender = oci.Email.getSender({
senderId: testSenderOciEmailSender.id,
});
import pulumi
import pulumi_oci as oci
test_sender = oci.Email.get_sender(sender_id=test_sender_oci_email_sender["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/email"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := email.GetSender(ctx, &email.GetSenderArgs{
SenderId: testSenderOciEmailSender.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSender = Oci.Email.GetSender.Invoke(new()
{
SenderId = testSenderOciEmailSender.Id,
});
});
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.GetSenderArgs;
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 testSender = EmailFunctions.getSender(GetSenderArgs.builder()
.senderId(testSenderOciEmailSender.id())
.build());
}
}
variables:
testSender:
fn::invoke:
function: oci:Email:getSender
arguments:
senderId: ${testSenderOciEmailSender.id}
Using getSender
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 getSender(args: GetSenderArgs, opts?: InvokeOptions): Promise<GetSenderResult>
function getSenderOutput(args: GetSenderOutputArgs, opts?: InvokeOptions): Output<GetSenderResult>def get_sender(sender_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSenderResult
def get_sender_output(sender_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSenderResult]func LookupSender(ctx *Context, args *LookupSenderArgs, opts ...InvokeOption) (*LookupSenderResult, error)
func LookupSenderOutput(ctx *Context, args *LookupSenderOutputArgs, opts ...InvokeOption) LookupSenderResultOutput> Note: This function is named LookupSender in the Go SDK.
public static class GetSender
{
public static Task<GetSenderResult> InvokeAsync(GetSenderArgs args, InvokeOptions? opts = null)
public static Output<GetSenderResult> Invoke(GetSenderInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSenderResult> getSender(GetSenderArgs args, InvokeOptions options)
public static Output<GetSenderResult> getSender(GetSenderArgs args, InvokeOptions options)
fn::invoke:
function: oci:Email/getSender:getSender
arguments:
# arguments dictionaryThe following arguments are supported:
- Sender
Id string - The unique OCID of the sender.
- Sender
Id string - The unique OCID of the sender.
- sender
Id String - The unique OCID of the sender.
- sender
Id string - The unique OCID of the sender.
- sender_
id str - The unique OCID of the sender.
- sender
Id String - The unique OCID of the sender.
getSender Result
The following output properties are available:
- Compartment
Id string - The lock compartment ID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Email
Address string - The email address of the sender.
- Email
Domain stringId - The email domain used to assert responsibility for emails sent from this sender.
- Email
Ip stringPool Id - The IpPool OCID used to submit an email by Email Delivery when sent from this sender.
- Dictionary<string, string>
- 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 unique OCID of the sender.
- Is
Spf bool - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- Locks
List<Get
Sender Lock> - Locks associated with this resource.
- Sender
Id string - State string
- The current status of the approved sender.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- Compartment
Id string - The lock compartment ID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Email
Address string - The email address of the sender.
- Email
Domain stringId - The email domain used to assert responsibility for emails sent from this sender.
- Email
Ip stringPool Id - The IpPool OCID used to submit an email by Email Delivery when sent from this sender.
- map[string]string
- 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 unique OCID of the sender.
- Is
Spf bool - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- Locks
[]Get
Sender Lock - Locks associated with this resource.
- Sender
Id string - State string
- The current status of the approved sender.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment
Id String - The lock compartment ID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - email
Address String - The email address of the sender.
- email
Domain StringId - The email domain used to assert responsibility for emails sent from this sender.
- email
Ip StringPool Id - The IpPool OCID used to submit an email by Email Delivery when sent from this sender.
- Map<String,String>
- 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 unique OCID of the sender.
- is
Spf Boolean - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- locks
List<Get
Sender Lock> - Locks associated with this resource.
- sender
Id String - state String
- The current status of the approved sender.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment
Id string - The lock compartment ID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - email
Address string - The email address of the sender.
- email
Domain stringId - The email domain used to assert responsibility for emails sent from this sender.
- email
Ip stringPool Id - The IpPool OCID used to submit an email by Email Delivery when sent from this sender.
- {[key: string]: string}
- 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 unique OCID of the sender.
- is
Spf boolean - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- locks
Get
Sender Lock[] - Locks associated with this resource.
- sender
Id string - state string
- The current status of the approved sender.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment_
id str - The lock compartment ID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - email_
address str - The email address of the sender.
- email_
domain_ strid - The email domain used to assert responsibility for emails sent from this sender.
- email_
ip_ strpool_ id - The IpPool OCID used to submit an email by Email Delivery when sent from this sender.
- Mapping[str, str]
- 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 unique OCID of the sender.
- is_
spf bool - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- locks
Sequence[Get
Sender Lock] - Locks associated with this resource.
- sender_
id str - state str
- The current status of the approved sender.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment
Id String - The lock compartment ID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - email
Address String - The email address of the sender.
- email
Domain StringId - The email domain used to assert responsibility for emails sent from this sender.
- email
Ip StringPool Id - The IpPool OCID used to submit an email by Email Delivery when sent from this sender.
- Map<String>
- 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 unique OCID of the sender.
- is
Spf Boolean - Value of the SPF field. For more information about SPF, please see SPF Authentication.
- locks List<Property Map>
- Locks associated with this resource.
- sender
Id String - state String
- The current status of the approved sender.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
Supporting Types
GetSenderLock
- Compartment
Id string - The lock compartment ID.
- Message string
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- string
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- Time
Created string - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- Type string
- Lock type.
- Compartment
Id string - The lock compartment ID.
- Message string
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- string
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- Time
Created string - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- Type string
- Lock type.
- compartment
Id String - The lock compartment ID.
- message String
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- String
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time
Created String - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- type String
- Lock type.
- compartment
Id string - The lock compartment ID.
- message string
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- string
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time
Created string - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- type string
- Lock type.
- compartment_
id str - The lock compartment ID.
- message str
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- str
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time_
created str - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- type str
- Lock type.
- compartment
Id String - The lock compartment ID.
- message String
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.
- String
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
- time
Created String - The date and time the approved sender was added in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- type String
- Lock type.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
