1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyServiceLists
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.NetworkFirewall.getNetworkFirewallPolicyServiceLists

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

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

    Returns a list of ServiceLists for the policy.

    Example Usage

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

    Using getNetworkFirewallPolicyServiceLists

    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 getNetworkFirewallPolicyServiceLists(args: GetNetworkFirewallPolicyServiceListsArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyServiceListsResult>
    function getNetworkFirewallPolicyServiceListsOutput(args: GetNetworkFirewallPolicyServiceListsOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyServiceListsResult>
    def get_network_firewall_policy_service_lists(display_name: Optional[str] = None,
                                                  filters: Optional[Sequence[_networkfirewall.GetNetworkFirewallPolicyServiceListsFilter]] = None,
                                                  network_firewall_policy_id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyServiceListsResult
    def get_network_firewall_policy_service_lists_output(display_name: Optional[pulumi.Input[str]] = None,
                                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_networkfirewall.GetNetworkFirewallPolicyServiceListsFilterArgs]]]] = None,
                                                  network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyServiceListsResult]
    func GetNetworkFirewallPolicyServiceLists(ctx *Context, args *GetNetworkFirewallPolicyServiceListsArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyServiceListsResult, error)
    func GetNetworkFirewallPolicyServiceListsOutput(ctx *Context, args *GetNetworkFirewallPolicyServiceListsOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyServiceListsResultOutput

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

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

    getNetworkFirewallPolicyServiceLists Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkFirewallPolicyId string
    ServiceListSummaryCollections []GetNetworkFirewallPolicyServiceListsServiceListSummaryCollection
    The list of service_list_summary_collection.
    DisplayName string
    Filters []GetNetworkFirewallPolicyServiceListsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    serviceListSummaryCollections List<GetPolicyServiceListsServiceListSummaryCollection>
    The list of service_list_summary_collection.
    displayName String
    filters List<GetPolicyServiceListsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId string
    serviceListSummaryCollections GetNetworkFirewallPolicyServiceListsServiceListSummaryCollection[]
    The list of service_list_summary_collection.
    displayName string
    filters GetNetworkFirewallPolicyServiceListsFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    networkFirewallPolicyId String
    serviceListSummaryCollections List<Property Map>
    The list of service_list_summary_collection.
    displayName String
    filters List<Property Map>

    Supporting Types

    GetNetworkFirewallPolicyServiceListsFilter

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

    GetNetworkFirewallPolicyServiceListsServiceListSummaryCollection

    GetNetworkFirewallPolicyServiceListsServiceListSummaryCollectionItem

    Name string
    Name of the service Group.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    Services List<string>
    List of services in the group.
    TotalServices int
    Count of total services in the given service List.
    Name string
    Name of the service Group.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    Services []string
    List of services in the group.
    TotalServices int
    Count of total services in the given service List.
    name String
    Name of the service Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this serviceList belongs to.
    services List<String>
    List of services in the group.
    totalServices Integer
    Count of total services in the given service List.
    name string
    Name of the service Group.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this serviceList belongs to.
    services string[]
    List of services in the group.
    totalServices number
    Count of total services in the given service List.
    name str
    Name of the service Group.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    OCID of the Network Firewall Policy this serviceList belongs to.
    services Sequence[str]
    List of services in the group.
    total_services int
    Count of total services in the given service List.
    name String
    Name of the service Group.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this serviceList belongs to.
    services List<String>
    List of services in the group.
    totalServices Number
    Count of total services in the given service List.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi