1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getAddressList
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Waas.getAddressList

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 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: oci_waas_address_list.test_address_list.id,
    });
    
    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"])
    
    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
    	})
    }
    
    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 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());
    
        }
    }
    
    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:

    AddressListId string
    The OCID of the address list. This number is generated when the address list is added to the compartment.
    AddressListId string
    The OCID of the address list. This number is generated when the address list is added to the compartment.
    addressListId String
    The OCID of the address list. This number is generated when the address list is added to the compartment.
    addressListId string
    The OCID of the address list. This number is generated when the address list is added to the compartment.
    address_list_id str
    The OCID of the address list. This number is generated when the address list is added to the compartment.
    addressListId 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, 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"}
    DisplayName string
    The user-friendly name of the address list.
    FreeformTags 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.
    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]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"}
    DisplayName string
    The user-friendly name of the address list.
    FreeformTags 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.
    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,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"}
    displayName String
    The user-friendly name of the address list.
    freeformTags 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.
    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]: 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"}
    displayName string
    The user-friendly name of the address list.
    freeformTags {[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.
    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, 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.
    freeform_tags 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.
    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<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"}
    displayName String
    The user-friendly name of the address list.
    freeformTags 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.
    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.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi