1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Email
  5. getEmailOutboundIps
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi

    This data source provides the list of Email Outbound Ips in Oracle Cloud Infrastructure Email service.

    Returns a list of all Outbound Public IPs assigned for a given tenant.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testEmailOutboundIps = oci.Email.getEmailOutboundIps({
        compartmentId: compartmentId,
        assignmentState: emailOutboundIpAssignmentState,
        outboundIp: emailOutboundIpOutboundIp,
        state: emailOutboundIpState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_email_outbound_ips = oci.Email.get_email_outbound_ips(compartment_id=compartment_id,
        assignment_state=email_outbound_ip_assignment_state,
        outbound_ip=email_outbound_ip_outbound_ip,
        state=email_outbound_ip_state)
    
    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.GetEmailOutboundIps(ctx, &email.GetEmailOutboundIpsArgs{
    			CompartmentId:   compartmentId,
    			AssignmentState: pulumi.StringRef(emailOutboundIpAssignmentState),
    			OutboundIp:      pulumi.StringRef(emailOutboundIpOutboundIp),
    			State:           pulumi.StringRef(emailOutboundIpState),
    		}, 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 testEmailOutboundIps = Oci.Email.GetEmailOutboundIps.Invoke(new()
        {
            CompartmentId = compartmentId,
            AssignmentState = emailOutboundIpAssignmentState,
            OutboundIp = emailOutboundIpOutboundIp,
            State = emailOutboundIpState,
        });
    
    });
    
    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.GetEmailOutboundIpsArgs;
    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 testEmailOutboundIps = EmailFunctions.getEmailOutboundIps(GetEmailOutboundIpsArgs.builder()
                .compartmentId(compartmentId)
                .assignmentState(emailOutboundIpAssignmentState)
                .outboundIp(emailOutboundIpOutboundIp)
                .state(emailOutboundIpState)
                .build());
    
        }
    }
    
    variables:
      testEmailOutboundIps:
        fn::invoke:
          function: oci:Email:getEmailOutboundIps
          arguments:
            compartmentId: ${compartmentId}
            assignmentState: ${emailOutboundIpAssignmentState}
            outboundIp: ${emailOutboundIpOutboundIp}
            state: ${emailOutboundIpState}
    

    Using getEmailOutboundIps

    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 getEmailOutboundIps(args: GetEmailOutboundIpsArgs, opts?: InvokeOptions): Promise<GetEmailOutboundIpsResult>
    function getEmailOutboundIpsOutput(args: GetEmailOutboundIpsOutputArgs, opts?: InvokeOptions): Output<GetEmailOutboundIpsResult>
    def get_email_outbound_ips(assignment_state: Optional[str] = None,
                               compartment_id: Optional[str] = None,
                               filters: Optional[Sequence[GetEmailOutboundIpsFilter]] = None,
                               outbound_ip: Optional[str] = None,
                               state: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetEmailOutboundIpsResult
    def get_email_outbound_ips_output(assignment_state: Optional[pulumi.Input[str]] = None,
                               compartment_id: Optional[pulumi.Input[str]] = None,
                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetEmailOutboundIpsFilterArgs]]]] = None,
                               outbound_ip: Optional[pulumi.Input[str]] = None,
                               state: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetEmailOutboundIpsResult]
    func GetEmailOutboundIps(ctx *Context, args *GetEmailOutboundIpsArgs, opts ...InvokeOption) (*GetEmailOutboundIpsResult, error)
    func GetEmailOutboundIpsOutput(ctx *Context, args *GetEmailOutboundIpsOutputArgs, opts ...InvokeOption) GetEmailOutboundIpsResultOutput

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

    public static class GetEmailOutboundIps 
    {
        public static Task<GetEmailOutboundIpsResult> InvokeAsync(GetEmailOutboundIpsArgs args, InvokeOptions? opts = null)
        public static Output<GetEmailOutboundIpsResult> Invoke(GetEmailOutboundIpsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEmailOutboundIpsResult> getEmailOutboundIps(GetEmailOutboundIpsArgs args, InvokeOptions options)
    public static Output<GetEmailOutboundIpsResult> getEmailOutboundIps(GetEmailOutboundIpsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Email/getEmailOutboundIps:getEmailOutboundIps
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID for the compartment.
    AssignmentState string
    Filter returned list by specified assignment state.
    Filters List<GetEmailOutboundIpsFilter>
    OutboundIp string
    The outbound IP address assigned to the tenancy.
    State string
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    CompartmentId string
    The OCID for the compartment.
    AssignmentState string
    Filter returned list by specified assignment state.
    Filters []GetEmailOutboundIpsFilter
    OutboundIp string
    The outbound IP address assigned to the tenancy.
    State string
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    compartmentId String
    The OCID for the compartment.
    assignmentState String
    Filter returned list by specified assignment state.
    filters List<GetOutboundIpsFilter>
    outboundIp String
    The outbound IP address assigned to the tenancy.
    state String
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    compartmentId string
    The OCID for the compartment.
    assignmentState string
    Filter returned list by specified assignment state.
    filters GetEmailOutboundIpsFilter[]
    outboundIp string
    The outbound IP address assigned to the tenancy.
    state string
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    compartment_id str
    The OCID for the compartment.
    assignment_state str
    Filter returned list by specified assignment state.
    filters Sequence[GetEmailOutboundIpsFilter]
    outbound_ip str
    The outbound IP address assigned to the tenancy.
    state str
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    compartmentId String
    The OCID for the compartment.
    assignmentState String
    Filter returned list by specified assignment state.
    filters List<Property Map>
    outboundIp String
    The outbound IP address assigned to the tenancy.
    state String
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.

    getEmailOutboundIps Result

    The following output properties are available:

    CompartmentId string
    EmailOutboundIpCollections List<GetEmailOutboundIpsEmailOutboundIpCollection>
    The list of email_outbound_ip_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssignmentState string
    The assignment state of the public IP address.
    Filters List<GetEmailOutboundIpsFilter>
    OutboundIp string
    The public IP address assigned to the tenancy.
    State string
    The current state of the Email Outbound Public IP.
    CompartmentId string
    EmailOutboundIpCollections []GetEmailOutboundIpsEmailOutboundIpCollection
    The list of email_outbound_ip_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssignmentState string
    The assignment state of the public IP address.
    Filters []GetEmailOutboundIpsFilter
    OutboundIp string
    The public IP address assigned to the tenancy.
    State string
    The current state of the Email Outbound Public IP.
    compartmentId String
    emailOutboundIpCollections List<GetOutboundIpsOutboundIpCollection>
    The list of email_outbound_ip_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    assignmentState String
    The assignment state of the public IP address.
    filters List<GetOutboundIpsFilter>
    outboundIp String
    The public IP address assigned to the tenancy.
    state String
    The current state of the Email Outbound Public IP.
    compartmentId string
    emailOutboundIpCollections GetEmailOutboundIpsEmailOutboundIpCollection[]
    The list of email_outbound_ip_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    assignmentState string
    The assignment state of the public IP address.
    filters GetEmailOutboundIpsFilter[]
    outboundIp string
    The public IP address assigned to the tenancy.
    state string
    The current state of the Email Outbound Public IP.
    compartment_id str
    email_outbound_ip_collections Sequence[GetEmailOutboundIpsEmailOutboundIpCollection]
    The list of email_outbound_ip_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    assignment_state str
    The assignment state of the public IP address.
    filters Sequence[GetEmailOutboundIpsFilter]
    outbound_ip str
    The public IP address assigned to the tenancy.
    state str
    The current state of the Email Outbound Public IP.
    compartmentId String
    emailOutboundIpCollections List<Property Map>
    The list of email_outbound_ip_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    assignmentState String
    The assignment state of the public IP address.
    filters List<Property Map>
    outboundIp String
    The public IP address assigned to the tenancy.
    state String
    The current state of the Email Outbound Public IP.

    Supporting Types

    GetEmailOutboundIpsEmailOutboundIpCollection

    items List<Property Map>
    List of public IPs.

    GetEmailOutboundIpsEmailOutboundIpCollectionItem

    AssignmentState string
    Filter returned list by specified assignment state.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'DRAINING' state.
    OutboundIp string
    The outbound IP address assigned to the tenancy.
    State string
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    AssignmentState string
    Filter returned list by specified assignment state.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'DRAINING' state.
    OutboundIp string
    The outbound IP address assigned to the tenancy.
    State string
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    assignmentState String
    Filter returned list by specified assignment state.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'DRAINING' state.
    outboundIp String
    The outbound IP address assigned to the tenancy.
    state String
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    assignmentState string
    Filter returned list by specified assignment state.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'DRAINING' state.
    outboundIp string
    The outbound IP address assigned to the tenancy.
    state string
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    assignment_state str
    Filter returned list by specified assignment state.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'DRAINING' state.
    outbound_ip str
    The outbound IP address assigned to the tenancy.
    state str
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.
    assignmentState String
    Filter returned list by specified assignment state.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'DRAINING' state.
    outboundIp String
    The outbound IP address assigned to the tenancy.
    state String
    Filter returned list by specified lifecycle state. This parameter is case-insensitive.

    GetEmailOutboundIpsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.2.0
    published on Friday, Mar 6, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.