Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Waas.getAddressLists
Start a Neo task
Explain and create an oci.Waas.getAddressLists resource
This data source provides the list of Address Lists in Oracle Cloud Infrastructure Web Application Acceleration and Security service.
Gets a list of address lists that can be used in a WAAS policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAddressLists = oci.Waas.getAddressLists({
compartmentId: compartmentId,
ids: addressListIds,
names: addressListNames,
states: addressListStates,
timeCreatedGreaterThanOrEqualTo: addressListTimeCreatedGreaterThanOrEqualTo,
timeCreatedLessThan: addressListTimeCreatedLessThan,
});
import pulumi
import pulumi_oci as oci
test_address_lists = oci.Waas.get_address_lists(compartment_id=compartment_id,
ids=address_list_ids,
names=address_list_names,
states=address_list_states,
time_created_greater_than_or_equal_to=address_list_time_created_greater_than_or_equal_to,
time_created_less_than=address_list_time_created_less_than)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/waas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waas.GetAddressLists(ctx, &waas.GetAddressListsArgs{
CompartmentId: compartmentId,
Ids: addressListIds,
Names: addressListNames,
States: addressListStates,
TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(addressListTimeCreatedGreaterThanOrEqualTo),
TimeCreatedLessThan: pulumi.StringRef(addressListTimeCreatedLessThan),
}, 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 testAddressLists = Oci.Waas.GetAddressLists.Invoke(new()
{
CompartmentId = compartmentId,
Ids = addressListIds,
Names = addressListNames,
States = addressListStates,
TimeCreatedGreaterThanOrEqualTo = addressListTimeCreatedGreaterThanOrEqualTo,
TimeCreatedLessThan = addressListTimeCreatedLessThan,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Waas.WaasFunctions;
import com.pulumi.oci.Waas.inputs.GetAddressListsArgs;
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 testAddressLists = WaasFunctions.getAddressLists(GetAddressListsArgs.builder()
.compartmentId(compartmentId)
.ids(addressListIds)
.names(addressListNames)
.states(addressListStates)
.timeCreatedGreaterThanOrEqualTo(addressListTimeCreatedGreaterThanOrEqualTo)
.timeCreatedLessThan(addressListTimeCreatedLessThan)
.build());
}
}
variables:
testAddressLists:
fn::invoke:
function: oci:Waas:getAddressLists
arguments:
compartmentId: ${compartmentId}
ids: ${addressListIds}
names: ${addressListNames}
states: ${addressListStates}
timeCreatedGreaterThanOrEqualTo: ${addressListTimeCreatedGreaterThanOrEqualTo}
timeCreatedLessThan: ${addressListTimeCreatedLessThan}
Using getAddressLists
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 getAddressLists(args: GetAddressListsArgs, opts?: InvokeOptions): Promise<GetAddressListsResult>
function getAddressListsOutput(args: GetAddressListsOutputArgs, opts?: InvokeOptions): Output<GetAddressListsResult>def get_address_lists(compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetAddressListsFilter]] = None,
ids: Optional[Sequence[str]] = None,
names: Optional[Sequence[str]] = None,
states: Optional[Sequence[str]] = None,
time_created_greater_than_or_equal_to: Optional[str] = None,
time_created_less_than: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAddressListsResult
def get_address_lists_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAddressListsFilterArgs]]]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_created_less_than: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAddressListsResult]func GetAddressLists(ctx *Context, args *GetAddressListsArgs, opts ...InvokeOption) (*GetAddressListsResult, error)
func GetAddressListsOutput(ctx *Context, args *GetAddressListsOutputArgs, opts ...InvokeOption) GetAddressListsResultOutput> Note: This function is named GetAddressLists in the Go SDK.
public static class GetAddressLists
{
public static Task<GetAddressListsResult> InvokeAsync(GetAddressListsArgs args, InvokeOptions? opts = null)
public static Output<GetAddressListsResult> Invoke(GetAddressListsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAddressListsResult> getAddressLists(GetAddressListsArgs args, InvokeOptions options)
public static Output<GetAddressListsResult> getAddressLists(GetAddressListsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Waas/getAddressLists:getAddressLists
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment. This number is generated when the compartment is created.
- Filters
List<Get
Address Lists Filter> - Ids List<string>
- Filter address lists using a list of address lists OCIDs.
- Names List<string>
- Filter address lists using a list of names.
- States List<string>
- Filter address lists using a list of lifecycle states.
- Time
Created stringGreater Than Or Equal To - A filter that matches address lists created on or after the specified date-time.
- Time
Created stringLess Than - A filter that matches address lists created before the specified date-time.
- Compartment
Id string - The OCID of the compartment. This number is generated when the compartment is created.
- Filters
[]Get
Address Lists Filter - Ids []string
- Filter address lists using a list of address lists OCIDs.
- Names []string
- Filter address lists using a list of names.
- States []string
- Filter address lists using a list of lifecycle states.
- Time
Created stringGreater Than Or Equal To - A filter that matches address lists created on or after the specified date-time.
- Time
Created stringLess Than - A filter that matches address lists created before the specified date-time.
- compartment
Id String - The OCID of the compartment. This number is generated when the compartment is created.
- filters
List<Get
Address Lists Filter> - ids List<String>
- Filter address lists using a list of address lists OCIDs.
- names List<String>
- Filter address lists using a list of names.
- states List<String>
- Filter address lists using a list of lifecycle states.
- time
Created StringGreater Than Or Equal To - A filter that matches address lists created on or after the specified date-time.
- time
Created StringLess Than - A filter that matches address lists created before the specified date-time.
- compartment
Id string - The OCID of the compartment. This number is generated when the compartment is created.
- filters
Get
Address Lists Filter[] - ids string[]
- Filter address lists using a list of address lists OCIDs.
- names string[]
- Filter address lists using a list of names.
- states string[]
- Filter address lists using a list of lifecycle states.
- time
Created stringGreater Than Or Equal To - A filter that matches address lists created on or after the specified date-time.
- time
Created stringLess Than - A filter that matches address lists created before the specified date-time.
- compartment_
id str - The OCID of the compartment. This number is generated when the compartment is created.
- filters
Sequence[Get
Address Lists Filter] - ids Sequence[str]
- Filter address lists using a list of address lists OCIDs.
- names Sequence[str]
- Filter address lists using a list of names.
- states Sequence[str]
- Filter address lists using a list of lifecycle states.
- time_
created_ strgreater_ than_ or_ equal_ to - A filter that matches address lists created on or after the specified date-time.
- time_
created_ strless_ than - A filter that matches address lists created before the specified date-time.
- compartment
Id String - The OCID of the compartment. This number is generated when the compartment is created.
- filters List<Property Map>
- ids List<String>
- Filter address lists using a list of address lists OCIDs.
- names List<String>
- Filter address lists using a list of names.
- states List<String>
- Filter address lists using a list of lifecycle states.
- time
Created StringGreater Than Or Equal To - A filter that matches address lists created on or after the specified date-time.
- time
Created StringLess Than - A filter that matches address lists created before the specified date-time.
getAddressLists Result
The following output properties are available:
- Address
Lists List<GetAddress Lists Address List> - The list of address_lists.
- Compartment
Id string - The OCID of the address list's compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Address Lists Filter> - Ids List<string>
- Names List<string>
- States List<string>
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than
- Address
Lists []GetAddress Lists Address List - The list of address_lists.
- Compartment
Id string - The OCID of the address list's compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Address Lists Filter - Ids []string
- Names []string
- States []string
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than
- address
Lists List<GetAddress Lists Address List> - The list of address_lists.
- compartment
Id String - The OCID of the address list's compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Address Lists Filter> - ids List<String>
- names List<String>
- states List<String>
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than
- address
Lists GetAddress Lists Address List[] - The list of address_lists.
- compartment
Id string - The OCID of the address list's compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Address Lists Filter[] - ids string[]
- names string[]
- states string[]
- time
Created stringGreater Than Or Equal To - time
Created stringLess Than
- address_
lists Sequence[GetAddress Lists Address List] - The list of address_lists.
- compartment_
id str - The OCID of the address list's compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Address Lists Filter] - ids Sequence[str]
- names Sequence[str]
- states Sequence[str]
- time_
created_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than
- address
Lists List<Property Map> - The list of address_lists.
- compartment
Id String - The OCID of the address list's compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- ids List<String>
- names List<String>
- states List<String>
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than
Supporting Types
GetAddressListsAddressList
- Address
Count double - The total number of unique IP addresses in the address list.
- Addresses List<string>
- The list of IP addresses or CIDR notations.
- Compartment
Id string - The OCID of the compartment. This number is generated when the compartment is created.
- 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"} - Display
Name string - The user-friendly name of the address list.
- 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 OCID of the address list.
- State string
- The current lifecycle state of the address list.
- Time
Created string - The date and time the address list was created, expressed in RFC 3339 timestamp format.
- Address
Count float64 - The total number of unique IP addresses in the address list.
- Addresses []string
- The list of IP addresses or CIDR notations.
- Compartment
Id string - The OCID of the compartment. This number is generated when the compartment is created.
- 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"} - Display
Name string - The user-friendly name of the address list.
- 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 OCID of the address list.
- State string
- The current lifecycle state of the address list.
- Time
Created string - The date and time the address list was created, expressed in RFC 3339 timestamp format.
- address
Count Double - The total number of unique IP addresses in the address list.
- addresses List<String>
- The list of IP addresses or CIDR notations.
- compartment
Id String - The OCID of the compartment. This number is generated when the compartment is created.
- 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"} - display
Name String - The user-friendly name of the address list.
- 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 OCID of the address list.
- state String
- The current lifecycle state of the address list.
- time
Created String - The date and time the address list was created, expressed in RFC 3339 timestamp format.
- address
Count number - The total number of unique IP addresses in the address list.
- addresses string[]
- The list of IP addresses or CIDR notations.
- compartment
Id string - The OCID of the compartment. This number is generated when the compartment is created.
- {[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"} - display
Name string - The user-friendly name of the address list.
- {[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 OCID of the address list.
- state string
- The current lifecycle state of the address list.
- time
Created string - The date and time the address list was created, expressed in RFC 3339 timestamp format.
- address_
count float - The total number of unique IP addresses in the address list.
- addresses Sequence[str]
- The list of IP addresses or CIDR notations.
- compartment_
id str - The OCID of the compartment. This number is generated when the compartment is created.
- 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"} - display_
name str - The user-friendly name of the address list.
- 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 OCID of the address list.
- state str
- The current lifecycle state of the address list.
- time_
created str - The date and time the address list was created, expressed in RFC 3339 timestamp format.
- address
Count Number - The total number of unique IP addresses in the address list.
- addresses List<String>
- The list of IP addresses or CIDR notations.
- compartment
Id String - The OCID of the compartment. This number is generated when the compartment is created.
- 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"} - display
Name String - The user-friendly name of the address list.
- 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 OCID of the address list.
- state String
- The current lifecycle state of the address list.
- time
Created String - The date and time the address list was created, expressed in RFC 3339 timestamp format.
GetAddressListsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
