Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:NetworkFirewall/getNetworkFirewallPolicyServiceLists:getNetworkFirewallPolicyServiceLists
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 Service Lists 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 Service Lists 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 Service Lists 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 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]
- 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>
getNetworkFirewallPolicyServiceLists Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Firewall stringPolicy Id - Service
List List<GetSummary Collections Network Firewall Policy Service Lists Service List Summary Collection> - The list of service_list_summary_collection.
- Display
Name string - Filters
List<Get
Network Firewall Policy Service Lists Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Firewall stringPolicy Id - Service
List []GetSummary Collections Network Firewall Policy Service Lists Service List Summary Collection - The list of service_list_summary_collection.
- Display
Name string - Filters
[]Get
Network Firewall Policy Service Lists Filter
- id String
- The provider-assigned unique ID for this managed resource.
- network
Firewall StringPolicy Id - service
List List<GetSummary Collections Policy Service Lists Service List Summary Collection> - The list of service_list_summary_collection.
- display
Name String - filters
List<Get
Policy Service Lists Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- network
Firewall stringPolicy Id - service
List GetSummary Collections Network Firewall Policy Service Lists Service List Summary Collection[] - The list of service_list_summary_collection.
- display
Name string - filters
Get
Network 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.
- network
Firewall StringPolicy Id - service
List List<Property Map>Summary Collections - The list of service_list_summary_collection.
- display
Name String - filters List<Property Map>
Supporting Types
GetNetworkFirewallPolicyServiceListsFilter
GetNetworkFirewallPolicyServiceListsServiceListSummaryCollection
GetNetworkFirewallPolicyServiceListsServiceListSummaryCollectionItem
- Name string
- Name of the service Group.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this serviceList belongs to.
- Services List<string>
- 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.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this serviceList belongs to.
- Services []string
- 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.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this serviceList belongs to.
- services List<String>
- List of services in the group.
- total
Services Integer - Count of total services in the given service List.
- name string
- Name of the service Group.
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource stringId - OCID of the Network Firewall Policy this serviceList belongs to.
- services string[]
- List of services in the group.
- total
Services 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.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this serviceList belongs to.
- services List<String>
- List of services in the group.
- total
Services 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.