Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Waf.getProtectionCapabilities
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
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/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[_waf.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[_waf.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Waf/getProtectionCapabilities:getProtectionCapabilities
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Protection Capabilities Filter> - List<string>
- A filter to return only resources that are accociated given group tag.
- Is
Latest 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.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Protection Capabilities Filter - []string
- A filter to return only resources that are accociated given group tag.
- Is
Latest []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.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Protection Capabilities Filter> - List<String>
- A filter to return only resources that are accociated given group tag.
- is
Latest 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.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Protection Capabilities Filter[] - string[]
- A filter to return only resources that are accociated given group tag.
- is
Latest 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[waf.
Get Protection 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.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name 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.
- is
Latest 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:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Protection
Capability List<GetCollections Protection Capabilities Protection Capability Collection> - The list of protection_capability_collection.
- Display
Name string - The display name of protection capability.
- Filters
List<Get
Protection Capabilities Filter> - List<string>
- Is
Latest 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
requestProtection
module of WebAppFirewallPolicy. - RESPONSE_PROTECTION_CAPABILITY can only be used in
responseProtection
module of WebAppFirewallPolicy.
- REQUEST_PROTECTION_CAPABILITY can only be used in
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Protection
Capability []GetCollections Protection Capabilities Protection Capability Collection - The list of protection_capability_collection.
- Display
Name string - The display name of protection capability.
- Filters
[]Get
Protection Capabilities Filter - []string
- Is
Latest []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
requestProtection
module of WebAppFirewallPolicy. - RESPONSE_PROTECTION_CAPABILITY can only be used in
responseProtection
module of WebAppFirewallPolicy.
- REQUEST_PROTECTION_CAPABILITY can only be used in
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- protection
Capability List<GetCollections Protection Capabilities Protection Capability Collection> - The list of protection_capability_collection.
- display
Name String - The display name of protection capability.
- filters
List<Get
Protection Capabilities Filter> - List<String>
- is
Latest 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
requestProtection
module of WebAppFirewallPolicy. - RESPONSE_PROTECTION_CAPABILITY can only be used in
responseProtection
module of WebAppFirewallPolicy.
- REQUEST_PROTECTION_CAPABILITY can only be used in
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- protection
Capability GetCollections Protection Capabilities Protection Capability Collection[] - The list of protection_capability_collection.
- display
Name string - The display name of protection capability.
- filters
Get
Protection Capabilities Filter[] - string[]
- is
Latest 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
requestProtection
module of WebAppFirewallPolicy. - RESPONSE_PROTECTION_CAPABILITY can only be used in
responseProtection
module 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[waf.collections Get Protection Capabilities Protection Capability Collection] - The list of protection_capability_collection.
- display_
name str - The display name of protection capability.
- filters
Sequence[waf.
Get Protection 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
requestProtection
module of WebAppFirewallPolicy. - RESPONSE_PROTECTION_CAPABILITY can only be used in
responseProtection
module of WebAppFirewallPolicy.
- REQUEST_PROTECTION_CAPABILITY can only be used in
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- protection
Capability List<Property Map>Collections - The list of protection_capability_collection.
- display
Name String - The display name of protection capability.
- filters List<Property Map>
- List<String>
- is
Latest 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
requestProtection
module of WebAppFirewallPolicy. - RESPONSE_PROTECTION_CAPABILITY can only be used in
responseProtection
module of WebAppFirewallPolicy.
- REQUEST_PROTECTION_CAPABILITY can only be used in
Supporting Types
GetProtectionCapabilitiesFilter
GetProtectionCapabilitiesProtectionCapabilityCollection
- Items
List<Get
Protection Capabilities Protection Capability Collection Item> - List of protection capabilities.
- Items
[]Get
Protection Capabilities Protection Capability Collection Item - List of protection capabilities.
- items
List<Get
Protection Capabilities Protection Capability Collection Item> - List of protection capabilities.
- items
Get
Protection Capabilities Protection Capability Collection Item[] - List of protection capabilities.
- items
Sequence[waf.
Get Protection Capabilities Protection Capability Collection Item] - List of protection capabilities.
- items List<Property Map>
- List of protection capabilities.
GetProtectionCapabilitiesProtectionCapabilityCollectionItem
- 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 capabilities
later on) which have weights assigned to them. These weights can be found in thecollaborativeWeights
array. 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 tocollaborativeActionThreshold
is the incoming/outgoing HTTP message marked as malicious. - Collaborative
Weights 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.
- Display
Name 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"]
- Is
Latest 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.
- 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 capabilities
later on) which have weights assigned to them. These weights can be found in thecollaborativeWeights
array. 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 tocollaborativeActionThreshold
is the incoming/outgoing HTTP message marked as malicious. - Collaborative
Weights []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.
- Display
Name 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"]
- Is
Latest 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.
- collaborative
Action 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 capabilities
later on) which have weights assigned to them. These weights can be found in thecollaborativeWeights
array. 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 tocollaborativeActionThreshold
is the incoming/outgoing HTTP message marked as malicious. - collaborative
Weights 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.
- display
Name 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"]
- is
Latest 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.
- collaborative
Action 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 capabilities
later on) which have weights assigned to them. These weights can be found in thecollaborativeWeights
array. 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 tocollaborativeActionThreshold
is the incoming/outgoing HTTP message marked as malicious. - collaborative
Weights 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.
- display
Name 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"]
- is
Latest 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 capabilities
later on) which have weights assigned to them. These weights can be found in thecollaborativeWeights
array. 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 tocollaborativeActionThreshold
is the incoming/outgoing HTTP message marked as malicious. - collaborative_
weights Sequence[waf.Get Protection 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.
- collaborative
Action 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 capabilities
later on) which have weights assigned to them. These weights can be found in thecollaborativeWeights
array. 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 tocollaborativeActionThreshold
is the incoming/outgoing HTTP message marked as malicious. - collaborative
Weights 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.
- display
Name 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"]
- is
Latest 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
- Display
Name 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.
- Display
Name 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.
- display
Name 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.
- display
Name 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.
- display
Name 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi