1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getWafOwaspRules
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
tencentcloud logo
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 dictionary

    The following arguments are supported:

    Domain string
    Domain to be queried.
    By string
    Specifies the field used to sort. valid values: RuleId, ModifyTime.
    Filters List<GetWafOwaspRulesFilter>
    Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
    Id string
    Order string
    Sorting method. supports asc, desc.
    ResultOutputFile string
    Used to save results.
    Domain string
    Domain to be queried.
    By string
    Specifies the field used to sort. valid values: RuleId, ModifyTime.
    Filters []GetWafOwaspRulesFilter
    Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
    Id string
    Order string
    Sorting method. supports asc, desc.
    ResultOutputFile string
    Used to save results.
    domain String
    Domain to be queried.
    by String
    Specifies the field used to sort. valid values: RuleId, ModifyTime.
    filters List<GetWafOwaspRulesFilter>
    Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
    id String
    order String
    Sorting method. supports asc, desc.
    resultOutputFile String
    Used to save results.
    domain string
    Domain to be queried.
    by string
    Specifies the field used to sort. valid values: RuleId, ModifyTime.
    filters GetWafOwaspRulesFilter[]
    Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
    id string
    order string
    Sorting method. supports asc, desc.
    resultOutputFile string
    Used to save results.
    domain str
    Domain to be queried.
    by str
    Specifies the field used to sort. valid values: RuleId, ModifyTime.
    filters Sequence[GetWafOwaspRulesFilter]
    Specifies the criteria, support RuleId, TypeId, Desc, CveID, Status, and VulLevel.
    id str
    order str
    Sorting method. supports asc, desc.
    result_output_file str
    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.
    resultOutputFile String
    Used to save results.

    getWafOwaspRules Result

    The following output properties are available:

    Supporting Types

    GetWafOwaspRulesFilter

    ExactMatch 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.
    ExactMatch 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.
    exactMatch 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.
    exactMatch 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.
    exactMatch 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

    CreateTime string
    Creation time.
    CveId 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.
    ModifyTime string
    Update time.
    Reason double
    Reason for modification
    RuleId double
    Rule ID.
    Status double
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    TypeId double
    Specifies the rule type ID.
    VulLevel double
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    CreateTime string
    Creation time.
    CveId 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.
    ModifyTime string
    Update time.
    Reason float64
    Reason for modification
    RuleId float64
    Rule ID.
    Status float64
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    TypeId float64
    Specifies the rule type ID.
    VulLevel float64
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    createTime String
    Creation time.
    cveId 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.
    modifyTime String
    Update time.
    reason Double
    Reason for modification
    ruleId Double
    Rule ID.
    status Double
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    typeId Double
    Specifies the rule type ID.
    vulLevel Double
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    createTime string
    Creation time.
    cveId 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.
    modifyTime string
    Update time.
    reason number
    Reason for modification
    ruleId number
    Rule ID.
    status number
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    typeId number
    Specifies the rule type ID.
    vulLevel 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).
    createTime String
    Creation time.
    cveId 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.
    modifyTime String
    Update time.
    reason Number
    Reason for modification
    ruleId Number
    Rule ID.
    status Number
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    typeId Number
    Specifies the rule type ID.
    vulLevel 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate