Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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 LookupAddressList(ctx *Context, args *LookupAddressListArgs, opts ...InvokeOption) (*LookupAddressListResult, error)
func LookupAddressListOutput(ctx *Context, args *LookupAddressListOutputArgs, opts ...InvokeOption) LookupAddressListResultOutput> Note: This function is named LookupAddressList 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:
- AddressList stringId 
- The OCID of the address list. This number is generated when the address list is added to the compartment.
- AddressList stringId 
- The OCID of the address list. This number is generated when the address list is added to the compartment.
- addressList StringId 
- The OCID of the address list. This number is generated when the address list is added to the compartment.
- addressList 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.
- addressList 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:
- AddressCount double
- The total number of unique IP addresses in the address list.
- AddressList stringId 
- Addresses List<string>
- The list of IP addresses or CIDR notations.
- CompartmentId 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"}
- 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.
- AddressList stringId 
- Addresses []string
- The list of IP addresses or CIDR notations.
- CompartmentId 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"}
- 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.
- addressList StringId 
- addresses List<String>
- The list of IP addresses or CIDR notations.
- compartmentId 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"}
- 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.
- addressList stringId 
- addresses string[]
- The list of IP addresses or CIDR notations.
- compartmentId 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"}
- 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.
- 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.
- addressCount Number
- The total number of unique IP addresses in the address list.
- addressList StringId 
- addresses List<String>
- The list of IP addresses or CIDR notations.
- compartmentId 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"}
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.