1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getAddressLists
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Waas.getAddressLists

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 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: 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[_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, 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.
    FreeformTags 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.
    DefinedTags 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.
    FreeformTags 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.
    definedTags 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.
    freeformTags 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.
    definedTags {[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.
    freeformTags {[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.
    defined_tags 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.
    freeform_tags 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.
    definedTags 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.
    freeformTags 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

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi