Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.NetworkFirewall.getNetworkFirewallPolicyServiceLists
Explore with Pulumi AI
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)
public static Output<GetNetworkFirewallPolicyServiceListsResult> getNetworkFirewallPolicyServiceLists(GetNetworkFirewallPolicyServiceListsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:NetworkFirewall/getNetworkFirewallPolicyServiceLists:getNetworkFirewallPolicyServiceLists
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetNetwork Firewall Policy Service Lists Filter> 
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetNetwork Firewall Policy Service Lists Filter 
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetPolicy Service Lists Filter> 
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetNetwork Firewall Policy Service Lists Filter[] 
- network_firewall_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- display_name str
- A filter to return only resources that match the entire display name given.
- filters
Sequence[networkfirewall.Get Network Firewall Policy Service Lists Filter] 
- networkFirewall StringPolicy Id 
- 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.
- NetworkFirewall stringPolicy Id 
- ServiceList List<GetSummary Collections Network Firewall Policy Service Lists Service List Summary Collection> 
- The list of service_list_summary_collection.
- DisplayName string
- Filters
List<GetNetwork Firewall Policy Service Lists Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkFirewall stringPolicy Id 
- ServiceList []GetSummary Collections Network Firewall Policy Service Lists Service List Summary Collection 
- The list of service_list_summary_collection.
- DisplayName string
- Filters
[]GetNetwork Firewall Policy Service Lists Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- networkFirewall StringPolicy Id 
- serviceList List<GetSummary Collections Policy Service Lists Service List Summary Collection> 
- The list of service_list_summary_collection.
- displayName String
- filters
List<GetPolicy Service Lists Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- networkFirewall stringPolicy Id 
- serviceList GetSummary Collections Network Firewall Policy Service Lists Service List Summary Collection[] 
- The list of service_list_summary_collection.
- displayName string
- filters
GetNetwork Firewall Policy Service Lists Filter[] 
- id str
- The provider-assigned unique ID for this managed resource.
- network_firewall_ strpolicy_ id 
- service_list_ Sequence[networkfirewall.summary_ collections Get Network Firewall Policy Service Lists Service List Summary Collection] 
- The list of service_list_summary_collection.
- display_name str
- filters
Sequence[networkfirewall.Get Network Firewall Policy Service Lists Filter] 
- id String
- The provider-assigned unique ID for this managed resource.
- networkFirewall StringPolicy Id 
- serviceList List<Property Map>Summary Collections 
- The list of service_list_summary_collection.
- displayName String
- filters List<Property Map>
Supporting Types
GetNetworkFirewallPolicyServiceListsFilter      
GetNetworkFirewallPolicyServiceListsServiceListSummaryCollection         
GetNetworkFirewallPolicyServiceListsServiceListSummaryCollectionItem          
- Name string
- Name of the service Group.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- 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.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- 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.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- 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.
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource stringId 
- 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_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- parent_resource_ strid 
- 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.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- 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 ociTerraform Provider.