1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyAddressLists
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.NetworkFirewall.getNetworkFirewallPolicyAddressLists

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:NetworkFirewall/getNetworkFirewallPolicyAddressLists:getNetworkFirewallPolicyAddressLists
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetNetworkFirewallPolicyAddressListsFilter>
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetNetworkFirewallPolicyAddressListsFilter
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetPolicyAddressListsFilter>
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetNetworkFirewallPolicyAddressListsFilter[]
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[networkfirewall.GetNetworkFirewallPolicyAddressListsFilter]
    networkFirewallPolicyId String
    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:

    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

    GetNetworkFirewallPolicyAddressListsAddressListSummaryCollectionItem

    Addresses List<string>
    List of addresses.
    Name string
    Unique name to identify the group of addresses to be used in the policy rules.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    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.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    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.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    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.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    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_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    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.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    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

    Name string
    Unique name to identify the group of addresses to be used in the policy rules.
    Values List<string>
    Regex bool
    Name string
    Unique name to identify the group of addresses to be used in the policy rules.
    Values []string
    Regex bool
    name String
    Unique name to identify the group of addresses to be used in the policy rules.
    values List<String>
    regex Boolean
    name string
    Unique name to identify the group of addresses to be used in the policy rules.
    values string[]
    regex boolean
    name str
    Unique name to identify the group of addresses to be used in the policy rules.
    values Sequence[str]
    regex bool
    name String
    Unique name to identify the group of addresses to be used in the policy rules.
    values 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.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi