Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.NetworkFirewall.getNetworkFirewallPolicyServices
Explore with Pulumi AI
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/v2/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[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[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)
public static Output<GetNetworkFirewallPolicyServicesResult> getNetworkFirewallPolicyServices(GetNetworkFirewallPolicyServicesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:NetworkFirewall/getNetworkFirewallPolicyServices:getNetworkFirewallPolicyServices
  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 Services 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 Services 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 Services 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 Services 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[GetNetwork Firewall Policy Services 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>
getNetworkFirewallPolicyServices Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkFirewall stringPolicy Id 
- ServiceSummary List<GetCollections Network Firewall Policy Services Service Summary Collection> 
- The list of service_summary_collection.
- DisplayName string
- Filters
List<GetNetwork Firewall Policy Services Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkFirewall stringPolicy Id 
- ServiceSummary []GetCollections Network Firewall Policy Services Service Summary Collection 
- The list of service_summary_collection.
- DisplayName string
- Filters
[]GetNetwork Firewall Policy Services Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- networkFirewall StringPolicy Id 
- serviceSummary List<GetCollections Policy Services Service Summary Collection> 
- The list of service_summary_collection.
- displayName String
- filters
List<GetPolicy Services Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- networkFirewall stringPolicy Id 
- serviceSummary GetCollections Network Firewall Policy Services Service Summary Collection[] 
- The list of service_summary_collection.
- displayName string
- filters
GetNetwork Firewall Policy Services Filter[] 
- id str
- The provider-assigned unique ID for this managed resource.
- network_firewall_ strpolicy_ id 
- service_summary_ Sequence[Getcollections Network Firewall Policy Services Service Summary Collection] 
- The list of service_summary_collection.
- display_name str
- filters
Sequence[GetNetwork Firewall Policy Services Filter] 
- id String
- The provider-assigned unique ID for this managed resource.
- networkFirewall StringPolicy Id 
- serviceSummary List<Property Map>Collections 
- The list of service_summary_collection.
- displayName String
- filters List<Property Map>
Supporting Types
GetNetworkFirewallPolicyServicesFilter     
GetNetworkFirewallPolicyServicesServiceSummaryCollection       
GetNetworkFirewallPolicyServicesServiceSummaryCollectionItem        
- Name string
- Name of the service.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- OCID of the Network Firewall Policy this service belongs to.
- PortRanges List<GetNetwork Firewall Policy Services Service Summary Collection Item Port Range> 
- List of port-ranges used.
- Type string
- Describes the type of Service.
- Name string
- Name of the service.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- ParentResource stringId 
- OCID of the Network Firewall Policy this service belongs to.
- PortRanges []GetNetwork Firewall Policy Services Service Summary Collection Item Port Range 
- List of port-ranges used.
- Type string
- Describes the type of Service.
- name String
- Name of the service.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- OCID of the Network Firewall Policy this service belongs to.
- portRanges List<GetPolicy Services Service Summary Collection Item Port Range> 
- List of port-ranges used.
- type String
- Describes the type of Service.
- name string
- Name of the service.
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource stringId 
- OCID of the Network Firewall Policy this service belongs to.
- portRanges GetNetwork Firewall Policy Services Service Summary Collection Item Port Range[] 
- List of port-ranges used.
- type string
- Describes the type of Service.
- name str
- Name of the service.
- network_firewall_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- parent_resource_ strid 
- OCID of the Network Firewall Policy this service belongs to.
- port_ranges Sequence[GetNetwork Firewall Policy Services Service Summary Collection Item Port Range] 
- List of port-ranges used.
- type str
- Describes the type of Service.
- name String
- Name of the service.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- parentResource StringId 
- 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 ociTerraform Provider.