oci.NetworkFirewall.getNetworkFirewalls
Explore with Pulumi AI
This data source provides the list of Network Firewalls in Oracle Cloud Infrastructure Network Firewall service.
Returns a list of NetworkFirewalls.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testNetworkFirewalls = Oci.NetworkFirewall.GetNetworkFirewalls.Invoke(new()
{
CompartmentId = @var.Compartment_id,
AvailabilityDomain = @var.Network_firewall_availability_domain,
DisplayName = @var.Network_firewall_display_name,
Id = @var.Network_firewall_id,
NetworkFirewallPolicyId = oci_network_firewall_network_firewall_policy.Test_network_firewall_policy.Id,
State = @var.Network_firewall_state,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/NetworkFirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := NetworkFirewall.GetNetworkFirewalls(ctx, &networkfirewall.GetNetworkFirewallsArgs{
CompartmentId: _var.Compartment_id,
AvailabilityDomain: pulumi.StringRef(_var.Network_firewall_availability_domain),
DisplayName: pulumi.StringRef(_var.Network_firewall_display_name),
Id: pulumi.StringRef(_var.Network_firewall_id),
NetworkFirewallPolicyId: pulumi.StringRef(oci_network_firewall_network_firewall_policy.Test_network_firewall_policy.Id),
State: pulumi.StringRef(_var.Network_firewall_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetNetworkFirewallsArgs;
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 testNetworkFirewalls = NetworkFirewallFunctions.getNetworkFirewalls(GetNetworkFirewallsArgs.builder()
.compartmentId(var_.compartment_id())
.availabilityDomain(var_.network_firewall_availability_domain())
.displayName(var_.network_firewall_display_name())
.id(var_.network_firewall_id())
.networkFirewallPolicyId(oci_network_firewall_network_firewall_policy.test_network_firewall_policy().id())
.state(var_.network_firewall_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_network_firewalls = oci.NetworkFirewall.get_network_firewalls(compartment_id=var["compartment_id"],
availability_domain=var["network_firewall_availability_domain"],
display_name=var["network_firewall_display_name"],
id=var["network_firewall_id"],
network_firewall_policy_id=oci_network_firewall_network_firewall_policy["test_network_firewall_policy"]["id"],
state=var["network_firewall_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkFirewalls = oci.NetworkFirewall.getNetworkFirewalls({
compartmentId: _var.compartment_id,
availabilityDomain: _var.network_firewall_availability_domain,
displayName: _var.network_firewall_display_name,
id: _var.network_firewall_id,
networkFirewallPolicyId: oci_network_firewall_network_firewall_policy.test_network_firewall_policy.id,
state: _var.network_firewall_state,
});
variables:
testNetworkFirewalls:
fn::invoke:
Function: oci:NetworkFirewall:getNetworkFirewalls
Arguments:
compartmentId: ${var.compartment_id}
availabilityDomain: ${var.network_firewall_availability_domain}
displayName: ${var.network_firewall_display_name}
id: ${var.network_firewall_id}
networkFirewallPolicyId: ${oci_network_firewall_network_firewall_policy.test_network_firewall_policy.id}
state: ${var.network_firewall_state}
Using getNetworkFirewalls
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 getNetworkFirewalls(args: GetNetworkFirewallsArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallsResult>
function getNetworkFirewallsOutput(args: GetNetworkFirewallsOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallsResult>
def get_network_firewalls(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_networkfirewall.GetNetworkFirewallsFilter]] = None,
id: Optional[str] = None,
network_firewall_policy_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallsResult
def get_network_firewalls_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_networkfirewall.GetNetworkFirewallsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallsResult]
func GetNetworkFirewalls(ctx *Context, args *GetNetworkFirewallsArgs, opts ...InvokeOption) (*GetNetworkFirewallsResult, error)
func GetNetworkFirewallsOutput(ctx *Context, args *GetNetworkFirewallsOutputArgs, opts ...InvokeOption) GetNetworkFirewallsResultOutput
> Note: This function is named GetNetworkFirewalls
in the Go SDK.
public static class GetNetworkFirewalls
{
public static Task<GetNetworkFirewallsResult> InvokeAsync(GetNetworkFirewallsArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkFirewallsResult> Invoke(GetNetworkFirewallsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkFirewallsResult> getNetworkFirewalls(GetNetworkFirewallsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:NetworkFirewall/getNetworkFirewalls:getNetworkFirewalls
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The ID of the compartment in which to list resources.
- Availability
Domain string A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Display
Name string A filter to return only resources that match the entire display name given.
- Filters
List<Get
Network Firewalls Filter> - Id string
The OCID of the Network Firewall resource.
- Network
Firewall stringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- State string
A filter to return only resources with a lifecycleState matching the given value.
- Compartment
Id string The ID of the compartment in which to list resources.
- Availability
Domain string A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Display
Name string A filter to return only resources that match the entire display name given.
- Filters
[]Get
Network Firewalls Filter - Id string
The OCID of the Network Firewall resource.
- Network
Firewall stringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- State string
A filter to return only resources with a lifecycleState matching the given value.
- compartment
Id String The ID of the compartment in which to list resources.
- availability
Domain String A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display
Name String A filter to return only resources that match the entire display name given.
- filters
List<Gets
Filter> - id String
The OCID of the Network Firewall resource.
- network
Firewall StringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- state String
A filter to return only resources with a lifecycleState matching the given value.
- compartment
Id string The ID of the compartment in which to list resources.
- availability
Domain string A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display
Name string A filter to return only resources that match the entire display name given.
- filters
Get
Network Firewalls Filter[] - id string
The OCID of the Network Firewall resource.
- network
Firewall stringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- state string
A filter to return only resources with a lifecycleState matching the given value.
- compartment_
id str The ID of the compartment in which to list resources.
- availability_
domain str A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display_
name str A filter to return only resources that match the entire display name given.
- filters
Get
Network Firewalls Filter] - id str
The OCID of the Network Firewall resource.
- network_
firewall_ strpolicy_ id A filter to return only resources that match the entire networkFirewallPolicyId given.
- state str
A filter to return only resources with a lifecycleState matching the given value.
- compartment
Id String The ID of the compartment in which to list resources.
- availability
Domain String A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display
Name String A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
The OCID of the Network Firewall resource.
- network
Firewall StringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- state String
A filter to return only resources with a lifecycleState matching the given value.
getNetworkFirewalls Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment containing the Network Firewall.
- Network
Firewall List<GetCollections Network Firewalls Network Firewall Collection> The list of network_firewall_collection.
- Availability
Domain string Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Display
Name string A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Network Firewalls Filter> - Id string
The OCID of the Network Firewall resource.
- Network
Firewall stringPolicy Id The OCID of the Network Firewall Policy.
- State string
The current state of the Network Firewall.
- Compartment
Id string The OCID of the compartment containing the Network Firewall.
- Network
Firewall []GetCollections Network Firewalls Network Firewall Collection The list of network_firewall_collection.
- Availability
Domain string Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Display
Name string A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Network Firewalls Filter - Id string
The OCID of the Network Firewall resource.
- Network
Firewall stringPolicy Id The OCID of the Network Firewall Policy.
- State string
The current state of the Network Firewall.
- compartment
Id String The OCID of the compartment containing the Network Firewall.
- network
Firewall List<GetsCollections Collection> The list of network_firewall_collection.
- availability
Domain String Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display
Name String A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Gets
Filter> - id String
The OCID of the Network Firewall resource.
- network
Firewall StringPolicy Id The OCID of the Network Firewall Policy.
- state String
The current state of the Network Firewall.
- compartment
Id string The OCID of the compartment containing the Network Firewall.
- network
Firewall GetCollections Network Firewalls Network Firewall Collection[] The list of network_firewall_collection.
- availability
Domain string Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display
Name string A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Network Firewalls Filter[] - id string
The OCID of the Network Firewall resource.
- network
Firewall stringPolicy Id The OCID of the Network Firewall Policy.
- state string
The current state of the Network Firewall.
- compartment_
id str The OCID of the compartment containing the Network Firewall.
- network_
firewall_ Getcollections Network Firewalls Network Firewall Collection] The list of network_firewall_collection.
- availability_
domain str Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display_
name str A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Network Firewalls Filter] - id str
The OCID of the Network Firewall resource.
- network_
firewall_ strpolicy_ id The OCID of the Network Firewall Policy.
- state str
The current state of the Network Firewall.
- compartment
Id String The OCID of the compartment containing the Network Firewall.
- network
Firewall List<Property Map>Collections The list of network_firewall_collection.
- availability
Domain String Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- display
Name String A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- id String
The OCID of the Network Firewall resource.
- network
Firewall StringPolicy Id The OCID of the Network Firewall Policy.
- state String
The current state of the Network Firewall.
Supporting Types
GetNetworkFirewallsFilter
GetNetworkFirewallsNetworkFirewallCollection
GetNetworkFirewallsNetworkFirewallCollectionItem
- Availability
Domain string A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Compartment
Id string The ID of the compartment in which to list resources.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A filter to return only resources that match the entire display name given.
- Dictionary<string, object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The OCID of the Network Firewall resource.
- Ipv4address string
IPv4 address for the Network Firewall.
- Ipv6address string
IPv6 address for the Network Firewall.
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Network
Firewall stringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- Network
Security List<string>Group Ids An array of network security groups OCID associated with the Network Firewall.
- State string
A filter to return only resources with a lifecycleState matching the given value.
- Subnet
Id string The OCID of the subnet associated with the Network Firewall.
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time instant at which the Network Firewall was created in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Availability
Domain string A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Compartment
Id string The ID of the compartment in which to list resources.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A filter to return only resources that match the entire display name given.
- map[string]interface{}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The OCID of the Network Firewall resource.
- Ipv4address string
IPv4 address for the Network Firewall.
- Ipv6address string
IPv6 address for the Network Firewall.
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Network
Firewall stringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- Network
Security []stringGroup Ids An array of network security groups OCID associated with the Network Firewall.
- State string
A filter to return only resources with a lifecycleState matching the given value.
- Subnet
Id string The OCID of the subnet associated with the Network Firewall.
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time instant at which the Network Firewall was created in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment
Id String The ID of the compartment in which to list resources.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A filter to return only resources that match the entire display name given.
- Map<String,Object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The OCID of the Network Firewall resource.
- ipv4address String
IPv4 address for the Network Firewall.
- ipv6address String
IPv6 address for the Network Firewall.
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- network
Firewall StringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- network
Security List<String>Group Ids An array of network security groups OCID associated with the Network Firewall.
- state String
A filter to return only resources with a lifecycleState matching the given value.
- subnet
Id String The OCID of the subnet associated with the Network Firewall.
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time instant at which the Network Firewall was created in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain string A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment
Id string The ID of the compartment in which to list resources.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string A filter to return only resources that match the entire display name given.
- {[key: string]: any}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
The OCID of the Network Firewall resource.
- ipv4address string
IPv4 address for the Network Firewall.
- ipv6address string
IPv6 address for the Network Firewall.
- lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- network
Firewall stringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- network
Security string[]Group Ids An array of network security groups OCID associated with the Network Firewall.
- state string
A filter to return only resources with a lifecycleState matching the given value.
- subnet
Id string The OCID of the subnet associated with the Network Firewall.
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string The time instant at which the Network Firewall was created in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability_
domain str A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment_
id str The ID of the compartment in which to list resources.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str A filter to return only resources that match the entire display name given.
- Mapping[str, Any]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
The OCID of the Network Firewall resource.
- ipv4address str
IPv4 address for the Network Firewall.
- ipv6address str
IPv6 address for the Network Firewall.
- lifecycle_
details str A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- network_
firewall_ strpolicy_ id A filter to return only resources that match the entire networkFirewallPolicyId given.
- network_
security_ Sequence[str]group_ ids An array of network security groups OCID associated with the Network Firewall.
- state str
A filter to return only resources with a lifecycleState matching the given value.
- subnet_
id str The OCID of the subnet associated with the Network Firewall.
- Mapping[str, Any]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str The time instant at which the Network Firewall was created in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time_
updated str The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String A filter to return only resources that are present within the specified availability domain. To get a list of availability domains for a tenancy, use ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment
Id String The ID of the compartment in which to list resources.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A filter to return only resources that match the entire display name given.
- Map<Any>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The OCID of the Network Firewall resource.
- ipv4address String
IPv4 address for the Network Firewall.
- ipv6address String
IPv6 address for the Network Firewall.
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- network
Firewall StringPolicy Id A filter to return only resources that match the entire networkFirewallPolicyId given.
- network
Security List<String>Group Ids An array of network security groups OCID associated with the Network Firewall.
- state String
A filter to return only resources with a lifecycleState matching the given value.
- subnet
Id String The OCID of the subnet associated with the Network Firewall.
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time instant at which the Network Firewall was created in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.