Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.NetworkFirewall.getNetworkFirewall
Explore with Pulumi AI
This data source provides details about a specific Network Firewall resource in Oracle Cloud Infrastructure Network Firewall service.
Gets a NetworkFirewall by identifier
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkFirewall = oci.NetworkFirewall.getNetworkFirewall({
networkFirewallId: testNetworkFirewallOciNetworkFirewallNetworkFirewall.id,
});
import pulumi
import pulumi_oci as oci
test_network_firewall = oci.NetworkFirewall.get_network_firewall(network_firewall_id=test_network_firewall_oci_network_firewall_network_firewall["id"])
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.GetNetworkFirewall(ctx, &networkfirewall.GetNetworkFirewallArgs{
NetworkFirewallId: testNetworkFirewallOciNetworkFirewallNetworkFirewall.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 testNetworkFirewall = Oci.NetworkFirewall.GetNetworkFirewall.Invoke(new()
{
NetworkFirewallId = testNetworkFirewallOciNetworkFirewallNetworkFirewall.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.GetNetworkFirewallArgs;
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 testNetworkFirewall = NetworkFirewallFunctions.getNetworkFirewall(GetNetworkFirewallArgs.builder()
.networkFirewallId(testNetworkFirewallOciNetworkFirewallNetworkFirewall.id())
.build());
}
}
variables:
testNetworkFirewall:
fn::invoke:
Function: oci:NetworkFirewall:getNetworkFirewall
Arguments:
networkFirewallId: ${testNetworkFirewallOciNetworkFirewallNetworkFirewall.id}
Using getNetworkFirewall
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 getNetworkFirewall(args: GetNetworkFirewallArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallResult>
function getNetworkFirewallOutput(args: GetNetworkFirewallOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallResult>
def get_network_firewall(network_firewall_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallResult
def get_network_firewall_output(network_firewall_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallResult]
func GetNetworkFirewall(ctx *Context, args *GetNetworkFirewallArgs, opts ...InvokeOption) (*GetNetworkFirewallResult, error)
func GetNetworkFirewallOutput(ctx *Context, args *GetNetworkFirewallOutputArgs, opts ...InvokeOption) GetNetworkFirewallResultOutput
> Note: This function is named GetNetworkFirewall
in the Go SDK.
public static class GetNetworkFirewall
{
public static Task<GetNetworkFirewallResult> InvokeAsync(GetNetworkFirewallArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkFirewallResult> Invoke(GetNetworkFirewallInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkFirewallResult> getNetworkFirewall(GetNetworkFirewallArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:NetworkFirewall/getNetworkFirewall:getNetworkFirewall
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Firewall stringId - The OCID of the Network Firewall resource.
- Network
Firewall stringId - The OCID of the Network Firewall resource.
- network
Firewall StringId - The OCID of the Network Firewall resource.
- network
Firewall stringId - The OCID of the Network Firewall resource.
- network_
firewall_ strid - The OCID of the Network Firewall resource.
- network
Firewall StringId - The OCID of the Network Firewall resource.
getNetworkFirewall Result
The following output properties are available:
- Availability
Domain string - Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use the ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Compartment
Id string - The OCID of the compartment containing the Network Firewall.
- 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"}
- 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.
- 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 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, it can be used to provide actionable information for a resource in 'FAILED' state.
- Network
Firewall stringId - Network
Firewall stringPolicy Id - The OCID of the Network Firewall Policy.
- Network
Security List<string>Group Ids - An array of network security groups OCID associated with the Network Firewall.
- State string
- The current state of the Network Firewall.
- Subnet
Id string - The OCID of the subnet associated with the Network Firewall.
- 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 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 at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Availability
Domain string - Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use the ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- Compartment
Id string - The OCID of the compartment containing the Network Firewall.
- 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"}
- 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.
- 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 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, it can be used to provide actionable information for a resource in 'FAILED' state.
- Network
Firewall stringId - Network
Firewall stringPolicy Id - The OCID of the Network Firewall Policy.
- Network
Security []stringGroup Ids - An array of network security groups OCID associated with the Network Firewall.
- State string
- The current state of the Network Firewall.
- Subnet
Id string - The OCID of the subnet associated with the Network Firewall.
- 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 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 at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String - Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use the ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment
Id String - The OCID of the compartment containing the Network Firewall.
- 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"}
- 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.
- 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 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, it can be used to provide actionable information for a resource in 'FAILED' state.
- network
Firewall StringId - network
Firewall StringPolicy Id - The OCID of the Network Firewall Policy.
- network
Security List<String>Group Ids - An array of network security groups OCID associated with the Network Firewall.
- state String
- The current state of the Network Firewall.
- subnet
Id String - The OCID of the subnet associated with the Network Firewall.
- 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 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 at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain string - Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use the ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment
Id string - The OCID of the compartment containing the Network Firewall.
- {[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"}
- 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.
- {[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 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, it can be used to provide actionable information for a resource in 'FAILED' state.
- network
Firewall stringId - network
Firewall stringPolicy Id - The OCID of the Network Firewall Policy.
- network
Security string[]Group Ids - An array of network security groups OCID associated with the Network Firewall.
- state string
- The current state of the Network Firewall.
- subnet
Id string - The OCID of the subnet associated with the Network Firewall.
- {[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 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 at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability_
domain str - Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use the ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment_
id str - The OCID of the compartment containing the Network Firewall.
- 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"}
- 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.
- 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 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, it can be used to provide actionable information for a resource in 'FAILED' state.
- network_
firewall_ strid - network_
firewall_ strpolicy_ id - The OCID of the Network Firewall Policy.
- network_
security_ Sequence[str]group_ ids - An array of network security groups OCID associated with the Network Firewall.
- state str
- The current state of the Network Firewall.
- subnet_
id str - The OCID of the subnet associated with the Network Firewall.
- 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 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 at which the Network Firewall was updated in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String - Availability Domain where Network Firewall instance is created. To get a list of availability domains for a tenancy, use the ListAvailabilityDomains operation. Example:
kIdk:PHX-AD-1
- compartment
Id String - The OCID of the compartment containing the Network Firewall.
- 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"}
- 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.
- 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 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, it can be used to provide actionable information for a resource in 'FAILED' state.
- network
Firewall StringId - network
Firewall StringPolicy Id - The OCID of the Network Firewall Policy.
- network
Security List<String>Group Ids - An array of network security groups OCID associated with the Network Firewall.
- state String
- The current state of the Network Firewall.
- subnet
Id String - The OCID of the subnet associated with the Network Firewall.
- 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 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 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.