Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testNetworkFirewallPolicyAddressLists:
    fn::invoke:
      function: oci:NetworkFirewall:getNetworkFirewallPolicyAddressLists
      arguments:
        networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
        displayName: ${networkFirewallPolicyAddressListDisplayName}
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>def get_network_firewall_policy_address_lists(display_name: Optional[str] = None,
                                              filters: Optional[Sequence[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[GetNetworkFirewallPolicyAddressListsFilterArgs]]]] = None,
                                              network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyAddressListsResult]func GetNetworkFirewallPolicyAddressLists(ctx *Context, args *GetNetworkFirewallPolicyAddressListsArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyAddressListsResult, error)
func GetNetworkFirewallPolicyAddressListsOutput(ctx *Context, args *GetNetworkFirewallPolicyAddressListsOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyAddressListsResultOutput> 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)
}public static CompletableFuture<GetNetworkFirewallPolicyAddressListsResult> getNetworkFirewallPolicyAddressLists(GetNetworkFirewallPolicyAddressListsArgs args, InvokeOptions options)
public static Output<GetNetworkFirewallPolicyAddressListsResult> getNetworkFirewallPolicyAddressLists(GetNetworkFirewallPolicyAddressListsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:NetworkFirewall/getNetworkFirewallPolicyAddressLists:getNetworkFirewallPolicyAddressLists
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetNetwork Firewall Policy Address Lists Filter> 
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetNetwork Firewall Policy Address Lists Filter 
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetPolicy Address Lists Filter> 
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetNetwork Firewall Policy Address Lists Filter[] 
- network_firewall_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- display_name str
- A filter to return only resources that match the entire display name given.
- filters
Sequence[GetNetwork Firewall Policy Address Lists Filter] 
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- displayName String
- A filter to return only resources that match the entire display name given.
- filters List<Property Map>
getNetworkFirewallPolicyAddressLists Result
The following output properties are available:
- AddressList List<GetSummary Collections Network Firewall Policy Address Lists Address List Summary Collection> 
- The list of address_list_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkFirewall stringPolicy Id 
- DisplayName string
- Filters
List<GetNetwork Firewall Policy Address Lists Filter> 
- AddressList []GetSummary Collections Network Firewall Policy Address Lists Address List Summary Collection 
- The list of address_list_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkFirewall stringPolicy Id 
- DisplayName string
- Filters
[]GetNetwork Firewall Policy Address Lists Filter 
- addressList List<GetSummary Collections Policy Address Lists Address List Summary Collection> 
- The list of address_list_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- networkFirewall StringPolicy Id 
- displayName String
- filters
List<GetPolicy Address Lists Filter> 
- addressList GetSummary Collections Network Firewall Policy Address Lists Address List Summary Collection[] 
- The list of address_list_summary_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- networkFirewall stringPolicy Id 
- displayName string
- filters
GetNetwork Firewall Policy Address Lists Filter[] 
- address_list_ Sequence[Getsummary_ collections Network Firewall Policy Address Lists Address List Summary Collection] 
- The list of address_list_summary_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- network_firewall_ strpolicy_ id 
- display_name str
- filters
Sequence[GetNetwork Firewall Policy Address Lists Filter] 
- addressList List<Property Map>Summary Collections 
- The list of address_list_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- networkFirewall StringPolicy Id 
- displayName String
- filters List<Property Map>
Supporting Types
GetNetworkFirewallPolicyAddressListsAddressListSummaryCollection         
GetNetworkFirewallPolicyAddressListsAddressListSummaryCollectionItem          
- Addresses List<string>
- List of addresses.
- Name string
- Unique name to identify the group of addresses to be used in the policy rules.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- OCID of the Network Firewall Policy this Address List belongs to.
- TotalAddresses int
- Count of total Addresses in the AddressList
- Type string
- Type of address list.
- Addresses []string
- List of addresses.
- Name string
- Unique name to identify the group of addresses to be used in the policy rules.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- OCID of the Network Firewall Policy this Address List belongs to.
- TotalAddresses int
- Count of total Addresses in the AddressList
- Type string
- Type of address list.
- addresses List<String>
- List of addresses.
- name String
- Unique name to identify the group of addresses to be used in the policy rules.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- OCID of the Network Firewall Policy this Address List belongs to.
- totalAddresses Integer
- Count of total Addresses in the AddressList
- type String
- Type of address list.
- addresses string[]
- List of addresses.
- name string
- Unique name to identify the group of addresses to be used in the policy rules.
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource stringId 
- OCID of the Network Firewall Policy this Address List belongs to.
- totalAddresses number
- Count of total Addresses in the AddressList
- type string
- Type of address list.
- addresses Sequence[str]
- List of addresses.
- name str
- Unique name to identify the group of addresses to be used in the policy rules.
- network_firewall_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- parent_resource_ strid 
- OCID of the Network Firewall Policy this Address List belongs to.
- total_addresses int
- Count of total Addresses in the AddressList
- type str
- Type of address list.
- addresses List<String>
- List of addresses.
- name String
- Unique name to identify the group of addresses to be used in the policy rules.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- OCID of the Network Firewall Policy this Address List belongs to.
- totalAddresses Number
- Count of total Addresses in the AddressList
- type String
- Type of address list.
GetNetworkFirewallPolicyAddressListsFilter      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.