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
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 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
})
}
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());
}
}
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"])
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,
});
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:
- 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
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 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
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, 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"}
- Display
Name string The user-friendly name of the address list.
- 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.
- 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]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"}
- Display
Name string The user-friendly name of the address list.
- 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.
- 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,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"}
- display
Name String The user-friendly name of the address list.
- 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.
- 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]: 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 string The user-friendly name of the address list.
- {[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.
- 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, 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.
- 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.
- 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<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 String The user-friendly name of the address list.
- 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.
- 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
oci
Terraform Provider.