Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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[_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]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:
- Network
Firewall stringPolicy Id  - Unique Network Firewall Policy identifier
 - Display
Name string - A filter to return only resources that match the entire display name given.
 - Filters
List<Get
Network Firewall Policy Address Lists Filter>  
- Network
Firewall stringPolicy Id  - Unique Network Firewall Policy identifier
 - Display
Name string - A filter to return only resources that match the entire display name given.
 - Filters
[]Get
Network Firewall Policy Address Lists Filter  
- network
Firewall StringPolicy Id  - Unique Network Firewall Policy identifier
 - display
Name String - A filter to return only resources that match the entire display name given.
 - filters
List<Get
Policy Address Lists Filter>  
- network
Firewall stringPolicy Id  - Unique Network Firewall Policy identifier
 - display
Name string - A filter to return only resources that match the entire display name given.
 - filters
Get
Network 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[networkfirewall.
Get Network Firewall Policy Address Lists Filter]  
- network
Firewall StringPolicy Id  - Unique Network Firewall Policy identifier
 - display
Name 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:
- Address
List 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.
 - Network
Firewall stringPolicy Id  - Display
Name string - Filters
List<Get
Network Firewall Policy Address Lists Filter>  
- Address
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.
 - Network
Firewall stringPolicy Id  - Display
Name string - Filters
[]Get
Network Firewall Policy Address Lists Filter  
- address
List 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.
 - network
Firewall StringPolicy Id  - display
Name String - filters
List<Get
Policy Address Lists Filter>  
- address
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.
 - network
Firewall stringPolicy Id  - display
Name string - filters
Get
Network Firewall Policy Address Lists Filter[]  
- address_
list_ Sequence[networkfirewall.summary_ collections Get 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[networkfirewall.
Get Network Firewall Policy Address Lists Filter]  
- address
List List<Property Map>Summary Collections  - The list of address_list_summary_collection.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - network
Firewall StringPolicy Id  - display
Name 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.
 - Network
Firewall stringPolicy Id  - Unique Network Firewall Policy identifier
 - Parent
Resource stringId  - OCID of the Network Firewall Policy this Address List belongs to.
 - Total
Addresses 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.
 - Network
Firewall stringPolicy Id  - Unique Network Firewall Policy identifier
 - Parent
Resource stringId  - OCID of the Network Firewall Policy this Address List belongs to.
 - Total
Addresses 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.
 - network
Firewall StringPolicy Id  - Unique Network Firewall Policy identifier
 - parent
Resource StringId  - OCID of the Network Firewall Policy this Address List belongs to.
 - total
Addresses 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.
 - network
Firewall stringPolicy Id  - Unique Network Firewall Policy identifier
 - parent
Resource stringId  - OCID of the Network Firewall Policy this Address List belongs to.
 - total
Addresses 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.
 - network
Firewall StringPolicy Id  - Unique Network Firewall Policy identifier
 - parent
Resource StringId  - OCID of the Network Firewall Policy this Address List belongs to.
 - total
Addresses 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.