Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Waas.getCustomProtectionRule
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Custom Protection Rule resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.
Gets the details of a custom protection rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCustomProtectionRule = oci.Waas.getCustomProtectionRule({
customProtectionRuleId: testCustomProtectionRuleOciWaasCustomProtectionRule.id,
});
import pulumi
import pulumi_oci as oci
test_custom_protection_rule = oci.Waas.get_custom_protection_rule(custom_protection_rule_id=test_custom_protection_rule_oci_waas_custom_protection_rule["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Waas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Waas.GetCustomProtectionRule(ctx, &waas.GetCustomProtectionRuleArgs{
CustomProtectionRuleId: testCustomProtectionRuleOciWaasCustomProtectionRule.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 testCustomProtectionRule = Oci.Waas.GetCustomProtectionRule.Invoke(new()
{
CustomProtectionRuleId = testCustomProtectionRuleOciWaasCustomProtectionRule.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Waas.WaasFunctions;
import com.pulumi.oci.Waas.inputs.GetCustomProtectionRuleArgs;
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 testCustomProtectionRule = WaasFunctions.getCustomProtectionRule(GetCustomProtectionRuleArgs.builder()
.customProtectionRuleId(testCustomProtectionRuleOciWaasCustomProtectionRule.id())
.build());
}
}
variables:
testCustomProtectionRule:
fn::invoke:
Function: oci:Waas:getCustomProtectionRule
Arguments:
customProtectionRuleId: ${testCustomProtectionRuleOciWaasCustomProtectionRule.id}
Using getCustomProtectionRule
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 getCustomProtectionRule(args: GetCustomProtectionRuleArgs, opts?: InvokeOptions): Promise<GetCustomProtectionRuleResult>
function getCustomProtectionRuleOutput(args: GetCustomProtectionRuleOutputArgs, opts?: InvokeOptions): Output<GetCustomProtectionRuleResult>
def get_custom_protection_rule(custom_protection_rule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCustomProtectionRuleResult
def get_custom_protection_rule_output(custom_protection_rule_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCustomProtectionRuleResult]
func GetCustomProtectionRule(ctx *Context, args *GetCustomProtectionRuleArgs, opts ...InvokeOption) (*GetCustomProtectionRuleResult, error)
func GetCustomProtectionRuleOutput(ctx *Context, args *GetCustomProtectionRuleOutputArgs, opts ...InvokeOption) GetCustomProtectionRuleResultOutput
> Note: This function is named GetCustomProtectionRule
in the Go SDK.
public static class GetCustomProtectionRule
{
public static Task<GetCustomProtectionRuleResult> InvokeAsync(GetCustomProtectionRuleArgs args, InvokeOptions? opts = null)
public static Output<GetCustomProtectionRuleResult> Invoke(GetCustomProtectionRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCustomProtectionRuleResult> getCustomProtectionRule(GetCustomProtectionRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Waas/getCustomProtectionRule:getCustomProtectionRule
arguments:
# arguments dictionary
The following arguments are supported:
- Custom
Protection stringRule Id - The OCID of the custom protection rule. This number is generated when the custom protection rule is added to the compartment.
- Custom
Protection stringRule Id - The OCID of the custom protection rule. This number is generated when the custom protection rule is added to the compartment.
- custom
Protection StringRule Id - The OCID of the custom protection rule. This number is generated when the custom protection rule is added to the compartment.
- custom
Protection stringRule Id - The OCID of the custom protection rule. This number is generated when the custom protection rule is added to the compartment.
- custom_
protection_ strrule_ id - The OCID of the custom protection rule. This number is generated when the custom protection rule is added to the compartment.
- custom
Protection StringRule Id - The OCID of the custom protection rule. This number is generated when the custom protection rule is added to the compartment.
getCustomProtectionRule Result
The following output properties are available:
- Compartment
Id string - The OCID of the custom protection rule's compartment.
- Custom
Protection stringRule Id - Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description string
- The description of the custom protection rule.
- Display
Name string - The user-friendly name of the custom protection rule.
- Dictionary<string, object>
- 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 custom protection rule.
- Mod
Security List<string>Rule Ids - The auto-generated ID for the custom protection rule. These IDs are referenced in logs.
- State string
- The current lifecycle state of the custom protection rule.
- Template string
- The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language.
- Time
Created string - The date and time the protection rule was created, expressed in RFC 3339 timestamp format.
- Compartment
Id string - The OCID of the custom protection rule's compartment.
- Custom
Protection stringRule Id - map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description string
- The description of the custom protection rule.
- Display
Name string - The user-friendly name of the custom protection rule.
- map[string]interface{}
- 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 custom protection rule.
- Mod
Security []stringRule Ids - The auto-generated ID for the custom protection rule. These IDs are referenced in logs.
- State string
- The current lifecycle state of the custom protection rule.
- Template string
- The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language.
- Time
Created string - The date and time the protection rule was created, expressed in RFC 3339 timestamp format.
- compartment
Id String - The OCID of the custom protection rule's compartment.
- custom
Protection StringRule Id - Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
- The description of the custom protection rule.
- display
Name String - The user-friendly name of the custom protection rule.
- Map<String,Object>
- 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 custom protection rule.
- mod
Security List<String>Rule Ids - The auto-generated ID for the custom protection rule. These IDs are referenced in logs.
- state String
- The current lifecycle state of the custom protection rule.
- template String
- The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language.
- time
Created String - The date and time the protection rule was created, expressed in RFC 3339 timestamp format.
- compartment
Id string - The OCID of the custom protection rule's compartment.
- custom
Protection stringRule Id - {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description string
- The description of the custom protection rule.
- display
Name string - The user-friendly name of the custom protection rule.
- {[key: string]: any}
- 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 custom protection rule.
- mod
Security string[]Rule Ids - The auto-generated ID for the custom protection rule. These IDs are referenced in logs.
- state string
- The current lifecycle state of the custom protection rule.
- template string
- The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language.
- time
Created string - The date and time the protection rule was created, expressed in RFC 3339 timestamp format.
- compartment_
id str - The OCID of the custom protection rule's compartment.
- custom_
protection_ strrule_ id - Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description str
- The description of the custom protection rule.
- display_
name str - The user-friendly name of the custom protection rule.
- Mapping[str, Any]
- 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 custom protection rule.
- mod_
security_ Sequence[str]rule_ ids - The auto-generated ID for the custom protection rule. These IDs are referenced in logs.
- state str
- The current lifecycle state of the custom protection rule.
- template str
- The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language.
- time_
created str - The date and time the protection rule was created, expressed in RFC 3339 timestamp format.
- compartment
Id String - The OCID of the custom protection rule's compartment.
- custom
Protection StringRule Id - Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
- The description of the custom protection rule.
- display
Name String - The user-friendly name of the custom protection rule.
- Map<Any>
- 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 custom protection rule.
- mod
Security List<String>Rule Ids - The auto-generated ID for the custom protection rule. These IDs are referenced in logs.
- state String
- The current lifecycle state of the custom protection rule.
- template String
- The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language.
- time
Created String - The date and time the protection rule was created, expressed in RFC 3339 timestamp format.
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