Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Waf.getNetworkAddressList
Explore with Pulumi AI
This data source provides details about a specific Network Address List resource in Oracle Cloud Infrastructure Waf service.
Gets a NetworkAddressList by OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkAddressList = oci.Waf.getNetworkAddressList({
    networkAddressListId: testNetworkAddressListOciWafNetworkAddressList.id,
});
import pulumi
import pulumi_oci as oci
test_network_address_list = oci.Waf.get_network_address_list(network_address_list_id=test_network_address_list_oci_waf_network_address_list["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/waf"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := waf.GetNetworkAddressList(ctx, &waf.GetNetworkAddressListArgs{
			NetworkAddressListId: testNetworkAddressListOciWafNetworkAddressList.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 testNetworkAddressList = Oci.Waf.GetNetworkAddressList.Invoke(new()
    {
        NetworkAddressListId = testNetworkAddressListOciWafNetworkAddressList.Id,
    });
});
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.GetNetworkAddressListArgs;
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 testNetworkAddressList = WafFunctions.getNetworkAddressList(GetNetworkAddressListArgs.builder()
            .networkAddressListId(testNetworkAddressListOciWafNetworkAddressList.id())
            .build());
    }
}
variables:
  testNetworkAddressList:
    fn::invoke:
      function: oci:Waf:getNetworkAddressList
      arguments:
        networkAddressListId: ${testNetworkAddressListOciWafNetworkAddressList.id}
Using getNetworkAddressList
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 getNetworkAddressList(args: GetNetworkAddressListArgs, opts?: InvokeOptions): Promise<GetNetworkAddressListResult>
function getNetworkAddressListOutput(args: GetNetworkAddressListOutputArgs, opts?: InvokeOptions): Output<GetNetworkAddressListResult>def get_network_address_list(network_address_list_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetNetworkAddressListResult
def get_network_address_list_output(network_address_list_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetNetworkAddressListResult]func LookupNetworkAddressList(ctx *Context, args *LookupNetworkAddressListArgs, opts ...InvokeOption) (*LookupNetworkAddressListResult, error)
func LookupNetworkAddressListOutput(ctx *Context, args *LookupNetworkAddressListOutputArgs, opts ...InvokeOption) LookupNetworkAddressListResultOutput> Note: This function is named LookupNetworkAddressList in the Go SDK.
public static class GetNetworkAddressList 
{
    public static Task<GetNetworkAddressListResult> InvokeAsync(GetNetworkAddressListArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkAddressListResult> Invoke(GetNetworkAddressListInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkAddressListResult> getNetworkAddressList(GetNetworkAddressListArgs args, InvokeOptions options)
public static Output<GetNetworkAddressListResult> getNetworkAddressList(GetNetworkAddressListArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Waf/getNetworkAddressList:getNetworkAddressList
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NetworkAddress stringList Id 
- The OCID of the NetworkAddressList.
- NetworkAddress stringList Id 
- The OCID of the NetworkAddressList.
- networkAddress StringList Id 
- The OCID of the NetworkAddressList.
- networkAddress stringList Id 
- The OCID of the NetworkAddressList.
- network_address_ strlist_ id 
- The OCID of the NetworkAddressList.
- networkAddress StringList Id 
- The OCID of the NetworkAddressList.
getNetworkAddressList Result
The following output properties are available:
- Addresses List<string>
- A private IP address or CIDR IP address range.
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- NetworkAddressList display name, can be renamed.
- Dictionary<string, string>
- 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
- The OCID of the NetworkAddressList.
- 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.
- NetworkAddress stringList Id 
- State string
- The current state of the NetworkAddressList.
- Dictionary<string, string>
- 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<GetNetwork Address List Vcn Address> 
- 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.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- NetworkAddressList display name, can be renamed.
- map[string]string
- 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
- The OCID of the NetworkAddressList.
- 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.
- NetworkAddress stringList Id 
- State string
- The current state of the NetworkAddressList.
- map[string]string
- 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 []GetNetwork Address List Vcn Address 
- 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.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- NetworkAddressList display name, can be renamed.
- Map<String,String>
- 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
- The OCID of the NetworkAddressList.
- 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.
- networkAddress StringList Id 
- state String
- The current state of the NetworkAddressList.
- Map<String,String>
- 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<GetNetwork Address List Vcn Address> 
- 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.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- NetworkAddressList display name, can be renamed.
- {[key: string]: string}
- 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
- The OCID of the NetworkAddressList.
- 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.
- networkAddress stringList Id 
- state string
- The current state of the NetworkAddressList.
- {[key: string]: string}
- 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 GetNetwork Address List Vcn Address[] 
- 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.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- display_name str
- NetworkAddressList display name, can be renamed.
- Mapping[str, str]
- 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
- The OCID of the NetworkAddressList.
- 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.
- network_address_ strlist_ id 
- state str
- The current state of the NetworkAddressList.
- Mapping[str, str]
- 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[GetNetwork Address List Vcn Address] 
- 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.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- NetworkAddressList display name, can be renamed.
- Map<String>
- 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
- The OCID of the NetworkAddressList.
- 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.
- networkAddress StringList Id 
- state String
- The current state of the NetworkAddressList.
- Map<String>
- 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.
Supporting Types
GetNetworkAddressListVcnAddress     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.