Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_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:
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Network Firewall Policy Services Filter>
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Network Firewall Policy Services Filter
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Policy Services Filter>
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Network 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[networkfirewall.
Get Network Firewall Policy Services Filter]
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- display
Name 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.
- Network
Firewall stringPolicy Id - Service
Summary List<GetCollections Network Firewall Policy Services Service Summary Collection> - The list of service_summary_collection.
- Display
Name string - Filters
List<Get
Network Firewall Policy Services Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Firewall stringPolicy Id - Service
Summary []GetCollections Network Firewall Policy Services Service Summary Collection - The list of service_summary_collection.
- Display
Name string - Filters
[]Get
Network Firewall Policy Services Filter
- id String
- The provider-assigned unique ID for this managed resource.
- network
Firewall StringPolicy Id - service
Summary List<GetCollections Policy Services Service Summary Collection> - The list of service_summary_collection.
- display
Name String - filters
List<Get
Policy Services Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- network
Firewall stringPolicy Id - service
Summary GetCollections Network Firewall Policy Services Service Summary Collection[] - The list of service_summary_collection.
- display
Name string - filters
Get
Network Firewall Policy Services Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- network_
firewall_ strpolicy_ id - service_
summary_ Sequence[networkfirewall.collections Get Network Firewall Policy Services Service Summary Collection] - The list of service_summary_collection.
- display_
name str - filters
Sequence[networkfirewall.
Get Network Firewall Policy Services Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- network
Firewall StringPolicy Id - service
Summary List<Property Map>Collections - The list of service_summary_collection.
- display
Name String - filters List<Property Map>
Supporting Types
GetNetworkFirewallPolicyServicesFilter
GetNetworkFirewallPolicyServicesServiceSummaryCollection
GetNetworkFirewallPolicyServicesServiceSummaryCollectionItem
- Name string
- Name of the service.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this service belongs to.
- Port
Ranges 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.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this service belongs to.
- Port
Ranges []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.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this service belongs to.
- port
Ranges 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.
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource stringId - OCID of the Network Firewall Policy this service belongs to.
- port
Ranges 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[networkfirewall.Get Network 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.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this service belongs to.
- port
Ranges List<Property Map> - List of port-ranges used.
- type String
- Describes the type of Service.
GetNetworkFirewallPolicyServicesServiceSummaryCollectionItemPortRange
- 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.
- 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.
- maximum
Port Integer - The maximum port in the range (inclusive), which may be absent for a single-port range.
- minimum
Port Integer - The minimum port in the range (inclusive), or the sole port of a single-port range.
- maximum
Port number - The maximum port in the range (inclusive), which may be absent for a single-port range.
- minimum
Port 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.
- maximum
Port Number - The maximum port in the range (inclusive), which may be absent for a single-port range.
- minimum
Port 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.