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
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 = oci_waas_address_list.Test_address_list.Id,
});
});
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.GetAddressList(ctx, &waas.GetAddressListArgs{
AddressListId: oci_waas_address_list.Test_address_list.Id,
}, 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.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(oci_waas_address_list.test_address_list().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_address_list = oci.Waas.get_address_list(address_list_id=oci_waas_address_list["test_address_list"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAddressList = oci.Waas.getAddressList({
addressListId: oci_waas_address_list.test_address_list.id,
});
variables:
testAddressList:
fn::invoke:
Function: oci:Waas:getAddressList
Arguments:
addressListId: ${oci_waas_address_list.test_address_list.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Waas/getAddressList:getAddressList
arguments:
# arguments dictionary
The 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, 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.
- 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]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.
- 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,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.
- 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]: 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.
- 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, 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.
- 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<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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.