1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyAddressLists
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.NetworkFirewall.getNetworkFirewallPolicyAddressLists

Explore with Pulumi AI

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

Returns a list of Network Firewall Policies.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNetworkFirewallPolicyAddressLists = oci.NetworkFirewall.getNetworkFirewallPolicyAddressLists({
    networkFirewallPolicyId: testNetworkFirewallPolicy.id,
    displayName: networkFirewallPolicyAddressListDisplayName,
});
Copy
import pulumi
import pulumi_oci as oci

test_network_firewall_policy_address_lists = oci.NetworkFirewall.get_network_firewall_policy_address_lists(network_firewall_policy_id=test_network_firewall_policy["id"],
    display_name=network_firewall_policy_address_list_display_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/networkfirewall"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkfirewall.GetNetworkFirewallPolicyAddressLists(ctx, &networkfirewall.GetNetworkFirewallPolicyAddressListsArgs{
			NetworkFirewallPolicyId: testNetworkFirewallPolicy.Id,
			DisplayName:             pulumi.StringRef(networkFirewallPolicyAddressListDisplayName),
		}, 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 testNetworkFirewallPolicyAddressLists = Oci.NetworkFirewall.GetNetworkFirewallPolicyAddressLists.Invoke(new()
    {
        NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
        DisplayName = networkFirewallPolicyAddressListDisplayName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.NetworkFirewall.NetworkFirewallFunctions;
import com.pulumi.oci.NetworkFirewall.inputs.GetNetworkFirewallPolicyAddressListsArgs;
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 testNetworkFirewallPolicyAddressLists = NetworkFirewallFunctions.getNetworkFirewallPolicyAddressLists(GetNetworkFirewallPolicyAddressListsArgs.builder()
            .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
            .displayName(networkFirewallPolicyAddressListDisplayName)
            .build());

    }
}
Copy
variables:
  testNetworkFirewallPolicyAddressLists:
    fn::invoke:
      function: oci:NetworkFirewall:getNetworkFirewallPolicyAddressLists
      arguments:
        networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
        displayName: ${networkFirewallPolicyAddressListDisplayName}
Copy

Using getNetworkFirewallPolicyAddressLists

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 getNetworkFirewallPolicyAddressLists(args: GetNetworkFirewallPolicyAddressListsArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyAddressListsResult>
function getNetworkFirewallPolicyAddressListsOutput(args: GetNetworkFirewallPolicyAddressListsOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyAddressListsResult>
Copy
def get_network_firewall_policy_address_lists(display_name: Optional[str] = None,
                                              filters: Optional[Sequence[_networkfirewall.GetNetworkFirewallPolicyAddressListsFilter]] = None,
                                              network_firewall_policy_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyAddressListsResult
def get_network_firewall_policy_address_lists_output(display_name: Optional[pulumi.Input[str]] = None,
                                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_networkfirewall.GetNetworkFirewallPolicyAddressListsFilterArgs]]]] = None,
                                              network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyAddressListsResult]
Copy
func GetNetworkFirewallPolicyAddressLists(ctx *Context, args *GetNetworkFirewallPolicyAddressListsArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyAddressListsResult, error)
func GetNetworkFirewallPolicyAddressListsOutput(ctx *Context, args *GetNetworkFirewallPolicyAddressListsOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyAddressListsResultOutput
Copy

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

public static class GetNetworkFirewallPolicyAddressLists 
{
    public static Task<GetNetworkFirewallPolicyAddressListsResult> InvokeAsync(GetNetworkFirewallPolicyAddressListsArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkFirewallPolicyAddressListsResult> Invoke(GetNetworkFirewallPolicyAddressListsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkFirewallPolicyAddressListsResult> getNetworkFirewallPolicyAddressLists(GetNetworkFirewallPolicyAddressListsArgs args, InvokeOptions options)
public static Output<GetNetworkFirewallPolicyAddressListsResult> getNetworkFirewallPolicyAddressLists(GetNetworkFirewallPolicyAddressListsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:NetworkFirewall/getNetworkFirewallPolicyAddressLists:getNetworkFirewallPolicyAddressLists
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NetworkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
DisplayName string
A filter to return only resources that match the entire display name given.
Filters Changes to this property will trigger replacement. List<GetNetworkFirewallPolicyAddressListsFilter>
NetworkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
DisplayName string
A filter to return only resources that match the entire display name given.
Filters Changes to this property will trigger replacement. []GetNetworkFirewallPolicyAddressListsFilter
networkFirewallPolicyId This property is required. String
Unique Network Firewall Policy identifier
displayName String
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. List<GetPolicyAddressListsFilter>
networkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
displayName string
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. GetNetworkFirewallPolicyAddressListsFilter[]
network_firewall_policy_id This property is required. str
Unique Network Firewall Policy identifier
display_name str
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. Sequence[networkfirewall.GetNetworkFirewallPolicyAddressListsFilter]
networkFirewallPolicyId This property is required. String
Unique Network Firewall Policy identifier
displayName String
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. List<Property Map>

getNetworkFirewallPolicyAddressLists Result

The following output properties are available:

AddressListSummaryCollections []GetNetworkFirewallPolicyAddressListsAddressListSummaryCollection
The list of address_list_summary_collection.
Id string
The provider-assigned unique ID for this managed resource.
NetworkFirewallPolicyId string
DisplayName string
Filters []GetNetworkFirewallPolicyAddressListsFilter
addressListSummaryCollections List<GetPolicyAddressListsAddressListSummaryCollection>
The list of address_list_summary_collection.
id String
The provider-assigned unique ID for this managed resource.
networkFirewallPolicyId String
displayName String
filters List<GetPolicyAddressListsFilter>
addressListSummaryCollections GetNetworkFirewallPolicyAddressListsAddressListSummaryCollection[]
The list of address_list_summary_collection.
id string
The provider-assigned unique ID for this managed resource.
networkFirewallPolicyId string
displayName string
filters GetNetworkFirewallPolicyAddressListsFilter[]
addressListSummaryCollections List<Property Map>
The list of address_list_summary_collection.
id String
The provider-assigned unique ID for this managed resource.
networkFirewallPolicyId String
displayName String
filters List<Property Map>

Supporting Types

GetNetworkFirewallPolicyAddressListsAddressListSummaryCollection

items This property is required. List<Property Map>

GetNetworkFirewallPolicyAddressListsAddressListSummaryCollectionItem

Addresses This property is required. List<string>
List of addresses.
Name This property is required. string
Unique name to identify the group of addresses to be used in the policy rules.
NetworkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
ParentResourceId This property is required. string
OCID of the Network Firewall Policy this Address List belongs to.
TotalAddresses This property is required. int
Count of total Addresses in the AddressList
Type This property is required. string
Type of address list.
Addresses This property is required. []string
List of addresses.
Name This property is required. string
Unique name to identify the group of addresses to be used in the policy rules.
NetworkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
ParentResourceId This property is required. string
OCID of the Network Firewall Policy this Address List belongs to.
TotalAddresses This property is required. int
Count of total Addresses in the AddressList
Type This property is required. string
Type of address list.
addresses This property is required. List<String>
List of addresses.
name This property is required. String
Unique name to identify the group of addresses to be used in the policy rules.
networkFirewallPolicyId This property is required. String
Unique Network Firewall Policy identifier
parentResourceId This property is required. String
OCID of the Network Firewall Policy this Address List belongs to.
totalAddresses This property is required. Integer
Count of total Addresses in the AddressList
type This property is required. String
Type of address list.
addresses This property is required. string[]
List of addresses.
name This property is required. string
Unique name to identify the group of addresses to be used in the policy rules.
networkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
parentResourceId This property is required. string
OCID of the Network Firewall Policy this Address List belongs to.
totalAddresses This property is required. number
Count of total Addresses in the AddressList
type This property is required. string
Type of address list.
addresses This property is required. Sequence[str]
List of addresses.
name This property is required. str
Unique name to identify the group of addresses to be used in the policy rules.
network_firewall_policy_id This property is required. str
Unique Network Firewall Policy identifier
parent_resource_id This property is required. str
OCID of the Network Firewall Policy this Address List belongs to.
total_addresses This property is required. int
Count of total Addresses in the AddressList
type This property is required. str
Type of address list.
addresses This property is required. List<String>
List of addresses.
name This property is required. String
Unique name to identify the group of addresses to be used in the policy rules.
networkFirewallPolicyId This property is required. String
Unique Network Firewall Policy identifier
parentResourceId This property is required. String
OCID of the Network Firewall Policy this Address List belongs to.
totalAddresses This property is required. Number
Count of total Addresses in the AddressList
type This property is required. String
Type of address list.

GetNetworkFirewallPolicyAddressListsFilter

Name This property is required. string
Unique name to identify the group of addresses to be used in the policy rules.
Values This property is required. List<string>
Regex bool
Name This property is required. string
Unique name to identify the group of addresses to be used in the policy rules.
Values This property is required. []string
Regex bool
name This property is required. String
Unique name to identify the group of addresses to be used in the policy rules.
values This property is required. List<String>
regex Boolean
name This property is required. string
Unique name to identify the group of addresses to be used in the policy rules.
values This property is required. string[]
regex boolean
name This property is required. str
Unique name to identify the group of addresses to be used in the policy rules.
values This property is required. Sequence[str]
regex bool
name This property is required. String
Unique name to identify the group of addresses to be used in the policy rules.
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.