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

oci.NetworkFirewall.getNetworkFirewallPolicyServices

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 Services in Oracle Cloud Infrastructure Network Firewall service.

    Returns a list of Services for the policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyServices = oci.NetworkFirewall.getNetworkFirewallPolicyServices({
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
        displayName: networkFirewallPolicyServiceDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_services = oci.NetworkFirewall.get_network_firewall_policy_services(network_firewall_policy_id=test_network_firewall_policy["id"],
        display_name=network_firewall_policy_service_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.GetNetworkFirewallPolicyServices(ctx, &networkfirewall.GetNetworkFirewallPolicyServicesArgs{
    			NetworkFirewallPolicyId: testNetworkFirewallPolicy.Id,
    			DisplayName:             pulumi.StringRef(networkFirewallPolicyServiceDisplayName),
    		}, 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 testNetworkFirewallPolicyServices = Oci.NetworkFirewall.GetNetworkFirewallPolicyServices.Invoke(new()
        {
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
            DisplayName = networkFirewallPolicyServiceDisplayName,
        });
    
    });
    
    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.GetNetworkFirewallPolicyServicesArgs;
    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 testNetworkFirewallPolicyServices = NetworkFirewallFunctions.getNetworkFirewallPolicyServices(GetNetworkFirewallPolicyServicesArgs.builder()
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .displayName(networkFirewallPolicyServiceDisplayName)
                .build());
    
        }
    }
    
    variables:
      testNetworkFirewallPolicyServices:
        fn::invoke:
          Function: oci:NetworkFirewall:getNetworkFirewallPolicyServices
          Arguments:
            networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
            displayName: ${networkFirewallPolicyServiceDisplayName}
    

    Using getNetworkFirewallPolicyServices

    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 getNetworkFirewallPolicyServices(args: GetNetworkFirewallPolicyServicesArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyServicesResult>
    function getNetworkFirewallPolicyServicesOutput(args: GetNetworkFirewallPolicyServicesOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyServicesResult>
    def get_network_firewall_policy_services(display_name: Optional[str] = None,
                                             filters: Optional[Sequence[_networkfirewall.GetNetworkFirewallPolicyServicesFilter]] = None,
                                             network_firewall_policy_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyServicesResult
    def get_network_firewall_policy_services_output(display_name: Optional[pulumi.Input[str]] = None,
                                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_networkfirewall.GetNetworkFirewallPolicyServicesFilterArgs]]]] = None,
                                             network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyServicesResult]
    func GetNetworkFirewallPolicyServices(ctx *Context, args *GetNetworkFirewallPolicyServicesArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyServicesResult, error)
    func GetNetworkFirewallPolicyServicesOutput(ctx *Context, args *GetNetworkFirewallPolicyServicesOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyServicesResultOutput

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

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

    getNetworkFirewallPolicyServices Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkFirewallPolicyId string
    ServiceSummaryCollections List<GetNetworkFirewallPolicyServicesServiceSummaryCollection>
    The list of service_summary_collection.
    DisplayName string
    Filters List<GetNetworkFirewallPolicyServicesFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkFirewallPolicyId string
    ServiceSummaryCollections []GetNetworkFirewallPolicyServicesServiceSummaryCollection
    The list of service_summary_collection.
    DisplayName string
    Filters []GetNetworkFirewallPolicyServicesFilter
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    serviceSummaryCollections List<GetPolicyServicesServiceSummaryCollection>
    The list of service_summary_collection.
    displayName String
    filters List<GetPolicyServicesFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId string
    serviceSummaryCollections GetNetworkFirewallPolicyServicesServiceSummaryCollection[]
    The list of service_summary_collection.
    displayName string
    filters GetNetworkFirewallPolicyServicesFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    serviceSummaryCollections List<Property Map>
    The list of service_summary_collection.
    displayName String
    filters List<Property Map>

    Supporting Types

    GetNetworkFirewallPolicyServicesFilter

    Name string
    Name of the service.
    Values List<string>
    Regex bool
    Name string
    Name of the service.
    Values []string
    Regex bool
    name String
    Name of the service.
    values List<String>
    regex Boolean
    name string
    Name of the service.
    values string[]
    regex boolean
    name str
    Name of the service.
    values Sequence[str]
    regex bool
    name String
    Name of the service.
    values List<String>
    regex Boolean

    GetNetworkFirewallPolicyServicesServiceSummaryCollection

    GetNetworkFirewallPolicyServicesServiceSummaryCollectionItem

    Name string
    Name of the service.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this service belongs to.
    PortRanges List<GetNetworkFirewallPolicyServicesServiceSummaryCollectionItemPortRange>
    List of port-ranges used.
    Type string
    Describes the type of Service.
    Name string
    Name of the service.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this service belongs to.
    PortRanges []GetNetworkFirewallPolicyServicesServiceSummaryCollectionItemPortRange
    List of port-ranges used.
    Type string
    Describes the type of Service.
    name String
    Name of the service.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this service belongs to.
    portRanges List<GetPolicyServicesServiceSummaryCollectionItemPortRange>
    List of port-ranges used.
    type String
    Describes the type of Service.
    name string
    Name of the service.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this service belongs to.
    portRanges GetNetworkFirewallPolicyServicesServiceSummaryCollectionItemPortRange[]
    List of port-ranges used.
    type string
    Describes the type of Service.
    name str
    Name of the service.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    OCID of the Network Firewall Policy this service belongs to.
    port_ranges Sequence[networkfirewall.GetNetworkFirewallPolicyServicesServiceSummaryCollectionItemPortRange]
    List of port-ranges used.
    type str
    Describes the type of Service.
    name String
    Name of the service.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this service belongs to.
    portRanges List<Property Map>
    List of port-ranges used.
    type String
    Describes the type of Service.

    GetNetworkFirewallPolicyServicesServiceSummaryCollectionItemPortRange

    MaximumPort int
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    MinimumPort int
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    MaximumPort int
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    MinimumPort int
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximumPort Integer
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimumPort Integer
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximumPort number
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimumPort number
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximum_port int
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimum_port int
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximumPort Number
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimumPort Number
    The minimum port in the range (inclusive), or the sole port of a single-port range.

    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