1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyApplications
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.NetworkFirewall.getNetworkFirewallPolicyApplications

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

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

    Returns a list of Applications for the policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyApplications = oci.NetworkFirewall.getNetworkFirewallPolicyApplications({
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
        displayName: networkFirewallPolicyApplicationDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_applications = oci.NetworkFirewall.get_network_firewall_policy_applications(network_firewall_policy_id=test_network_firewall_policy["id"],
        display_name=network_firewall_policy_application_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.GetNetworkFirewallPolicyApplications(ctx, &networkfirewall.GetNetworkFirewallPolicyApplicationsArgs{
    			NetworkFirewallPolicyId: testNetworkFirewallPolicy.Id,
    			DisplayName:             pulumi.StringRef(networkFirewallPolicyApplicationDisplayName),
    		}, 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 testNetworkFirewallPolicyApplications = Oci.NetworkFirewall.GetNetworkFirewallPolicyApplications.Invoke(new()
        {
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
            DisplayName = networkFirewallPolicyApplicationDisplayName,
        });
    
    });
    
    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.GetNetworkFirewallPolicyApplicationsArgs;
    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 testNetworkFirewallPolicyApplications = NetworkFirewallFunctions.getNetworkFirewallPolicyApplications(GetNetworkFirewallPolicyApplicationsArgs.builder()
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .displayName(networkFirewallPolicyApplicationDisplayName)
                .build());
    
        }
    }
    
    variables:
      testNetworkFirewallPolicyApplications:
        fn::invoke:
          Function: oci:NetworkFirewall:getNetworkFirewallPolicyApplications
          Arguments:
            networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
            displayName: ${networkFirewallPolicyApplicationDisplayName}
    

    Using getNetworkFirewallPolicyApplications

    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 getNetworkFirewallPolicyApplications(args: GetNetworkFirewallPolicyApplicationsArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyApplicationsResult>
    function getNetworkFirewallPolicyApplicationsOutput(args: GetNetworkFirewallPolicyApplicationsOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyApplicationsResult>
    def get_network_firewall_policy_applications(display_name: Optional[str] = None,
                                                 filters: Optional[Sequence[_networkfirewall.GetNetworkFirewallPolicyApplicationsFilter]] = None,
                                                 network_firewall_policy_id: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyApplicationsResult
    def get_network_firewall_policy_applications_output(display_name: Optional[pulumi.Input[str]] = None,
                                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[_networkfirewall.GetNetworkFirewallPolicyApplicationsFilterArgs]]]] = None,
                                                 network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyApplicationsResult]
    func GetNetworkFirewallPolicyApplications(ctx *Context, args *GetNetworkFirewallPolicyApplicationsArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyApplicationsResult, error)
    func GetNetworkFirewallPolicyApplicationsOutput(ctx *Context, args *GetNetworkFirewallPolicyApplicationsOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyApplicationsResultOutput

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

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

    getNetworkFirewallPolicyApplications Result

    The following output properties are available:

    ApplicationSummaryCollections []GetNetworkFirewallPolicyApplicationsApplicationSummaryCollection
    The list of application_summary_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkFirewallPolicyId string
    DisplayName string
    Filters []GetNetworkFirewallPolicyApplicationsFilter
    applicationSummaryCollections List<GetPolicyApplicationsApplicationSummaryCollection>
    The list of application_summary_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    displayName String
    filters List<GetPolicyApplicationsFilter>
    applicationSummaryCollections GetNetworkFirewallPolicyApplicationsApplicationSummaryCollection[]
    The list of application_summary_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId string
    displayName string
    filters GetNetworkFirewallPolicyApplicationsFilter[]
    applicationSummaryCollections List<Property Map>
    The list of application_summary_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    displayName String
    filters List<Property Map>

    Supporting Types

    GetNetworkFirewallPolicyApplicationsApplicationSummaryCollection

    GetNetworkFirewallPolicyApplicationsApplicationSummaryCollectionItem

    IcmpCode int
    The value of the ICMP6 message Code (subtype) field as defined by RFC 4443.
    IcmpType int
    The value of the ICMP6 message Type field as defined by RFC 4443.
    Name string
    Name of the application.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this application belongs to.
    Type string
    Describes the type of Application.
    IcmpCode int
    The value of the ICMP6 message Code (subtype) field as defined by RFC 4443.
    IcmpType int
    The value of the ICMP6 message Type field as defined by RFC 4443.
    Name string
    Name of the application.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this application belongs to.
    Type string
    Describes the type of Application.
    icmpCode Integer
    The value of the ICMP6 message Code (subtype) field as defined by RFC 4443.
    icmpType Integer
    The value of the ICMP6 message Type field as defined by RFC 4443.
    name String
    Name of the application.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this application belongs to.
    type String
    Describes the type of Application.
    icmpCode number
    The value of the ICMP6 message Code (subtype) field as defined by RFC 4443.
    icmpType number
    The value of the ICMP6 message Type field as defined by RFC 4443.
    name string
    Name of the application.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this application belongs to.
    type string
    Describes the type of Application.
    icmp_code int
    The value of the ICMP6 message Code (subtype) field as defined by RFC 4443.
    icmp_type int
    The value of the ICMP6 message Type field as defined by RFC 4443.
    name str
    Name of the application.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    OCID of the Network Firewall Policy this application belongs to.
    type str
    Describes the type of Application.
    icmpCode Number
    The value of the ICMP6 message Code (subtype) field as defined by RFC 4443.
    icmpType Number
    The value of the ICMP6 message Type field as defined by RFC 4443.
    name String
    Name of the application.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this application belongs to.
    type String
    Describes the type of Application.

    GetNetworkFirewallPolicyApplicationsFilter

    Name string
    Name of the application.
    Values List<string>
    Regex bool
    Name string
    Name of the application.
    Values []string
    Regex bool
    name String
    Name of the application.
    values List<String>
    regex Boolean
    name string
    Name of the application.
    values string[]
    regex boolean
    name str
    Name of the application.
    values Sequence[str]
    regex bool
    name String
    Name of the application.
    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.41.0 published on Wednesday, Jun 19, 2024 by Pulumi