Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific Network Firewall Policy resource in Oracle Cloud Infrastructure Network Firewall service.
Gets a NetworkFirewallPolicy given the network firewall policy identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkFirewallPolicy = oci.NetworkFirewall.getNetworkFirewallPolicy({
networkFirewallPolicyId: testNetworkFirewallPolicyOciNetworkFirewallNetworkFirewallPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_network_firewall_policy = oci.NetworkFirewall.get_network_firewall_policy(network_firewall_policy_id=test_network_firewall_policy_oci_network_firewall_network_firewall_policy["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/networkfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkfirewall.GetNetworkFirewallPolicy(ctx, &networkfirewall.GetNetworkFirewallPolicyArgs{
NetworkFirewallPolicyId: testNetworkFirewallPolicyOciNetworkFirewallNetworkFirewallPolicy.Id,
}, 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 testNetworkFirewallPolicy = Oci.NetworkFirewall.GetNetworkFirewallPolicy.Invoke(new()
{
NetworkFirewallPolicyId = testNetworkFirewallPolicyOciNetworkFirewallNetworkFirewallPolicy.Id,
});
});
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.GetNetworkFirewallPolicyArgs;
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 testNetworkFirewallPolicy = NetworkFirewallFunctions.getNetworkFirewallPolicy(GetNetworkFirewallPolicyArgs.builder()
.networkFirewallPolicyId(testNetworkFirewallPolicyOciNetworkFirewallNetworkFirewallPolicy.id())
.build());
}
}
variables:
testNetworkFirewallPolicy:
fn::invoke:
function: oci:NetworkFirewall:getNetworkFirewallPolicy
arguments:
networkFirewallPolicyId: ${testNetworkFirewallPolicyOciNetworkFirewallNetworkFirewallPolicy.id}
Using getNetworkFirewallPolicy
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 getNetworkFirewallPolicy(args: GetNetworkFirewallPolicyArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyResult>
function getNetworkFirewallPolicyOutput(args: GetNetworkFirewallPolicyOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyResult>def get_network_firewall_policy(network_firewall_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyResult
def get_network_firewall_policy_output(network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyResult]func LookupNetworkFirewallPolicy(ctx *Context, args *LookupNetworkFirewallPolicyArgs, opts ...InvokeOption) (*LookupNetworkFirewallPolicyResult, error)
func LookupNetworkFirewallPolicyOutput(ctx *Context, args *LookupNetworkFirewallPolicyOutputArgs, opts ...InvokeOption) LookupNetworkFirewallPolicyResultOutput> Note: This function is named LookupNetworkFirewallPolicy in the Go SDK.
public static class GetNetworkFirewallPolicy
{
public static Task<GetNetworkFirewallPolicyResult> InvokeAsync(GetNetworkFirewallPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkFirewallPolicyResult> Invoke(GetNetworkFirewallPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkFirewallPolicyResult> getNetworkFirewallPolicy(GetNetworkFirewallPolicyArgs args, InvokeOptions options)
public static Output<GetNetworkFirewallPolicyResult> getNetworkFirewallPolicy(GetNetworkFirewallPolicyArgs args, InvokeOptions options)
fn::invoke:
function: oci:NetworkFirewall/getNetworkFirewallPolicy:getNetworkFirewallPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- network_
firewall_ strpolicy_ id - Unique Network Firewall Policy identifier
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
getNetworkFirewallPolicy Result
The following output properties are available:
- Attached
Network intFirewall Count - Count of number of Network Firewall attached to the Policy.
- Compartment
Id string - The OCID of the compartment containing the NetworkFirewall Policy.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- The description of the network firewall policy. This field can be used to add additional info.
- Display
Name string - A user-friendly optional name for the firewall policy. Avoid entering confidential information.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the resource - Network Firewall Policy.
- 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 - State string
- The current state of the Network Firewall Policy.
- Dictionary<string, string>
- 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 Policy 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 Policy was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Attached
Network intFirewall Count - Count of number of Network Firewall attached to the Policy.
- Compartment
Id string - The OCID of the compartment containing the NetworkFirewall Policy.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- The description of the network firewall policy. This field can be used to add additional info.
- Display
Name string - A user-friendly optional name for the firewall policy. Avoid entering confidential information.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the resource - Network Firewall Policy.
- 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 - State string
- The current state of the Network Firewall Policy.
- map[string]string
- 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 Policy 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 Policy was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- attached
Network IntegerFirewall Count - Count of number of Network Firewall attached to the Policy.
- compartment
Id String - The OCID of the compartment containing the NetworkFirewall Policy.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- The description of the network firewall policy. This field can be used to add additional info.
- display
Name String - A user-friendly optional name for the firewall policy. Avoid entering confidential information.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the resource - Network Firewall Policy.
- 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 - state String
- The current state of the Network Firewall Policy.
- Map<String,String>
- 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 Policy 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 Policy was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- attached
Network numberFirewall Count - Count of number of Network Firewall attached to the Policy.
- compartment
Id string - The OCID of the compartment containing the NetworkFirewall Policy.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- The description of the network firewall policy. This field can be used to add additional info.
- display
Name string - A user-friendly optional name for the firewall policy. Avoid entering confidential information.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The OCID of the resource - Network Firewall Policy.
- 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 - state string
- The current state of the Network Firewall Policy.
- {[key: string]: string}
- 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 Policy 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 Policy was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- attached_
network_ intfirewall_ count - Count of number of Network Firewall attached to the Policy.
- compartment_
id str - The OCID of the compartment containing the NetworkFirewall Policy.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- The description of the network firewall policy. This field can be used to add additional info.
- display_
name str - A user-friendly optional name for the firewall policy. Avoid entering confidential information.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- The OCID of the resource - Network Firewall Policy.
- 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 - state str
- The current state of the Network Firewall Policy.
- Mapping[str, str]
- 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 Policy 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 Policy was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- attached
Network NumberFirewall Count - Count of number of Network Firewall attached to the Policy.
- compartment
Id String - The OCID of the compartment containing the NetworkFirewall Policy.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- The description of the network firewall policy. This field can be used to add additional info.
- display
Name String - A user-friendly optional name for the firewall policy. Avoid entering confidential information.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the resource - Network Firewall Policy.
- 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 - state String
- The current state of the Network Firewall Policy.
- Map<String>
- 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 Policy 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 Policy 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
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
