Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Waf.getProtectionCapabilities
Explore with Pulumi AI
This data source provides the list of Protection Capabilities in Oracle Cloud Infrastructure Waf service.
Lists of protection capabilities filtered by query parameters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProtectionCapabilities = oci.Waf.getProtectionCapabilities({
    compartmentId: compartmentId,
    displayName: protectionCapabilityDisplayName,
    groupTags: protectionCapabilityGroupTag,
    isLatestVersions: protectionCapabilityIsLatestVersion,
    key: protectionCapabilityKey,
    type: protectionCapabilityType,
});
import pulumi
import pulumi_oci as oci
test_protection_capabilities = oci.Waf.get_protection_capabilities(compartment_id=compartment_id,
    display_name=protection_capability_display_name,
    group_tags=protection_capability_group_tag,
    is_latest_versions=protection_capability_is_latest_version,
    key=protection_capability_key,
    type=protection_capability_type)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/waf"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := waf.GetProtectionCapabilities(ctx, &waf.GetProtectionCapabilitiesArgs{
			CompartmentId:    compartmentId,
			DisplayName:      pulumi.StringRef(protectionCapabilityDisplayName),
			GroupTags:        protectionCapabilityGroupTag,
			IsLatestVersions: protectionCapabilityIsLatestVersion,
			Key:              pulumi.StringRef(protectionCapabilityKey),
			Type:             pulumi.StringRef(protectionCapabilityType),
		}, 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 testProtectionCapabilities = Oci.Waf.GetProtectionCapabilities.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = protectionCapabilityDisplayName,
        GroupTags = protectionCapabilityGroupTag,
        IsLatestVersions = protectionCapabilityIsLatestVersion,
        Key = protectionCapabilityKey,
        Type = protectionCapabilityType,
    });
});
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.GetProtectionCapabilitiesArgs;
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 testProtectionCapabilities = WafFunctions.getProtectionCapabilities(GetProtectionCapabilitiesArgs.builder()
            .compartmentId(compartmentId)
            .displayName(protectionCapabilityDisplayName)
            .groupTags(protectionCapabilityGroupTag)
            .isLatestVersions(protectionCapabilityIsLatestVersion)
            .key(protectionCapabilityKey)
            .type(protectionCapabilityType)
            .build());
    }
}
variables:
  testProtectionCapabilities:
    fn::invoke:
      function: oci:Waf:getProtectionCapabilities
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${protectionCapabilityDisplayName}
        groupTags: ${protectionCapabilityGroupTag}
        isLatestVersions: ${protectionCapabilityIsLatestVersion}
        key: ${protectionCapabilityKey}
        type: ${protectionCapabilityType}
Using getProtectionCapabilities
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 getProtectionCapabilities(args: GetProtectionCapabilitiesArgs, opts?: InvokeOptions): Promise<GetProtectionCapabilitiesResult>
function getProtectionCapabilitiesOutput(args: GetProtectionCapabilitiesOutputArgs, opts?: InvokeOptions): Output<GetProtectionCapabilitiesResult>def get_protection_capabilities(compartment_id: Optional[str] = None,
                                display_name: Optional[str] = None,
                                filters: Optional[Sequence[GetProtectionCapabilitiesFilter]] = None,
                                group_tags: Optional[Sequence[str]] = None,
                                is_latest_versions: Optional[Sequence[bool]] = None,
                                key: Optional[str] = None,
                                type: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetProtectionCapabilitiesResult
def get_protection_capabilities_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                display_name: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetProtectionCapabilitiesFilterArgs]]]] = None,
                                group_tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                is_latest_versions: Optional[pulumi.Input[Sequence[pulumi.Input[bool]]]] = None,
                                key: Optional[pulumi.Input[str]] = None,
                                type: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetProtectionCapabilitiesResult]func GetProtectionCapabilities(ctx *Context, args *GetProtectionCapabilitiesArgs, opts ...InvokeOption) (*GetProtectionCapabilitiesResult, error)
func GetProtectionCapabilitiesOutput(ctx *Context, args *GetProtectionCapabilitiesOutputArgs, opts ...InvokeOption) GetProtectionCapabilitiesResultOutput> Note: This function is named GetProtectionCapabilities in the Go SDK.
public static class GetProtectionCapabilities 
{
    public static Task<GetProtectionCapabilitiesResult> InvokeAsync(GetProtectionCapabilitiesArgs args, InvokeOptions? opts = null)
    public static Output<GetProtectionCapabilitiesResult> Invoke(GetProtectionCapabilitiesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProtectionCapabilitiesResult> getProtectionCapabilities(GetProtectionCapabilitiesArgs args, InvokeOptions options)
public static Output<GetProtectionCapabilitiesResult> getProtectionCapabilities(GetProtectionCapabilitiesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Waf/getProtectionCapabilities:getProtectionCapabilities
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetProtection Capabilities Filter> 
- List<string>
- A filter to return only resources that are accociated given group tag.
- IsLatest List<bool>Versions 
- A filter to return only resources that matches given isLatestVersion.
- Key string
- The unique key of protection capability to filter by.
- Type string
- A filter to return only resources that matches given type.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetProtection Capabilities Filter 
- []string
- A filter to return only resources that are accociated given group tag.
- IsLatest []boolVersions 
- A filter to return only resources that matches given isLatestVersion.
- Key string
- The unique key of protection capability to filter by.
- Type string
- A filter to return only resources that matches given type.
- compartmentId String
- The OCID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetProtection Capabilities Filter> 
- List<String>
- A filter to return only resources that are accociated given group tag.
- isLatest List<Boolean>Versions 
- A filter to return only resources that matches given isLatestVersion.
- key String
- The unique key of protection capability to filter by.
- type String
- A filter to return only resources that matches given type.
- compartmentId string
- The OCID of the compartment in which to list resources.
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetProtection Capabilities Filter[] 
- string[]
- A filter to return only resources that are accociated given group tag.
- isLatest boolean[]Versions 
- A filter to return only resources that matches given isLatestVersion.
- key string
- The unique key of protection capability to filter by.
- type string
- A filter to return only resources that matches given type.
- compartment_id str
- The OCID of the compartment in which to list resources.
- display_name str
- A filter to return only resources that match the entire display name given.
- filters
Sequence[GetProtection Capabilities Filter] 
- Sequence[str]
- A filter to return only resources that are accociated given group tag.
- is_latest_ Sequence[bool]versions 
- A filter to return only resources that matches given isLatestVersion.
- key str
- The unique key of protection capability to filter by.
- type str
- A filter to return only resources that matches given type.
- compartmentId String
- The OCID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- List<String>
- A filter to return only resources that are accociated given group tag.
- isLatest List<Boolean>Versions 
- A filter to return only resources that matches given isLatestVersion.
- key String
- The unique key of protection capability to filter by.
- type String
- A filter to return only resources that matches given type.
getProtectionCapabilities Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- ProtectionCapability List<GetCollections Protection Capabilities Protection Capability Collection> 
- The list of protection_capability_collection.
- DisplayName string
- The display name of protection capability.
- Filters
List<GetProtection Capabilities Filter> 
- List<string>
- IsLatest List<bool>Versions 
- The field that shows if this is the latest version of protection capability.
- Key string
- Unique key of protection capability.
- Type string
- The type of protection capability.- REQUEST_PROTECTION_CAPABILITY can only be used in requestProtectionmodule of WebAppFirewallPolicy.
- RESPONSE_PROTECTION_CAPABILITY can only be used in responseProtectionmodule of WebAppFirewallPolicy.
 
- REQUEST_PROTECTION_CAPABILITY can only be used in 
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- ProtectionCapability []GetCollections Protection Capabilities Protection Capability Collection 
- The list of protection_capability_collection.
- DisplayName string
- The display name of protection capability.
- Filters
[]GetProtection Capabilities Filter 
- []string
- IsLatest []boolVersions 
- The field that shows if this is the latest version of protection capability.
- Key string
- Unique key of protection capability.
- Type string
- The type of protection capability.- REQUEST_PROTECTION_CAPABILITY can only be used in requestProtectionmodule of WebAppFirewallPolicy.
- RESPONSE_PROTECTION_CAPABILITY can only be used in responseProtectionmodule of WebAppFirewallPolicy.
 
- REQUEST_PROTECTION_CAPABILITY can only be used in 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- protectionCapability List<GetCollections Protection Capabilities Protection Capability Collection> 
- The list of protection_capability_collection.
- displayName String
- The display name of protection capability.
- filters
List<GetProtection Capabilities Filter> 
- List<String>
- isLatest List<Boolean>Versions 
- The field that shows if this is the latest version of protection capability.
- key String
- Unique key of protection capability.
- type String
- The type of protection capability.- REQUEST_PROTECTION_CAPABILITY can only be used in requestProtectionmodule of WebAppFirewallPolicy.
- RESPONSE_PROTECTION_CAPABILITY can only be used in responseProtectionmodule of WebAppFirewallPolicy.
 
- REQUEST_PROTECTION_CAPABILITY can only be used in 
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- protectionCapability GetCollections Protection Capabilities Protection Capability Collection[] 
- The list of protection_capability_collection.
- displayName string
- The display name of protection capability.
- filters
GetProtection Capabilities Filter[] 
- string[]
- isLatest boolean[]Versions 
- The field that shows if this is the latest version of protection capability.
- key string
- Unique key of protection capability.
- type string
- The type of protection capability.- REQUEST_PROTECTION_CAPABILITY can only be used in requestProtectionmodule of WebAppFirewallPolicy.
- RESPONSE_PROTECTION_CAPABILITY can only be used in responseProtectionmodule of WebAppFirewallPolicy.
 
- REQUEST_PROTECTION_CAPABILITY can only be used in 
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- protection_capability_ Sequence[Getcollections Protection Capabilities Protection Capability Collection] 
- The list of protection_capability_collection.
- display_name str
- The display name of protection capability.
- filters
Sequence[GetProtection Capabilities Filter] 
- Sequence[str]
- is_latest_ Sequence[bool]versions 
- The field that shows if this is the latest version of protection capability.
- key str
- Unique key of protection capability.
- type str
- The type of protection capability.- REQUEST_PROTECTION_CAPABILITY can only be used in requestProtectionmodule of WebAppFirewallPolicy.
- RESPONSE_PROTECTION_CAPABILITY can only be used in responseProtectionmodule of WebAppFirewallPolicy.
 
- REQUEST_PROTECTION_CAPABILITY can only be used in 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- protectionCapability List<Property Map>Collections 
- The list of protection_capability_collection.
- displayName String
- The display name of protection capability.
- filters List<Property Map>
- List<String>
- isLatest List<Boolean>Versions 
- The field that shows if this is the latest version of protection capability.
- key String
- Unique key of protection capability.
- type String
- The type of protection capability.- REQUEST_PROTECTION_CAPABILITY can only be used in requestProtectionmodule of WebAppFirewallPolicy.
- RESPONSE_PROTECTION_CAPABILITY can only be used in responseProtectionmodule of WebAppFirewallPolicy.
 
- REQUEST_PROTECTION_CAPABILITY can only be used in 
Supporting Types
GetProtectionCapabilitiesFilter   
GetProtectionCapabilitiesProtectionCapabilityCollection     
- Items
List<GetProtection Capabilities Protection Capability Collection Item> 
- List of protection capabilities.
- Items
[]GetProtection Capabilities Protection Capability Collection Item 
- List of protection capabilities.
- items
List<GetProtection Capabilities Protection Capability Collection Item> 
- List of protection capabilities.
- items
GetProtection Capabilities Protection Capability Collection Item[] 
- List of protection capabilities.
- items
Sequence[GetProtection Capabilities Protection Capability Collection Item] 
- List of protection capabilities.
- items List<Property Map>
- List of protection capabilities.
GetProtectionCapabilitiesProtectionCapabilityCollectionItem      
- CollaborativeAction intThreshold 
- The default collaborative action threshold for OCI-managed collaborative protection capability. Collaborative protection capabilities are made of several simple, non-collaborative protection capabilities (referred to as contributing capabilitieslater on) which have weights assigned to them. These weights can be found in thecollaborativeWeightsarray. For incoming/outgoing HTTP messages, all contributing capabilities are executed and the sum of all triggered contributing capabilities weights is calculated. Only if this sum is greater than or equal tocollaborativeActionThresholdis the incoming/outgoing HTTP message marked as malicious.
- CollaborativeWeights List<GetProtection Capabilities Protection Capability Collection Item Collaborative Weight> 
- The weights of contributing capabilities. Defines how much each contributing capability contributes towards the action threshold of a collaborative protection capability.
- Description string
- The description of protection capability.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- List<string>
- The list of unique names protection capability group tags that are associated with this capability. Example: ["PCI", "Recommended"]
- IsLatest boolVersion 
- A filter to return only resources that matches given isLatestVersion.
- Key string
- The unique key of protection capability to filter by.
- Type string
- A filter to return only resources that matches given type.
- Version int
- The version of protection capability.
- CollaborativeAction intThreshold 
- The default collaborative action threshold for OCI-managed collaborative protection capability. Collaborative protection capabilities are made of several simple, non-collaborative protection capabilities (referred to as contributing capabilitieslater on) which have weights assigned to them. These weights can be found in thecollaborativeWeightsarray. For incoming/outgoing HTTP messages, all contributing capabilities are executed and the sum of all triggered contributing capabilities weights is calculated. Only if this sum is greater than or equal tocollaborativeActionThresholdis the incoming/outgoing HTTP message marked as malicious.
- CollaborativeWeights []GetProtection Capabilities Protection Capability Collection Item Collaborative Weight 
- The weights of contributing capabilities. Defines how much each contributing capability contributes towards the action threshold of a collaborative protection capability.
- Description string
- The description of protection capability.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- []string
- The list of unique names protection capability group tags that are associated with this capability. Example: ["PCI", "Recommended"]
- IsLatest boolVersion 
- A filter to return only resources that matches given isLatestVersion.
- Key string
- The unique key of protection capability to filter by.
- Type string
- A filter to return only resources that matches given type.
- Version int
- The version of protection capability.
- collaborativeAction IntegerThreshold 
- The default collaborative action threshold for OCI-managed collaborative protection capability. Collaborative protection capabilities are made of several simple, non-collaborative protection capabilities (referred to as contributing capabilitieslater on) which have weights assigned to them. These weights can be found in thecollaborativeWeightsarray. For incoming/outgoing HTTP messages, all contributing capabilities are executed and the sum of all triggered contributing capabilities weights is calculated. Only if this sum is greater than or equal tocollaborativeActionThresholdis the incoming/outgoing HTTP message marked as malicious.
- collaborativeWeights List<GetProtection Capabilities Protection Capability Collection Item Collaborative Weight> 
- The weights of contributing capabilities. Defines how much each contributing capability contributes towards the action threshold of a collaborative protection capability.
- description String
- The description of protection capability.
- displayName String
- A filter to return only resources that match the entire display name given.
- List<String>
- The list of unique names protection capability group tags that are associated with this capability. Example: ["PCI", "Recommended"]
- isLatest BooleanVersion 
- A filter to return only resources that matches given isLatestVersion.
- key String
- The unique key of protection capability to filter by.
- type String
- A filter to return only resources that matches given type.
- version Integer
- The version of protection capability.
- collaborativeAction numberThreshold 
- The default collaborative action threshold for OCI-managed collaborative protection capability. Collaborative protection capabilities are made of several simple, non-collaborative protection capabilities (referred to as contributing capabilitieslater on) which have weights assigned to them. These weights can be found in thecollaborativeWeightsarray. For incoming/outgoing HTTP messages, all contributing capabilities are executed and the sum of all triggered contributing capabilities weights is calculated. Only if this sum is greater than or equal tocollaborativeActionThresholdis the incoming/outgoing HTTP message marked as malicious.
- collaborativeWeights GetProtection Capabilities Protection Capability Collection Item Collaborative Weight[] 
- The weights of contributing capabilities. Defines how much each contributing capability contributes towards the action threshold of a collaborative protection capability.
- description string
- The description of protection capability.
- displayName string
- A filter to return only resources that match the entire display name given.
- string[]
- The list of unique names protection capability group tags that are associated with this capability. Example: ["PCI", "Recommended"]
- isLatest booleanVersion 
- A filter to return only resources that matches given isLatestVersion.
- key string
- The unique key of protection capability to filter by.
- type string
- A filter to return only resources that matches given type.
- version number
- The version of protection capability.
- collaborative_action_ intthreshold 
- The default collaborative action threshold for OCI-managed collaborative protection capability. Collaborative protection capabilities are made of several simple, non-collaborative protection capabilities (referred to as contributing capabilitieslater on) which have weights assigned to them. These weights can be found in thecollaborativeWeightsarray. For incoming/outgoing HTTP messages, all contributing capabilities are executed and the sum of all triggered contributing capabilities weights is calculated. Only if this sum is greater than or equal tocollaborativeActionThresholdis the incoming/outgoing HTTP message marked as malicious.
- collaborative_weights Sequence[GetProtection Capabilities Protection Capability Collection Item Collaborative Weight] 
- The weights of contributing capabilities. Defines how much each contributing capability contributes towards the action threshold of a collaborative protection capability.
- description str
- The description of protection capability.
- display_name str
- A filter to return only resources that match the entire display name given.
- Sequence[str]
- The list of unique names protection capability group tags that are associated with this capability. Example: ["PCI", "Recommended"]
- is_latest_ boolversion 
- A filter to return only resources that matches given isLatestVersion.
- key str
- The unique key of protection capability to filter by.
- type str
- A filter to return only resources that matches given type.
- version int
- The version of protection capability.
- collaborativeAction NumberThreshold 
- The default collaborative action threshold for OCI-managed collaborative protection capability. Collaborative protection capabilities are made of several simple, non-collaborative protection capabilities (referred to as contributing capabilitieslater on) which have weights assigned to them. These weights can be found in thecollaborativeWeightsarray. For incoming/outgoing HTTP messages, all contributing capabilities are executed and the sum of all triggered contributing capabilities weights is calculated. Only if this sum is greater than or equal tocollaborativeActionThresholdis the incoming/outgoing HTTP message marked as malicious.
- collaborativeWeights List<Property Map>
- The weights of contributing capabilities. Defines how much each contributing capability contributes towards the action threshold of a collaborative protection capability.
- description String
- The description of protection capability.
- displayName String
- A filter to return only resources that match the entire display name given.
- List<String>
- The list of unique names protection capability group tags that are associated with this capability. Example: ["PCI", "Recommended"]
- isLatest BooleanVersion 
- A filter to return only resources that matches given isLatestVersion.
- key String
- The unique key of protection capability to filter by.
- type String
- A filter to return only resources that matches given type.
- version Number
- The version of protection capability.
GetProtectionCapabilitiesProtectionCapabilityCollectionItemCollaborativeWeight        
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Key string
- The unique key of protection capability to filter by.
- Weight int
- The weight of contributing protection capability.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Key string
- The unique key of protection capability to filter by.
- Weight int
- The weight of contributing protection capability.
- displayName String
- A filter to return only resources that match the entire display name given.
- key String
- The unique key of protection capability to filter by.
- weight Integer
- The weight of contributing protection capability.
- displayName string
- A filter to return only resources that match the entire display name given.
- key string
- The unique key of protection capability to filter by.
- weight number
- The weight of contributing protection capability.
- display_name str
- A filter to return only resources that match the entire display name given.
- key str
- The unique key of protection capability to filter by.
- weight int
- The weight of contributing protection capability.
- displayName String
- A filter to return only resources that match the entire display name given.
- key String
- The unique key of protection capability to filter by.
- weight Number
- The weight of contributing protection capability.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.