Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Waas.getAddressLists
Explore with Pulumi AI
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/v2/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:
- CompartmentId string
- The OCID of the compartment. This number is generated when the compartment is created.
- Filters
List<GetAddress 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.
- TimeCreated stringGreater Than Or Equal To 
- A filter that matches address lists created on or after the specified date-time.
- TimeCreated stringLess Than 
- A filter that matches address lists created before the specified date-time.
- CompartmentId string
- The OCID of the compartment. This number is generated when the compartment is created.
- Filters
[]GetAddress 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.
- TimeCreated stringGreater Than Or Equal To 
- A filter that matches address lists created on or after the specified date-time.
- TimeCreated stringLess Than 
- A filter that matches address lists created before the specified date-time.
- compartmentId String
- The OCID of the compartment. This number is generated when the compartment is created.
- filters
List<GetAddress 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.
- timeCreated StringGreater Than Or Equal To 
- A filter that matches address lists created on or after the specified date-time.
- timeCreated StringLess Than 
- A filter that matches address lists created before the specified date-time.
- compartmentId string
- The OCID of the compartment. This number is generated when the compartment is created.
- filters
GetAddress 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.
- timeCreated stringGreater Than Or Equal To 
- A filter that matches address lists created on or after the specified date-time.
- timeCreated 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[GetAddress 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.
- compartmentId 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.
- timeCreated StringGreater Than Or Equal To 
- A filter that matches address lists created on or after the specified date-time.
- timeCreated StringLess Than 
- A filter that matches address lists created before the specified date-time.
getAddressLists Result
The following output properties are available:
- AddressLists List<GetAddress Lists Address List> 
- The list of address_lists.
- CompartmentId string
- The OCID of the address list's compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetAddress Lists Filter> 
- Ids List<string>
- Names List<string>
- States List<string>
- TimeCreated stringGreater Than Or Equal To 
- TimeCreated stringLess Than 
- AddressLists []GetAddress Lists Address List 
- The list of address_lists.
- CompartmentId string
- The OCID of the address list's compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetAddress Lists Filter 
- Ids []string
- Names []string
- States []string
- TimeCreated stringGreater Than Or Equal To 
- TimeCreated stringLess Than 
- addressLists List<GetAddress Lists Address List> 
- The list of address_lists.
- compartmentId String
- The OCID of the address list's compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetAddress Lists Filter> 
- ids List<String>
- names List<String>
- states List<String>
- timeCreated StringGreater Than Or Equal To 
- timeCreated StringLess Than 
- addressLists GetAddress Lists Address List[] 
- The list of address_lists.
- compartmentId string
- The OCID of the address list's compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetAddress Lists Filter[] 
- ids string[]
- names string[]
- states string[]
- timeCreated stringGreater Than Or Equal To 
- timeCreated 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[GetAddress Lists Filter] 
- ids Sequence[str]
- names Sequence[str]
- states Sequence[str]
- time_created_ strgreater_ than_ or_ equal_ to 
- time_created_ strless_ than 
- addressLists List<Property Map>
- The list of address_lists.
- compartmentId 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>
- timeCreated StringGreater Than Or Equal To 
- timeCreated StringLess Than 
Supporting Types
GetAddressListsAddressList    
- AddressCount double
- The total number of unique IP addresses in the address list.
- Addresses List<string>
- The list of IP addresses or CIDR notations.
- CompartmentId 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"}
- DisplayName 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.
- TimeCreated string
- The date and time the address list was created, expressed in RFC 3339 timestamp format.
- AddressCount float64
- The total number of unique IP addresses in the address list.
- Addresses []string
- The list of IP addresses or CIDR notations.
- CompartmentId 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"}
- DisplayName 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.
- TimeCreated string
- The date and time the address list was created, expressed in RFC 3339 timestamp format.
- addressCount Double
- The total number of unique IP addresses in the address list.
- addresses List<String>
- The list of IP addresses or CIDR notations.
- compartmentId 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"}
- displayName 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.
- timeCreated String
- The date and time the address list was created, expressed in RFC 3339 timestamp format.
- addressCount number
- The total number of unique IP addresses in the address list.
- addresses string[]
- The list of IP addresses or CIDR notations.
- compartmentId 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"}
- displayName 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.
- timeCreated 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.
- addressCount Number
- The total number of unique IP addresses in the address list.
- addresses List<String>
- The list of IP addresses or CIDR notations.
- compartmentId 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"}
- displayName 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.
- timeCreated 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.