Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getNetworkFirewall

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testNetworkFirewall = Oci.NetworkFirewall.GetNetworkFirewall.Invoke(new()
    {
        NetworkFirewallId = oci_network_firewall_network_firewall.Test_network_firewall.Id,
    });

});
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.GetNetworkFirewall(ctx, &networkfirewall.GetNetworkFirewallArgs{
			NetworkFirewallId: oci_network_firewall_network_firewall.Test_network_firewall.Id,
		}, 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.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(oci_network_firewall_network_firewall.test_network_firewall().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_network_firewall = oci.NetworkFirewall.get_network_firewall(network_firewall_id=oci_network_firewall_network_firewall["test_network_firewall"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNetworkFirewall = oci.NetworkFirewall.getNetworkFirewall({
    networkFirewallId: oci_network_firewall_network_firewall.test_network_firewall.id,
});
variables:
  testNetworkFirewall:
    Fn::Invoke:
      Function: oci:NetworkFirewall:getNetworkFirewall
      Arguments:
        networkFirewallId: ${oci_network_firewall_network_firewall.test_network_firewall.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:

NetworkFirewallId string

The OCID of the Network Firewall resource.

NetworkFirewallId string

The OCID of the Network Firewall resource.

networkFirewallId String

The OCID of the Network Firewall resource.

networkFirewallId string

The OCID of the Network Firewall resource.

network_firewall_id str

The OCID of the Network Firewall resource.

networkFirewallId String

The OCID of the Network Firewall resource.

getNetworkFirewall Result

The following output properties are available:

AvailabilityDomain 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

CompartmentId string

The OCID of the compartment containing the Network Firewall.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FreeformTags 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.

LifecycleDetails 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.

NetworkFirewallId string
NetworkFirewallPolicyId string

The OCID of the Network Firewall Policy.

NetworkSecurityGroupIds List<string>

An array of network security groups OCID associated with the Network Firewall.

State string

The current state of the Network Firewall.

SubnetId string

The OCID of the subnet associated with the Network Firewall.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time instant at which the Network Firewall was created in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

TimeUpdated string

The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

AvailabilityDomain 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

CompartmentId string

The OCID of the compartment containing the Network Firewall.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FreeformTags 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.

LifecycleDetails 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.

NetworkFirewallId string
NetworkFirewallPolicyId string

The OCID of the Network Firewall Policy.

NetworkSecurityGroupIds []string

An array of network security groups OCID associated with the Network Firewall.

State string

The current state of the Network Firewall.

SubnetId string

The OCID of the subnet associated with the Network Firewall.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time instant at which the Network Firewall was created in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

TimeUpdated string

The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

availabilityDomain 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

compartmentId String

The OCID of the compartment containing the Network Firewall.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags 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.

lifecycleDetails 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.

networkFirewallId String
networkFirewallPolicyId String

The OCID of the Network Firewall Policy.

networkSecurityGroupIds List<String>

An array of network security groups OCID associated with the Network Firewall.

state String

The current state of the Network Firewall.

subnetId String

The OCID of the subnet associated with the Network Firewall.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time instant at which the Network Firewall was created in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeUpdated String

The time instant at which the Network Firewall was updated in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

availabilityDomain 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

compartmentId string

The OCID of the compartment containing the Network Firewall.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags {[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.

lifecycleDetails 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.

networkFirewallId string
networkFirewallPolicyId string

The OCID of the Network Firewall Policy.

networkSecurityGroupIds string[]

An array of network security groups OCID associated with the Network Firewall.

state string

The current state of the Network Firewall.

subnetId string

The OCID of the subnet associated with the Network Firewall.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The time instant at which the Network Firewall was created in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeUpdated 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

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

compartment_id str

The OCID of the compartment containing the Network Firewall.

defined_tags 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 user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeform_tags 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_id str
network_firewall_policy_id str

The OCID of the Network Firewall Policy.

network_security_group_ids Sequence[str]

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.

system_tags 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

availabilityDomain 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

compartmentId String

The OCID of the compartment containing the Network Firewall.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

A user-friendly name for the Network Firewall. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags 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.

lifecycleDetails 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.

networkFirewallId String
networkFirewallPolicyId String

The OCID of the Network Firewall Policy.

networkSecurityGroupIds List<String>

An array of network security groups OCID associated with the Network Firewall.

state String

The current state of the Network Firewall.

subnetId String

The OCID of the subnet associated with the Network Firewall.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time instant at which the Network Firewall was created in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeUpdated 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.