1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getWafPeakPoints
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getWafPeakPoints

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of waf peak_points

    Example Usage

    Basic Query

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getWafPeakPoints({
        fromTime: "2023-09-01 00:00:00",
        toTime: "2023-09-07 00:00:00",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_waf_peak_points(from_time="2023-09-01 00:00:00",
        to_time="2023-09-07 00:00:00")
    
    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.GetWafPeakPoints(ctx, &tencentcloud.GetWafPeakPointsArgs{
    			FromTime: "2023-09-01 00:00:00",
    			ToTime:   "2023-09-07 00:00:00",
    		}, 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.GetWafPeakPoints.Invoke(new()
        {
            FromTime = "2023-09-01 00:00:00",
            ToTime = "2023-09-07 00:00:00",
        });
    
    });
    
    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.GetWafPeakPointsArgs;
    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.getWafPeakPoints(GetWafPeakPointsArgs.builder()
                .fromTime("2023-09-01 00:00:00")
                .toTime("2023-09-07 00:00:00")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getWafPeakPoints
          arguments:
            fromTime: 2023-09-01 00:00:00
            toTime: 2023-09-07 00:00:00
    

    Query by filter

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getWafPeakPoints({
        domain: "domain.com",
        edition: "clb-waf",
        fromTime: "2023-09-01 00:00:00",
        instanceId: "waf_2kxtlbky00b2v1fn",
        metricName: "access",
        toTime: "2023-09-07 00:00:00",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_waf_peak_points(domain="domain.com",
        edition="clb-waf",
        from_time="2023-09-01 00:00:00",
        instance_id="waf_2kxtlbky00b2v1fn",
        metric_name="access",
        to_time="2023-09-07 00:00:00")
    
    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.GetWafPeakPoints(ctx, &tencentcloud.GetWafPeakPointsArgs{
    			Domain:     pulumi.StringRef("domain.com"),
    			Edition:    pulumi.StringRef("clb-waf"),
    			FromTime:   "2023-09-01 00:00:00",
    			InstanceId: pulumi.StringRef("waf_2kxtlbky00b2v1fn"),
    			MetricName: pulumi.StringRef("access"),
    			ToTime:     "2023-09-07 00:00:00",
    		}, 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.GetWafPeakPoints.Invoke(new()
        {
            Domain = "domain.com",
            Edition = "clb-waf",
            FromTime = "2023-09-01 00:00:00",
            InstanceId = "waf_2kxtlbky00b2v1fn",
            MetricName = "access",
            ToTime = "2023-09-07 00:00:00",
        });
    
    });
    
    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.GetWafPeakPointsArgs;
    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.getWafPeakPoints(GetWafPeakPointsArgs.builder()
                .domain("domain.com")
                .edition("clb-waf")
                .fromTime("2023-09-01 00:00:00")
                .instanceId("waf_2kxtlbky00b2v1fn")
                .metricName("access")
                .toTime("2023-09-07 00:00:00")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getWafPeakPoints
          arguments:
            domain: domain.com
            edition: clb-waf
            fromTime: 2023-09-01 00:00:00
            instanceId: waf_2kxtlbky00b2v1fn
            metricName: access
            toTime: 2023-09-07 00:00:00
    

    Using getWafPeakPoints

    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 getWafPeakPoints(args: GetWafPeakPointsArgs, opts?: InvokeOptions): Promise<GetWafPeakPointsResult>
    function getWafPeakPointsOutput(args: GetWafPeakPointsOutputArgs, opts?: InvokeOptions): Output<GetWafPeakPointsResult>
    def get_waf_peak_points(domain: Optional[str] = None,
                            edition: Optional[str] = None,
                            from_time: Optional[str] = None,
                            id: Optional[str] = None,
                            instance_id: Optional[str] = None,
                            metric_name: Optional[str] = None,
                            result_output_file: Optional[str] = None,
                            to_time: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetWafPeakPointsResult
    def get_waf_peak_points_output(domain: Optional[pulumi.Input[str]] = None,
                            edition: Optional[pulumi.Input[str]] = None,
                            from_time: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            instance_id: Optional[pulumi.Input[str]] = None,
                            metric_name: Optional[pulumi.Input[str]] = None,
                            result_output_file: Optional[pulumi.Input[str]] = None,
                            to_time: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetWafPeakPointsResult]
    func GetWafPeakPoints(ctx *Context, args *GetWafPeakPointsArgs, opts ...InvokeOption) (*GetWafPeakPointsResult, error)
    func GetWafPeakPointsOutput(ctx *Context, args *GetWafPeakPointsOutputArgs, opts ...InvokeOption) GetWafPeakPointsResultOutput

    > Note: This function is named GetWafPeakPoints in the Go SDK.

    public static class GetWafPeakPoints 
    {
        public static Task<GetWafPeakPointsResult> InvokeAsync(GetWafPeakPointsArgs args, InvokeOptions? opts = null)
        public static Output<GetWafPeakPointsResult> Invoke(GetWafPeakPointsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWafPeakPointsResult> getWafPeakPoints(GetWafPeakPointsArgs args, InvokeOptions options)
    public static Output<GetWafPeakPointsResult> getWafPeakPoints(GetWafPeakPointsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getWafPeakPoints:getWafPeakPoints
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FromTime string
    Begin time.
    ToTime string
    End time.
    Domain string
    The domain name to be queried. If all domain name data is queried, this parameter is not filled in.
    Edition string
    Only support sparta-waf and clb-waf. If not passed, there will be no filtering.
    Id string
    InstanceId string
    WAF instance ID, if not passed, there will be no filtering.
    MetricName string
    Twelve values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; bw- Black IP Attack Total Trend Chart; tamper- Anti Tamper Attack Total Trend Chart; leak- Trend chart of total number of anti leakage attacks; acl- Trend chart of total number of access control attacks; http_status- Trend chart of status code frequency; wx_access- WeChat Mini Program Peak QPS Trend Chart.
    ResultOutputFile string
    Used to save results.
    FromTime string
    Begin time.
    ToTime string
    End time.
    Domain string
    The domain name to be queried. If all domain name data is queried, this parameter is not filled in.
    Edition string
    Only support sparta-waf and clb-waf. If not passed, there will be no filtering.
    Id string
    InstanceId string
    WAF instance ID, if not passed, there will be no filtering.
    MetricName string
    Twelve values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; bw- Black IP Attack Total Trend Chart; tamper- Anti Tamper Attack Total Trend Chart; leak- Trend chart of total number of anti leakage attacks; acl- Trend chart of total number of access control attacks; http_status- Trend chart of status code frequency; wx_access- WeChat Mini Program Peak QPS Trend Chart.
    ResultOutputFile string
    Used to save results.
    fromTime String
    Begin time.
    toTime String
    End time.
    domain String
    The domain name to be queried. If all domain name data is queried, this parameter is not filled in.
    edition String
    Only support sparta-waf and clb-waf. If not passed, there will be no filtering.
    id String
    instanceId String
    WAF instance ID, if not passed, there will be no filtering.
    metricName String
    Twelve values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; bw- Black IP Attack Total Trend Chart; tamper- Anti Tamper Attack Total Trend Chart; leak- Trend chart of total number of anti leakage attacks; acl- Trend chart of total number of access control attacks; http_status- Trend chart of status code frequency; wx_access- WeChat Mini Program Peak QPS Trend Chart.
    resultOutputFile String
    Used to save results.
    fromTime string
    Begin time.
    toTime string
    End time.
    domain string
    The domain name to be queried. If all domain name data is queried, this parameter is not filled in.
    edition string
    Only support sparta-waf and clb-waf. If not passed, there will be no filtering.
    id string
    instanceId string
    WAF instance ID, if not passed, there will be no filtering.
    metricName string
    Twelve values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; bw- Black IP Attack Total Trend Chart; tamper- Anti Tamper Attack Total Trend Chart; leak- Trend chart of total number of anti leakage attacks; acl- Trend chart of total number of access control attacks; http_status- Trend chart of status code frequency; wx_access- WeChat Mini Program Peak QPS Trend Chart.
    resultOutputFile string
    Used to save results.
    from_time str
    Begin time.
    to_time str
    End time.
    domain str
    The domain name to be queried. If all domain name data is queried, this parameter is not filled in.
    edition str
    Only support sparta-waf and clb-waf. If not passed, there will be no filtering.
    id str
    instance_id str
    WAF instance ID, if not passed, there will be no filtering.
    metric_name str
    Twelve values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; bw- Black IP Attack Total Trend Chart; tamper- Anti Tamper Attack Total Trend Chart; leak- Trend chart of total number of anti leakage attacks; acl- Trend chart of total number of access control attacks; http_status- Trend chart of status code frequency; wx_access- WeChat Mini Program Peak QPS Trend Chart.
    result_output_file str
    Used to save results.
    fromTime String
    Begin time.
    toTime String
    End time.
    domain String
    The domain name to be queried. If all domain name data is queried, this parameter is not filled in.
    edition String
    Only support sparta-waf and clb-waf. If not passed, there will be no filtering.
    id String
    instanceId String
    WAF instance ID, if not passed, there will be no filtering.
    metricName String
    Twelve values are available: access-Peak qps trend chart; botAccess- bot peak qps trend chart; down-Downstream peak bandwidth trend chart; up-Upstream peak bandwidth trend chart; attack-Trend chart of total number of web attacks; cc-Trend chart of total number of CC attacks; bw- Black IP Attack Total Trend Chart; tamper- Anti Tamper Attack Total Trend Chart; leak- Trend chart of total number of anti leakage attacks; acl- Trend chart of total number of access control attacks; http_status- Trend chart of status code frequency; wx_access- WeChat Mini Program Peak QPS Trend Chart.
    resultOutputFile String
    Used to save results.

    getWafPeakPoints Result

    The following output properties are available:

    FromTime string
    Id string
    Points List<GetWafPeakPointsPoint>
    point list.
    ToTime string
    Domain string
    Edition string
    InstanceId string
    MetricName string
    ResultOutputFile string
    FromTime string
    Id string
    Points []GetWafPeakPointsPoint
    point list.
    ToTime string
    Domain string
    Edition string
    InstanceId string
    MetricName string
    ResultOutputFile string
    fromTime String
    id String
    points List<GetWafPeakPointsPoint>
    point list.
    toTime String
    domain String
    edition String
    instanceId String
    metricName String
    resultOutputFile String
    fromTime string
    id string
    points GetWafPeakPointsPoint[]
    point list.
    toTime string
    domain string
    edition string
    instanceId string
    metricName string
    resultOutputFile string
    fromTime String
    id String
    points List<Property Map>
    point list.
    toTime String
    domain String
    edition String
    instanceId String
    metricName String
    resultOutputFile String

    Supporting Types

    GetWafPeakPointsPoint

    Access double
    qps.
    Attack double
    Number of web attacks.
    BotAccess double
    Bot qps.
    Cc double
    Number of cc attacks.
    Down double
    Peak downlink bandwidth, unit B.
    StatusClientError double
    Trend chart of the number of status codes returned by WAF to the client.
    StatusOk double
    Trend chart of the number of status codes returned by WAF to the client.
    StatusRedirect double
    Trend chart of the number of status codes returned by WAF to the client.
    StatusServerError double
    Trend chart of the number of status codes returned by WAF to the server.
    Time double
    Second level timestamp.
    Up double
    Peak uplink bandwidth, unit B.
    UpstreamClientError double
    Trend chart of the number of status codes returned to WAF by the origin site.
    UpstreamRedirect double
    Trend chart of the number of status codes returned to WAF by the origin site.
    UpstreamServerError double
    Trend chart of the number of status codes returned to WAF by the origin site.
    Access float64
    qps.
    Attack float64
    Number of web attacks.
    BotAccess float64
    Bot qps.
    Cc float64
    Number of cc attacks.
    Down float64
    Peak downlink bandwidth, unit B.
    StatusClientError float64
    Trend chart of the number of status codes returned by WAF to the client.
    StatusOk float64
    Trend chart of the number of status codes returned by WAF to the client.
    StatusRedirect float64
    Trend chart of the number of status codes returned by WAF to the client.
    StatusServerError float64
    Trend chart of the number of status codes returned by WAF to the server.
    Time float64
    Second level timestamp.
    Up float64
    Peak uplink bandwidth, unit B.
    UpstreamClientError float64
    Trend chart of the number of status codes returned to WAF by the origin site.
    UpstreamRedirect float64
    Trend chart of the number of status codes returned to WAF by the origin site.
    UpstreamServerError float64
    Trend chart of the number of status codes returned to WAF by the origin site.
    access Double
    qps.
    attack Double
    Number of web attacks.
    botAccess Double
    Bot qps.
    cc Double
    Number of cc attacks.
    down Double
    Peak downlink bandwidth, unit B.
    statusClientError Double
    Trend chart of the number of status codes returned by WAF to the client.
    statusOk Double
    Trend chart of the number of status codes returned by WAF to the client.
    statusRedirect Double
    Trend chart of the number of status codes returned by WAF to the client.
    statusServerError Double
    Trend chart of the number of status codes returned by WAF to the server.
    time Double
    Second level timestamp.
    up Double
    Peak uplink bandwidth, unit B.
    upstreamClientError Double
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstreamRedirect Double
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstreamServerError Double
    Trend chart of the number of status codes returned to WAF by the origin site.
    access number
    qps.
    attack number
    Number of web attacks.
    botAccess number
    Bot qps.
    cc number
    Number of cc attacks.
    down number
    Peak downlink bandwidth, unit B.
    statusClientError number
    Trend chart of the number of status codes returned by WAF to the client.
    statusOk number
    Trend chart of the number of status codes returned by WAF to the client.
    statusRedirect number
    Trend chart of the number of status codes returned by WAF to the client.
    statusServerError number
    Trend chart of the number of status codes returned by WAF to the server.
    time number
    Second level timestamp.
    up number
    Peak uplink bandwidth, unit B.
    upstreamClientError number
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstreamRedirect number
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstreamServerError number
    Trend chart of the number of status codes returned to WAF by the origin site.
    access float
    qps.
    attack float
    Number of web attacks.
    bot_access float
    Bot qps.
    cc float
    Number of cc attacks.
    down float
    Peak downlink bandwidth, unit B.
    status_client_error float
    Trend chart of the number of status codes returned by WAF to the client.
    status_ok float
    Trend chart of the number of status codes returned by WAF to the client.
    status_redirect float
    Trend chart of the number of status codes returned by WAF to the client.
    status_server_error float
    Trend chart of the number of status codes returned by WAF to the server.
    time float
    Second level timestamp.
    up float
    Peak uplink bandwidth, unit B.
    upstream_client_error float
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstream_redirect float
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstream_server_error float
    Trend chart of the number of status codes returned to WAF by the origin site.
    access Number
    qps.
    attack Number
    Number of web attacks.
    botAccess Number
    Bot qps.
    cc Number
    Number of cc attacks.
    down Number
    Peak downlink bandwidth, unit B.
    statusClientError Number
    Trend chart of the number of status codes returned by WAF to the client.
    statusOk Number
    Trend chart of the number of status codes returned by WAF to the client.
    statusRedirect Number
    Trend chart of the number of status codes returned by WAF to the client.
    statusServerError Number
    Trend chart of the number of status codes returned by WAF to the server.
    time Number
    Second level timestamp.
    up Number
    Peak uplink bandwidth, unit B.
    upstreamClientError Number
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstreamRedirect Number
    Trend chart of the number of status codes returned to WAF by the origin site.
    upstreamServerError Number
    Trend chart of the number of status codes returned to WAF by the origin site.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack