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 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 dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID for the compartment.
- Assignment
State string - Filter returned list by specified assignment state.
- Filters
List<Get
Email Outbound Ips Filter> - Outbound
Ip 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 string - The OCID for the compartment.
- Assignment
State string - Filter returned list by specified assignment state.
- Filters
[]Get
Email Outbound Ips Filter - Outbound
Ip 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 String - The OCID for the compartment.
- assignment
State String - Filter returned list by specified assignment state.
- filters
List<Get
Outbound Ips Filter> - outbound
Ip 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 string - The OCID for the compartment.
- assignment
State string - Filter returned list by specified assignment state.
- filters
Get
Email Outbound Ips Filter[] - outbound
Ip 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[Get
Email Outbound Ips Filter] - 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.
- compartment
Id String - The OCID for the compartment.
- assignment
State String - Filter returned list by specified assignment state.
- filters List<Property Map>
- outbound
Ip 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:
- Compartment
Id string - Email
Outbound List<GetIp Collections Email Outbound Ips Email Outbound Ip Collection> - The list of email_outbound_ip_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Assignment
State string - The assignment state of the public IP address.
- Filters
List<Get
Email Outbound Ips Filter> - Outbound
Ip string - The public IP address assigned to the tenancy.
- State string
- The current state of the Email Outbound Public IP.
- Compartment
Id string - Email
Outbound []GetIp Collections Email Outbound Ips Email Outbound Ip Collection - The list of email_outbound_ip_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Assignment
State string - The assignment state of the public IP address.
- Filters
[]Get
Email Outbound Ips Filter - Outbound
Ip string - The public IP address assigned to the tenancy.
- State string
- The current state of the Email Outbound Public IP.
- compartment
Id String - email
Outbound List<GetIp Collections Outbound Ips Outbound Ip Collection> - The list of email_outbound_ip_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- assignment
State String - The assignment state of the public IP address.
- filters
List<Get
Outbound Ips Filter> - outbound
Ip String - The public IP address assigned to the tenancy.
- state String
- The current state of the Email Outbound Public IP.
- compartment
Id string - email
Outbound GetIp Collections Email Outbound Ips Email Outbound Ip Collection[] - The list of email_outbound_ip_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- assignment
State string - The assignment state of the public IP address.
- filters
Get
Email Outbound Ips Filter[] - outbound
Ip 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_ Sequence[Getip_ collections Email Outbound Ips Email Outbound Ip Collection] - 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[Get
Email Outbound Ips Filter] - outbound_
ip str - The public IP address assigned to the tenancy.
- state str
- The current state of the Email Outbound Public IP.
- compartment
Id String - email
Outbound List<Property Map>Ip Collections - The list of email_outbound_ip_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- assignment
State String - The assignment state of the public IP address.
- filters List<Property Map>
- outbound
Ip 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<Get
Email Outbound Ips Email Outbound Ip Collection Item> - List of public IPs.
- Items
[]Get
Email Outbound Ips Email Outbound Ip Collection Item - List of public IPs.
- items
List<Get
Outbound Ips Outbound Ip Collection Item> - List of public IPs.
- items
Get
Email Outbound Ips Email Outbound Ip Collection Item[] - List of public IPs.
- items
Sequence[Get
Email Outbound Ips Email Outbound Ip Collection Item] - List of public IPs.
- items List<Property Map>
- List of public IPs.
GetEmailOutboundIpsEmailOutboundIpCollectionItem
- Assignment
State string - Filter returned list by specified assignment state.
- Lifecycle
Details 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.
- Outbound
Ip 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 string - Filter returned list by specified assignment state.
- Lifecycle
Details 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.
- Outbound
Ip 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 String - Filter returned list by specified assignment state.
- lifecycle
Details 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.
- outbound
Ip 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 string - Filter returned list by specified assignment state.
- lifecycle
Details 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.
- outbound
Ip 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.
- assignment
State String - Filter returned list by specified assignment state.
- lifecycle
Details 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.
- outbound
Ip String - The outbound IP address assigned to the tenancy.
- state String
- Filter returned list by specified lifecycle state. This parameter is case-insensitive.
GetEmailOutboundIpsFilter
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
