Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Waf.getWebAppFirewall
This data source provides details about a specific Web App Firewall resource in Oracle Cloud Infrastructure Waf service.
Gets a WebAppFirewall by OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testWebAppFirewall = oci.Waf.getWebAppFirewall({
    webAppFirewallId: testWebAppFirewallOciWafWebAppFirewall.id,
});
import pulumi
import pulumi_oci as oci
test_web_app_firewall = oci.Waf.get_web_app_firewall(web_app_firewall_id=test_web_app_firewall_oci_waf_web_app_firewall["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/waf"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := waf.GetWebAppFirewall(ctx, &waf.GetWebAppFirewallArgs{
			WebAppFirewallId: testWebAppFirewallOciWafWebAppFirewall.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 testWebAppFirewall = Oci.Waf.GetWebAppFirewall.Invoke(new()
    {
        WebAppFirewallId = testWebAppFirewallOciWafWebAppFirewall.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Waf.WafFunctions;
import com.pulumi.oci.Waf.inputs.GetWebAppFirewallArgs;
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 testWebAppFirewall = WafFunctions.getWebAppFirewall(GetWebAppFirewallArgs.builder()
            .webAppFirewallId(testWebAppFirewallOciWafWebAppFirewall.id())
            .build());
    }
}
variables:
  testWebAppFirewall:
    fn::invoke:
      function: oci:Waf:getWebAppFirewall
      arguments:
        webAppFirewallId: ${testWebAppFirewallOciWafWebAppFirewall.id}
Using getWebAppFirewall
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 getWebAppFirewall(args: GetWebAppFirewallArgs, opts?: InvokeOptions): Promise<GetWebAppFirewallResult>
function getWebAppFirewallOutput(args: GetWebAppFirewallOutputArgs, opts?: InvokeOptions): Output<GetWebAppFirewallResult>def get_web_app_firewall(web_app_firewall_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetWebAppFirewallResult
def get_web_app_firewall_output(web_app_firewall_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetWebAppFirewallResult]func GetWebAppFirewall(ctx *Context, args *GetWebAppFirewallArgs, opts ...InvokeOption) (*GetWebAppFirewallResult, error)
func GetWebAppFirewallOutput(ctx *Context, args *GetWebAppFirewallOutputArgs, opts ...InvokeOption) GetWebAppFirewallResultOutput> Note: This function is named GetWebAppFirewall in the Go SDK.
public static class GetWebAppFirewall 
{
    public static Task<GetWebAppFirewallResult> InvokeAsync(GetWebAppFirewallArgs args, InvokeOptions? opts = null)
    public static Output<GetWebAppFirewallResult> Invoke(GetWebAppFirewallInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWebAppFirewallResult> getWebAppFirewall(GetWebAppFirewallArgs args, InvokeOptions options)
public static Output<GetWebAppFirewallResult> getWebAppFirewall(GetWebAppFirewallArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Waf/getWebAppFirewall:getWebAppFirewall
  arguments:
    # arguments dictionaryThe following arguments are supported:
- WebApp stringFirewall Id 
- The OCID of the WebAppFirewall.
- WebApp stringFirewall Id 
- The OCID of the WebAppFirewall.
- webApp StringFirewall Id 
- The OCID of the WebAppFirewall.
- webApp stringFirewall Id 
- The OCID of the WebAppFirewall.
- web_app_ strfirewall_ id 
- The OCID of the WebAppFirewall.
- webApp StringFirewall Id 
- The OCID of the WebAppFirewall.
getWebAppFirewall Result
The following output properties are available:
- BackendType string
- Type of the WebAppFirewall, as example LOAD_BALANCER.
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- WebAppFirewall display name, can be renamed.
- Dictionary<string, string>
- 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 WebAppFirewall.
- 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.
- LoadBalancer stringId 
- LoadBalancer OCID to which the WebAppFirewallPolicy is attached to.
- State string
- The current state of the WebAppFirewall.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the WebAppFirewall was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time the WebAppFirewall was updated. An RFC3339 formatted datetime string.
- WebApp stringFirewall Id 
- WebApp stringFirewall Policy Id 
- The OCID of WebAppFirewallPolicy, which is attached to the resource.
- BackendType string
- Type of the WebAppFirewall, as example LOAD_BALANCER.
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- WebAppFirewall display name, can be renamed.
- map[string]string
- 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 WebAppFirewall.
- 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.
- LoadBalancer stringId 
- LoadBalancer OCID to which the WebAppFirewallPolicy is attached to.
- State string
- The current state of the WebAppFirewall.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the WebAppFirewall was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time the WebAppFirewall was updated. An RFC3339 formatted datetime string.
- WebApp stringFirewall Id 
- WebApp stringFirewall Policy Id 
- The OCID of WebAppFirewallPolicy, which is attached to the resource.
- backendType String
- Type of the WebAppFirewall, as example LOAD_BALANCER.
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- WebAppFirewall display name, can be renamed.
- Map<String,String>
- 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 WebAppFirewall.
- 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.
- loadBalancer StringId 
- LoadBalancer OCID to which the WebAppFirewallPolicy is attached to.
- state String
- The current state of the WebAppFirewall.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the WebAppFirewall was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time the WebAppFirewall was updated. An RFC3339 formatted datetime string.
- webApp StringFirewall Id 
- webApp StringFirewall Policy Id 
- The OCID of WebAppFirewallPolicy, which is attached to the resource.
- backendType string
- Type of the WebAppFirewall, as example LOAD_BALANCER.
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- WebAppFirewall display name, can be renamed.
- {[key: string]: string}
- 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 WebAppFirewall.
- 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.
- loadBalancer stringId 
- LoadBalancer OCID to which the WebAppFirewallPolicy is attached to.
- state string
- The current state of the WebAppFirewall.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time the WebAppFirewall was created. An RFC3339 formatted datetime string.
- timeUpdated string
- The time the WebAppFirewall was updated. An RFC3339 formatted datetime string.
- webApp stringFirewall Id 
- webApp stringFirewall Policy Id 
- The OCID of WebAppFirewallPolicy, which is attached to the resource.
- backend_type str
- Type of the WebAppFirewall, as example LOAD_BALANCER.
- compartment_id str
- The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- display_name str
- WebAppFirewall display name, can be renamed.
- Mapping[str, str]
- 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 WebAppFirewall.
- 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.
- load_balancer_ strid 
- LoadBalancer OCID to which the WebAppFirewallPolicy is attached to.
- state str
- The current state of the WebAppFirewall.
- 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 the WebAppFirewall was created. An RFC3339 formatted datetime string.
- time_updated str
- The time the WebAppFirewall was updated. An RFC3339 formatted datetime string.
- web_app_ strfirewall_ id 
- web_app_ strfirewall_ policy_ id 
- The OCID of WebAppFirewallPolicy, which is attached to the resource.
- backendType String
- Type of the WebAppFirewall, as example LOAD_BALANCER.
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- WebAppFirewall display name, can be renamed.
- Map<String>
- 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 WebAppFirewall.
- 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.
- loadBalancer StringId 
- LoadBalancer OCID to which the WebAppFirewallPolicy is attached to.
- state String
- The current state of the WebAppFirewall.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the WebAppFirewall was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time the WebAppFirewall was updated. An RFC3339 formatted datetime string.
- webApp StringFirewall Id 
- webApp StringFirewall Policy Id 
- The OCID of WebAppFirewallPolicy, which is attached to the resource.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
