1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getAddressList
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Waas.getAddressList

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testAddressList:
    fn::invoke:
      function: oci:Waas:getAddressList
      arguments:
        addressListId: ${testAddressListOciWaasAddressList.id}
Copy

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>
Copy
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]
Copy
func GetAddressList(ctx *Context, args *GetAddressListArgs, opts ...InvokeOption) (*GetAddressListResult, error)
func GetAddressListOutput(ctx *Context, args *GetAddressListOutputArgs, opts ...InvokeOption) GetAddressListResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAddressListResult> getAddressList(GetAddressListArgs args, InvokeOptions options)
public static Output<GetAddressListResult> getAddressList(GetAddressListArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Waas/getAddressList:getAddressList
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AddressListId This property is required. string
The OCID of the address list. This number is generated when the address list is added to the compartment.
AddressListId This property is required. string
The OCID of the address list. This number is generated when the address list is added to the compartment.
addressListId This property is required. String
The OCID of the address list. This number is generated when the address list is added to the compartment.
addressListId This property is required. string
The OCID of the address list. This number is generated when the address list is added to the compartment.
address_list_id This property is required. str
The OCID of the address list. This number is generated when the address list is added to the compartment.
addressListId This property is required. String
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.
AddressListId string
Addresses List<string>
The list of IP addresses or CIDR notations.
CompartmentId string
The OCID of the address list's compartment.
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.
AddressListId string
Addresses []string
The list of IP addresses or CIDR notations.
CompartmentId string
The OCID of the address list's compartment.
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.
addressListId String
addresses List<String>
The list of IP addresses or CIDR notations.
compartmentId String
The OCID of the address list's compartment.
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.
addressListId string
addresses string[]
The list of IP addresses or CIDR notations.
compartmentId string
The OCID of the address list's compartment.
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.
address_list_id str
addresses Sequence[str]
The list of IP addresses or CIDR notations.
compartment_id str
The OCID of the address list's compartment.
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.
addressListId String
addresses List<String>
The list of IP addresses or CIDR notations.
compartmentId String
The OCID of the address list's compartment.
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.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi