1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waf
  5. getNetworkAddressLists
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Waf.getNetworkAddressLists

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Network Address Lists in Oracle Cloud Infrastructure Waf service.

    Gets a list of all NetworkAddressLists in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkAddressLists = oci.Waf.getNetworkAddressLists({
        compartmentId: compartmentId,
        displayName: networkAddressListDisplayName,
        id: networkAddressListId,
        states: networkAddressListState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_address_lists = oci.Waf.get_network_address_lists(compartment_id=compartment_id,
        display_name=network_address_list_display_name,
        id=network_address_list_id,
        states=network_address_list_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Waf"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Waf.GetNetworkAddressLists(ctx, &waf.GetNetworkAddressListsArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(networkAddressListDisplayName),
    			Id:            pulumi.StringRef(networkAddressListId),
    			States:        networkAddressListState,
    		}, 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 testNetworkAddressLists = Oci.Waf.GetNetworkAddressLists.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = networkAddressListDisplayName,
            Id = networkAddressListId,
            States = networkAddressListState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Waf.WafFunctions;
    import com.pulumi.oci.Waf.inputs.GetNetworkAddressListsArgs;
    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 testNetworkAddressLists = WafFunctions.getNetworkAddressLists(GetNetworkAddressListsArgs.builder()
                .compartmentId(compartmentId)
                .displayName(networkAddressListDisplayName)
                .id(networkAddressListId)
                .states(networkAddressListState)
                .build());
    
        }
    }
    
    variables:
      testNetworkAddressLists:
        fn::invoke:
          Function: oci:Waf:getNetworkAddressLists
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${networkAddressListDisplayName}
            id: ${networkAddressListId}
            states: ${networkAddressListState}
    

    Using getNetworkAddressLists

    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 getNetworkAddressLists(args: GetNetworkAddressListsArgs, opts?: InvokeOptions): Promise<GetNetworkAddressListsResult>
    function getNetworkAddressListsOutput(args: GetNetworkAddressListsOutputArgs, opts?: InvokeOptions): Output<GetNetworkAddressListsResult>
    def get_network_address_lists(compartment_id: Optional[str] = None,
                                  display_name: Optional[str] = None,
                                  filters: Optional[Sequence[_waf.GetNetworkAddressListsFilter]] = None,
                                  id: Optional[str] = None,
                                  states: Optional[Sequence[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetNetworkAddressListsResult
    def get_network_address_lists_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  display_name: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_waf.GetNetworkAddressListsFilterArgs]]]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetNetworkAddressListsResult]
    func GetNetworkAddressLists(ctx *Context, args *GetNetworkAddressListsArgs, opts ...InvokeOption) (*GetNetworkAddressListsResult, error)
    func GetNetworkAddressListsOutput(ctx *Context, args *GetNetworkAddressListsOutputArgs, opts ...InvokeOption) GetNetworkAddressListsResultOutput

    > Note: This function is named GetNetworkAddressLists in the Go SDK.

    public static class GetNetworkAddressLists 
    {
        public static Task<GetNetworkAddressListsResult> InvokeAsync(GetNetworkAddressListsArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkAddressListsResult> Invoke(GetNetworkAddressListsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkAddressListsResult> getNetworkAddressLists(GetNetworkAddressListsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waf/getNetworkAddressLists:getNetworkAddressLists
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetNetworkAddressListsFilter>
    Id string
    A filter to return only the NetworkAddressList with the given OCID.
    States List<string>
    A filter to return only resources that match the given lifecycleState.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetNetworkAddressListsFilter
    Id string
    A filter to return only the NetworkAddressList with the given OCID.
    States []string
    A filter to return only resources that match the given lifecycleState.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetNetworkAddressListsFilter>
    id String
    A filter to return only the NetworkAddressList with the given OCID.
    states List<String>
    A filter to return only resources that match the given lifecycleState.
    compartmentId string
    The OCID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetNetworkAddressListsFilter[]
    id string
    A filter to return only the NetworkAddressList with the given OCID.
    states string[]
    A filter to return only resources that match the given lifecycleState.
    compartment_id str
    The OCID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[waf.GetNetworkAddressListsFilter]
    id str
    A filter to return only the NetworkAddressList with the given OCID.
    states Sequence[str]
    A filter to return only resources that match the given lifecycleState.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    id String
    A filter to return only the NetworkAddressList with the given OCID.
    states List<String>
    A filter to return only resources that match the given lifecycleState.

    getNetworkAddressLists Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    NetworkAddressListCollections List<GetNetworkAddressListsNetworkAddressListCollection>
    The list of network_address_list_collection.
    DisplayName string
    NetworkAddressList display name, can be renamed.
    Filters List<GetNetworkAddressListsFilter>
    Id string
    The OCID of the NetworkAddressList.
    States List<string>
    The current state of the NetworkAddressList.
    CompartmentId string
    The OCID of the compartment.
    NetworkAddressListCollections []GetNetworkAddressListsNetworkAddressListCollection
    The list of network_address_list_collection.
    DisplayName string
    NetworkAddressList display name, can be renamed.
    Filters []GetNetworkAddressListsFilter
    Id string
    The OCID of the NetworkAddressList.
    States []string
    The current state of the NetworkAddressList.
    compartmentId String
    The OCID of the compartment.
    networkAddressListCollections List<GetNetworkAddressListsNetworkAddressListCollection>
    The list of network_address_list_collection.
    displayName String
    NetworkAddressList display name, can be renamed.
    filters List<GetNetworkAddressListsFilter>
    id String
    The OCID of the NetworkAddressList.
    states List<String>
    The current state of the NetworkAddressList.
    compartmentId string
    The OCID of the compartment.
    networkAddressListCollections GetNetworkAddressListsNetworkAddressListCollection[]
    The list of network_address_list_collection.
    displayName string
    NetworkAddressList display name, can be renamed.
    filters GetNetworkAddressListsFilter[]
    id string
    The OCID of the NetworkAddressList.
    states string[]
    The current state of the NetworkAddressList.
    compartment_id str
    The OCID of the compartment.
    network_address_list_collections Sequence[waf.GetNetworkAddressListsNetworkAddressListCollection]
    The list of network_address_list_collection.
    display_name str
    NetworkAddressList display name, can be renamed.
    filters Sequence[waf.GetNetworkAddressListsFilter]
    id str
    The OCID of the NetworkAddressList.
    states Sequence[str]
    The current state of the NetworkAddressList.
    compartmentId String
    The OCID of the compartment.
    networkAddressListCollections List<Property Map>
    The list of network_address_list_collection.
    displayName String
    NetworkAddressList display name, can be renamed.
    filters List<Property Map>
    id String
    The OCID of the NetworkAddressList.
    states List<String>
    The current state of the NetworkAddressList.

    Supporting Types

    GetNetworkAddressListsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetNetworkAddressListsNetworkAddressListCollection

    GetNetworkAddressListsNetworkAddressListCollectionItem

    Addresses List<string>
    A private IP address or CIDR IP address range.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    A filter to return only the NetworkAddressList with the given OCID.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    State string
    A filter to return only resources that match the given lifecycleState.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the NetworkAddressList was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the NetworkAddressList was updated. An RFC3339 formatted datetime string.
    Type string
    Type of NetworkAddressList.
    VcnAddresses List<GetNetworkAddressListsNetworkAddressListCollectionItemVcnAddress>
    A list of private address prefixes, each associated with a particular VCN. To specify all addresses in a VCN, use "0.0.0.0/0" for IPv4 and "::/0" for IPv6.
    Addresses []string
    A private IP address or CIDR IP address range.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    A filter to return only the NetworkAddressList with the given OCID.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    State string
    A filter to return only resources that match the given lifecycleState.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the NetworkAddressList was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the NetworkAddressList was updated. An RFC3339 formatted datetime string.
    Type string
    Type of NetworkAddressList.
    VcnAddresses []GetNetworkAddressListsNetworkAddressListCollectionItemVcnAddress
    A list of private address prefixes, each associated with a particular VCN. To specify all addresses in a VCN, use "0.0.0.0/0" for IPv4 and "::/0" for IPv6.
    addresses List<String>
    A private IP address or CIDR IP address range.
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    A filter to return only the NetworkAddressList with the given OCID.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    state String
    A filter to return only resources that match the given lifecycleState.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the NetworkAddressList was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the NetworkAddressList was updated. An RFC3339 formatted datetime string.
    type String
    Type of NetworkAddressList.
    vcnAddresses List<GetNetworkAddressListsNetworkAddressListCollectionItemVcnAddress>
    A list of private address prefixes, each associated with a particular VCN. To specify all addresses in a VCN, use "0.0.0.0/0" for IPv4 and "::/0" for IPv6.
    addresses string[]
    A private IP address or CIDR IP address range.
    compartmentId string
    The OCID of the compartment in which to list resources.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    A filter to return only resources that match the entire display name given.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    A filter to return only the NetworkAddressList with the given OCID.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    state string
    A filter to return only resources that match the given lifecycleState.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the NetworkAddressList was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the NetworkAddressList was updated. An RFC3339 formatted datetime string.
    type string
    Type of NetworkAddressList.
    vcnAddresses GetNetworkAddressListsNetworkAddressListCollectionItemVcnAddress[]
    A list of private address prefixes, each associated with a particular VCN. To specify all addresses in a VCN, use "0.0.0.0/0" for IPv4 and "::/0" for IPv6.
    addresses Sequence[str]
    A private IP address or CIDR IP address range.
    compartment_id str
    The OCID of the compartment in which to list resources.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    A filter to return only resources that match the entire display name given.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    A filter to return only the NetworkAddressList with the given OCID.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    state str
    A filter to return only resources that match the given lifecycleState.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the NetworkAddressList was created. An RFC3339 formatted datetime string.
    time_updated str
    The time the NetworkAddressList was updated. An RFC3339 formatted datetime string.
    type str
    Type of NetworkAddressList.
    vcn_addresses Sequence[waf.GetNetworkAddressListsNetworkAddressListCollectionItemVcnAddress]
    A list of private address prefixes, each associated with a particular VCN. To specify all addresses in a VCN, use "0.0.0.0/0" for IPv4 and "::/0" for IPv6.
    addresses List<String>
    A private IP address or CIDR IP address range.
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    A filter to return only the NetworkAddressList with the given OCID.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in FAILED state.
    state String
    A filter to return only resources that match the given lifecycleState.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the NetworkAddressList was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the NetworkAddressList was updated. An RFC3339 formatted datetime string.
    type String
    Type of NetworkAddressList.
    vcnAddresses List<Property Map>
    A list of private address prefixes, each associated with a particular VCN. To specify all addresses in a VCN, use "0.0.0.0/0" for IPv4 and "::/0" for IPv6.

    GetNetworkAddressListsNetworkAddressListCollectionItemVcnAddress

    Addresses string
    A private IP address or CIDR IP address range.
    VcnId string
    The OCID of the VCN.
    Addresses string
    A private IP address or CIDR IP address range.
    VcnId string
    The OCID of the VCN.
    addresses String
    A private IP address or CIDR IP address range.
    vcnId String
    The OCID of the VCN.
    addresses string
    A private IP address or CIDR IP address range.
    vcnId string
    The OCID of the VCN.
    addresses str
    A private IP address or CIDR IP address range.
    vcn_id str
    The OCID of the VCN.
    addresses String
    A private IP address or CIDR IP address range.
    vcnId String
    The OCID of the VCN.

    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.41.0 published on Wednesday, Jun 19, 2024 by Pulumi