1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getAddressLists
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Waas.getAddressLists

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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: _var.compartment_id,
        ids: _var.address_list_ids,
        names: _var.address_list_names,
        states: _var.address_list_states,
        timeCreatedGreaterThanOrEqualTo: _var.address_list_time_created_greater_than_or_equal_to,
        timeCreatedLessThan: _var.address_list_time_created_less_than,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_address_lists = oci.Waas.get_address_lists(compartment_id=var["compartment_id"],
        ids=var["address_list_ids"],
        names=var["address_list_names"],
        states=var["address_list_states"],
        time_created_greater_than_or_equal_to=var["address_list_time_created_greater_than_or_equal_to"],
        time_created_less_than=var["address_list_time_created_less_than"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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:                   _var.Compartment_id,
    			Ids:                             _var.Address_list_ids,
    			Names:                           _var.Address_list_names,
    			States:                          _var.Address_list_states,
    			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(_var.Address_list_time_created_greater_than_or_equal_to),
    			TimeCreatedLessThan:             pulumi.StringRef(_var.Address_list_time_created_less_than),
    		}, 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 = @var.Compartment_id,
            Ids = @var.Address_list_ids,
            Names = @var.Address_list_names,
            States = @var.Address_list_states,
            TimeCreatedGreaterThanOrEqualTo = @var.Address_list_time_created_greater_than_or_equal_to,
            TimeCreatedLessThan = @var.Address_list_time_created_less_than,
        });
    
    });
    
    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(var_.compartment_id())
                .ids(var_.address_list_ids())
                .names(var_.address_list_names())
                .states(var_.address_list_states())
                .timeCreatedGreaterThanOrEqualTo(var_.address_list_time_created_greater_than_or_equal_to())
                .timeCreatedLessThan(var_.address_list_time_created_less_than())
                .build());
    
        }
    }
    
    variables:
      testAddressLists:
        fn::invoke:
          Function: oci:Waas:getAddressLists
          Arguments:
            compartmentId: ${var.compartment_id}
            ids: ${var.address_list_ids}
            names: ${var.address_list_names}
            states: ${var.address_list_states}
            timeCreatedGreaterThanOrEqualTo: ${var.address_list_time_created_greater_than_or_equal_to}
            timeCreatedLessThan: ${var.address_list_time_created_less_than}
    

    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[_waas.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[_waas.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waas/getAddressLists:getAddressLists
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment. This number is generated when the compartment is created.
    Filters List<GetAddressListsFilter>
    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.
    TimeCreatedGreaterThanOrEqualTo string
    A filter that matches address lists created on or after the specified date-time.
    TimeCreatedLessThan string
    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 []GetAddressListsFilter
    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.
    TimeCreatedGreaterThanOrEqualTo string
    A filter that matches address lists created on or after the specified date-time.
    TimeCreatedLessThan string
    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<GetAddressListsFilter>
    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.
    timeCreatedGreaterThanOrEqualTo String
    A filter that matches address lists created on or after the specified date-time.
    timeCreatedLessThan String
    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 GetAddressListsFilter[]
    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.
    timeCreatedGreaterThanOrEqualTo string
    A filter that matches address lists created on or after the specified date-time.
    timeCreatedLessThan string
    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[waas.GetAddressListsFilter]
    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_greater_than_or_equal_to str
    A filter that matches address lists created on or after the specified date-time.
    time_created_less_than str
    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.
    timeCreatedGreaterThanOrEqualTo String
    A filter that matches address lists created on or after the specified date-time.
    timeCreatedLessThan String
    A filter that matches address lists created before the specified date-time.

    getAddressLists Result

    The following output properties are available:

    AddressLists List<GetAddressListsAddressList>
    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<GetAddressListsFilter>
    Ids List<string>
    Names List<string>
    States List<string>
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    AddressLists []GetAddressListsAddressList
    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 []GetAddressListsFilter
    Ids []string
    Names []string
    States []string
    TimeCreatedGreaterThanOrEqualTo string
    TimeCreatedLessThan string
    addressLists List<GetAddressListsAddressList>
    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<GetAddressListsFilter>
    ids List<String>
    names List<String>
    states List<String>
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String
    addressLists GetAddressListsAddressList[]
    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 GetAddressListsFilter[]
    ids string[]
    names string[]
    states string[]
    timeCreatedGreaterThanOrEqualTo string
    timeCreatedLessThan string
    address_lists Sequence[waas.GetAddressListsAddressList]
    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[waas.GetAddressListsFilter]
    ids Sequence[str]
    names Sequence[str]
    states Sequence[str]
    time_created_greater_than_or_equal_to str
    time_created_less_than str
    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>
    timeCreatedGreaterThanOrEqualTo String
    timeCreatedLessThan String

    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.
    DefinedTags Dictionary<string, object>
    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.
    FreeformTags Dictionary<string, object>
    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.
    DefinedTags map[string]interface{}
    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.
    FreeformTags map[string]interface{}
    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.
    definedTags Map<String,Object>
    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.
    freeformTags Map<String,Object>
    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.
    definedTags {[key: string]: any}
    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.
    freeformTags {[key: string]: any}
    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.
    defined_tags Mapping[str, Any]
    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.
    freeform_tags Mapping[str, Any]
    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.
    definedTags Map<Any>
    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.
    freeformTags Map<Any>
    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

    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
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi