Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Waas.getAddressList
Explore with Pulumi AI
This data source provides details about a specific Address List resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.
Gets the details of an address list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAddressList = oci.Waas.getAddressList({
    addressListId: testAddressListOciWaasAddressList.id,
});
import pulumi
import pulumi_oci as oci
test_address_list = oci.Waas.get_address_list(address_list_id=test_address_list_oci_waas_address_list["id"])
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.GetAddressList(ctx, &waas.GetAddressListArgs{
			AddressListId: testAddressListOciWaasAddressList.Id,
		}, 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 testAddressList = Oci.Waas.GetAddressList.Invoke(new()
    {
        AddressListId = testAddressListOciWaasAddressList.Id,
    });
});
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.GetAddressListArgs;
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 testAddressList = WaasFunctions.getAddressList(GetAddressListArgs.builder()
            .addressListId(testAddressListOciWaasAddressList.id())
            .build());
    }
}
variables:
  testAddressList:
    fn::invoke:
      function: oci:Waas:getAddressList
      arguments:
        addressListId: ${testAddressListOciWaasAddressList.id}
Using getAddressList
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 getAddressList(args: GetAddressListArgs, opts?: InvokeOptions): Promise<GetAddressListResult>
function getAddressListOutput(args: GetAddressListOutputArgs, opts?: InvokeOptions): Output<GetAddressListResult>def get_address_list(address_list_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAddressListResult
def get_address_list_output(address_list_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAddressListResult]func GetAddressList(ctx *Context, args *GetAddressListArgs, opts ...InvokeOption) (*GetAddressListResult, error)
func GetAddressListOutput(ctx *Context, args *GetAddressListOutputArgs, opts ...InvokeOption) GetAddressListResultOutput> Note: This function is named GetAddressList in the Go SDK.
public static class GetAddressList 
{
    public static Task<GetAddressListResult> InvokeAsync(GetAddressListArgs args, InvokeOptions? opts = null)
    public static Output<GetAddressListResult> Invoke(GetAddressListInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAddressListResult> getAddressList(GetAddressListArgs args, InvokeOptions options)
public static Output<GetAddressListResult> getAddressList(GetAddressListArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Waas/getAddressList:getAddressList
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Address
List stringId  - The OCID of the address list. This number is generated when the address list is added to the compartment.
 
- Address
List stringId  - The OCID of the address list. This number is generated when the address list is added to the compartment.
 
- address
List StringId  - The OCID of the address list. This number is generated when the address list is added to the compartment.
 
- address
List stringId  - The OCID of the address list. This number is generated when the address list is added to the compartment.
 
- address_
list_ strid  - The OCID of the address list. This number is generated when the address list is added to the compartment.
 
- address
List StringId  - The OCID of the address list. This number is generated when the address list is added to the compartment.
 
getAddressList Result
The following output properties are available:
- Address
Count double - The total number of unique IP addresses in the address list.
 - Address
List stringId  - Addresses List<string>
 - The list of IP addresses or CIDR notations.
 - Compartment
Id string - The OCID of the address list's compartment.
 - 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.
 - Address
List stringId  - Addresses []string
 - The list of IP addresses or CIDR notations.
 - Compartment
Id string - The OCID of the address list's compartment.
 - 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.
 - address
List StringId  - addresses List<String>
 - The list of IP addresses or CIDR notations.
 - compartment
Id String - The OCID of the address list's compartment.
 - 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.
 - address
List stringId  - addresses string[]
 - The list of IP addresses or CIDR notations.
 - compartment
Id string - The OCID of the address list's compartment.
 - {[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.
 - address_
list_ strid  - addresses Sequence[str]
 - The list of IP addresses or CIDR notations.
 - compartment_
id str - The OCID of the address list's compartment.
 - 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.
 - address
List StringId  - addresses List<String>
 - The list of IP addresses or CIDR notations.
 - compartment
Id String - The OCID of the address list's compartment.
 - 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.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.