tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
Use this data source to query detailed information of WAF owasp rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getWafOwaspRules({
domain: "example.qcloud.com",
by: "RuleId",
order: "desc",
filters: [{
name: "RuleId",
values: ["106251141"],
exactMatch: true,
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_waf_owasp_rules(domain="example.qcloud.com",
by="RuleId",
order="desc",
filters=[{
"name": "RuleId",
"values": ["106251141"],
"exact_match": True,
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetWafOwaspRules(ctx, &tencentcloud.GetWafOwaspRulesArgs{
Domain: "example.qcloud.com",
By: pulumi.StringRef("RuleId"),
Order: pulumi.StringRef("desc"),
Filters: []tencentcloud.GetWafOwaspRulesFilter{
{
Name: "RuleId",
Values: []string{
"106251141",
},
ExactMatch: true,
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetWafOwaspRules.Invoke(new()
{
Domain = "example.qcloud.com",
By = "RuleId",
Order = "desc",
Filters = new[]
{
new Tencentcloud.Inputs.GetWafOwaspRulesFilterInputArgs
{
Name = "RuleId",
Values = new[]
{
"106251141",
},
ExactMatch = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetWafOwaspRulesArgs;
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 example = TencentcloudFunctions.getWafOwaspRules(GetWafOwaspRulesArgs.builder()
.domain("example.qcloud.com")
.by("RuleId")
.order("desc")
.filters(GetWafOwaspRulesFilterArgs.builder()
.name("RuleId")
.values("106251141")
.exactMatch(true)
.build())
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getWafOwaspRules
arguments:
domain: example.qcloud.com
by: RuleId
order: desc
filters:
- name: RuleId
values:
- '106251141'
exactMatch: true
Using getWafOwaspRules
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 getWafOwaspRules(args: GetWafOwaspRulesArgs, opts?: InvokeOptions): Promise<GetWafOwaspRulesResult>
function getWafOwaspRulesOutput(args: GetWafOwaspRulesOutputArgs, opts?: InvokeOptions): Output<GetWafOwaspRulesResult>def get_waf_owasp_rules(by: Optional[str] = None,
domain: Optional[str] = None,
filters: Optional[Sequence[GetWafOwaspRulesFilter]] = None,
id: Optional[str] = None,
order: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWafOwaspRulesResult
def get_waf_owasp_rules_output(by: Optional[pulumi.Input[str]] = None,
domain: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetWafOwaspRulesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
order: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWafOwaspRulesResult]func GetWafOwaspRules(ctx *Context, args *GetWafOwaspRulesArgs, opts ...InvokeOption) (*GetWafOwaspRulesResult, error)
func GetWafOwaspRulesOutput(ctx *Context, args *GetWafOwaspRulesOutputArgs, opts ...InvokeOption) GetWafOwaspRulesResultOutput> Note: This function is named GetWafOwaspRules in the Go SDK.
public static class GetWafOwaspRules
{
public static Task<GetWafOwaspRulesResult> InvokeAsync(GetWafOwaspRulesArgs args, InvokeOptions? opts = null)
public static Output<GetWafOwaspRulesResult> Invoke(GetWafOwaspRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWafOwaspRulesResult> getWafOwaspRules(GetWafOwaspRulesArgs args, InvokeOptions options)
public static Output<GetWafOwaspRulesResult> getWafOwaspRules(GetWafOwaspRulesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getWafOwaspRules:getWafOwaspRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Domain string
- Domain to be queried.
- By string
- Specifies the field used to sort. valid values: RuleId, ModifyTime.
- Filters
List<Get
Waf Owasp Rules Filter> - Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
- Id string
- Order string
- Sorting method. supports asc, desc.
- Result
Output stringFile - Used to save results.
- Domain string
- Domain to be queried.
- By string
- Specifies the field used to sort. valid values: RuleId, ModifyTime.
- Filters
[]Get
Waf Owasp Rules Filter - Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
- Id string
- Order string
- Sorting method. supports asc, desc.
- Result
Output stringFile - Used to save results.
- domain String
- Domain to be queried.
- by String
- Specifies the field used to sort. valid values: RuleId, ModifyTime.
- filters
List<Get
Waf Owasp Rules Filter> - Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
- id String
- order String
- Sorting method. supports asc, desc.
- result
Output StringFile - Used to save results.
- domain string
- Domain to be queried.
- by string
- Specifies the field used to sort. valid values: RuleId, ModifyTime.
- filters
Get
Waf Owasp Rules Filter[] - Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
- id string
- order string
- Sorting method. supports asc, desc.
- result
Output stringFile - Used to save results.
- domain str
- Domain to be queried.
- by str
- Specifies the field used to sort. valid values: RuleId, ModifyTime.
- filters
Sequence[Get
Waf Owasp Rules Filter] - Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
- id str
- order str
- Sorting method. supports asc, desc.
- result_
output_ strfile - Used to save results.
- domain String
- Domain to be queried.
- by String
- Specifies the field used to sort. valid values: RuleId, ModifyTime.
- filters List<Property Map>
- Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
- id String
- order String
- Sorting method. supports asc, desc.
- result
Output StringFile - Used to save results.
getWafOwaspRules Result
The following output properties are available:
- Domain string
- Id string
- Lists
List<Get
Waf Owasp Rules List> - List of rules.
- By string
- Filters
List<Get
Waf Owasp Rules Filter> - Order string
- Result
Output stringFile
- Domain string
- Id string
- Lists
[]Get
Waf Owasp Rules List - List of rules.
- By string
- Filters
[]Get
Waf Owasp Rules Filter - Order string
- Result
Output stringFile
- domain String
- id String
- lists
List<Get
Waf Owasp Rules List> - List of rules.
- by String
- filters
List<Get
Waf Owasp Rules Filter> - order String
- result
Output StringFile
- domain string
- id string
- lists
Get
Waf Owasp Rules List[] - List of rules.
- by string
- filters
Get
Waf Owasp Rules Filter[] - order string
- result
Output stringFile
- domain str
- id str
- lists
Sequence[Get
Waf Owasp Rules List] - List of rules.
- by str
- filters
Sequence[Get
Waf Owasp Rules Filter] - order str
- result_
output_ strfile
- domain String
- id String
- lists List<Property Map>
- List of rules.
- by String
- filters List<Property Map>
- order String
- result
Output StringFile
Supporting Types
GetWafOwaspRulesFilter
- Exact
Match bool - Exact search or not.
- Name string
- Field name, used for filtering Filter the sub-order number (value) by DealName.
- Values List<string>
- Values after filtering.
- Exact
Match bool - Exact search or not.
- Name string
- Field name, used for filtering Filter the sub-order number (value) by DealName.
- Values []string
- Values after filtering.
- exact
Match Boolean - Exact search or not.
- name String
- Field name, used for filtering Filter the sub-order number (value) by DealName.
- values List<String>
- Values after filtering.
- exact
Match boolean - Exact search or not.
- name string
- Field name, used for filtering Filter the sub-order number (value) by DealName.
- values string[]
- Values after filtering.
- exact_
match bool - Exact search or not.
- name str
- Field name, used for filtering Filter the sub-order number (value) by DealName.
- values Sequence[str]
- Values after filtering.
- exact
Match Boolean - Exact search or not.
- name String
- Field name, used for filtering Filter the sub-order number (value) by DealName.
- values List<String>
- Values after filtering.
GetWafOwaspRulesList
- Create
Time string - Creation time.
- Cve
Id string - CVE ID.
- Description string
- Rule description.
- Level double
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Locked double
- Whether the user is locked.
- Modify
Time string - Update time.
- Reason double
- Reason for modification
- Rule
Id double - Rule ID.
- Status double
- Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- Type
Id double - Specifies the rule type ID.
- Vul
Level double - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- Create
Time string - Creation time.
- Cve
Id string - CVE ID.
- Description string
- Rule description.
- Level float64
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Locked float64
- Whether the user is locked.
- Modify
Time string - Update time.
- Reason float64
- Reason for modification
- Rule
Id float64 - Rule ID.
- Status float64
- Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- Type
Id float64 - Specifies the rule type ID.
- Vul
Level float64 - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- create
Time String - Creation time.
- cve
Id String - CVE ID.
- description String
- Rule description.
- level Double
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked Double
- Whether the user is locked.
- modify
Time String - Update time.
- reason Double
- Reason for modification
- rule
Id Double - Rule ID.
- status Double
- Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type
Id Double - Specifies the rule type ID.
- vul
Level Double - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- create
Time string - Creation time.
- cve
Id string - CVE ID.
- description string
- Rule description.
- level number
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked number
- Whether the user is locked.
- modify
Time string - Update time.
- reason number
- Reason for modification
- rule
Id number - Rule ID.
- status number
- Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type
Id number - Specifies the rule type ID.
- vul
Level number - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- create_
time str - Creation time.
- cve_
id str - CVE ID.
- description str
- Rule description.
- level float
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked float
- Whether the user is locked.
- modify_
time str - Update time.
- reason float
- Reason for modification
- rule_
id float - Rule ID.
- status float
- Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type_
id float - Specifies the rule type ID.
- vul_
level float - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- create
Time String - Creation time.
- cve
Id String - CVE ID.
- description String
- Rule description.
- level Number
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked Number
- Whether the user is locked.
- modify
Time String - Update time.
- reason Number
- Reason for modification
- rule
Id Number - Rule ID.
- status Number
- Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type
Id Number - Specifies the rule type ID.
- vul
Level Number - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
