1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyApplicationGroups
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.NetworkFirewall.getNetworkFirewallPolicyApplicationGroups

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Returns a list of ApplicationGroups for the policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyApplicationGroups = oci.NetworkFirewall.getNetworkFirewallPolicyApplicationGroups({
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
        displayName: networkFirewallPolicyApplicationGroupDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_application_groups = oci.NetworkFirewall.get_network_firewall_policy_application_groups(network_firewall_policy_id=test_network_firewall_policy["id"],
        display_name=network_firewall_policy_application_group_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.GetNetworkFirewallPolicyApplicationGroups(ctx, &networkfirewall.GetNetworkFirewallPolicyApplicationGroupsArgs{
    			NetworkFirewallPolicyId: testNetworkFirewallPolicy.Id,
    			DisplayName:             pulumi.StringRef(networkFirewallPolicyApplicationGroupDisplayName),
    		}, 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 testNetworkFirewallPolicyApplicationGroups = Oci.NetworkFirewall.GetNetworkFirewallPolicyApplicationGroups.Invoke(new()
        {
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
            DisplayName = networkFirewallPolicyApplicationGroupDisplayName,
        });
    
    });
    
    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.GetNetworkFirewallPolicyApplicationGroupsArgs;
    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 testNetworkFirewallPolicyApplicationGroups = NetworkFirewallFunctions.getNetworkFirewallPolicyApplicationGroups(GetNetworkFirewallPolicyApplicationGroupsArgs.builder()
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .displayName(networkFirewallPolicyApplicationGroupDisplayName)
                .build());
    
        }
    }
    
    variables:
      testNetworkFirewallPolicyApplicationGroups:
        fn::invoke:
          Function: oci:NetworkFirewall:getNetworkFirewallPolicyApplicationGroups
          Arguments:
            networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
            displayName: ${networkFirewallPolicyApplicationGroupDisplayName}
    

    Using getNetworkFirewallPolicyApplicationGroups

    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 getNetworkFirewallPolicyApplicationGroups(args: GetNetworkFirewallPolicyApplicationGroupsArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyApplicationGroupsResult>
    function getNetworkFirewallPolicyApplicationGroupsOutput(args: GetNetworkFirewallPolicyApplicationGroupsOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyApplicationGroupsResult>
    def get_network_firewall_policy_application_groups(display_name: Optional[str] = None,
                                                       filters: Optional[Sequence[_networkfirewall.GetNetworkFirewallPolicyApplicationGroupsFilter]] = None,
                                                       network_firewall_policy_id: Optional[str] = None,
                                                       opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyApplicationGroupsResult
    def get_network_firewall_policy_application_groups_output(display_name: Optional[pulumi.Input[str]] = None,
                                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[_networkfirewall.GetNetworkFirewallPolicyApplicationGroupsFilterArgs]]]] = None,
                                                       network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                                       opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyApplicationGroupsResult]
    func GetNetworkFirewallPolicyApplicationGroups(ctx *Context, args *GetNetworkFirewallPolicyApplicationGroupsArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyApplicationGroupsResult, error)
    func GetNetworkFirewallPolicyApplicationGroupsOutput(ctx *Context, args *GetNetworkFirewallPolicyApplicationGroupsOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyApplicationGroupsResultOutput

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

    public static class GetNetworkFirewallPolicyApplicationGroups 
    {
        public static Task<GetNetworkFirewallPolicyApplicationGroupsResult> InvokeAsync(GetNetworkFirewallPolicyApplicationGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkFirewallPolicyApplicationGroupsResult> Invoke(GetNetworkFirewallPolicyApplicationGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkFirewallPolicyApplicationGroupsResult> getNetworkFirewallPolicyApplicationGroups(GetNetworkFirewallPolicyApplicationGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:NetworkFirewall/getNetworkFirewallPolicyApplicationGroups:getNetworkFirewallPolicyApplicationGroups
      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<GetNetworkFirewallPolicyApplicationGroupsFilter>
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetNetworkFirewallPolicyApplicationGroupsFilter
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetPolicyApplicationGroupsFilter>
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetNetworkFirewallPolicyApplicationGroupsFilter[]
    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.GetNetworkFirewallPolicyApplicationGroupsFilter]
    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>

    getNetworkFirewallPolicyApplicationGroups Result

    The following output properties are available:

    applicationGroupSummaryCollections List<GetPolicyApplicationGroupsApplicationGroupSummaryCollection>
    The list of application_group_summary_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    displayName String
    filters List<GetPolicyApplicationGroupsFilter>
    applicationGroupSummaryCollections List<Property Map>
    The list of application_group_summary_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    displayName String
    filters List<Property Map>

    Supporting Types

    GetNetworkFirewallPolicyApplicationGroupsApplicationGroupSummaryCollection

    GetNetworkFirewallPolicyApplicationGroupsApplicationGroupSummaryCollectionItem

    Apps List<string>
    List of apps in the group.
    Name string
    Name of the application Group.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    TotalApps int
    Count of total applications in the given application group.
    Apps []string
    List of apps in the group.
    Name string
    Name of the application Group.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    TotalApps int
    Count of total applications in the given application group.
    apps List<String>
    List of apps in the group.
    name String
    Name of the application Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps Integer
    Count of total applications in the given application group.
    apps string[]
    List of apps in the group.
    name string
    Name of the application Group.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps number
    Count of total applications in the given application group.
    apps Sequence[str]
    List of apps in the group.
    name str
    Name of the application Group.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    OCID of the Network Firewall Policy this application group belongs to.
    total_apps int
    Count of total applications in the given application group.
    apps List<String>
    List of apps in the group.
    name String
    Name of the application Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this application group belongs to.
    totalApps Number
    Count of total applications in the given application group.

    GetNetworkFirewallPolicyApplicationGroupsFilter

    Name string
    Name of the application Group.
    Values List<string>
    Regex bool
    Name string
    Name of the application Group.
    Values []string
    Regex bool
    name String
    Name of the application Group.
    values List<String>
    regex Boolean
    name string
    Name of the application Group.
    values string[]
    regex boolean
    name str
    Name of the application Group.
    values Sequence[str]
    regex bool
    name String
    Name of the application Group.
    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi