DescribeDDoSAttackIPRegionMap

Last updated: 2020-07-31 10:08:52

1. API Description

Domain name for API request: dayu.tencentcloudapi.com.

This API is used to get the geographical distribution map of DDoS attack source IPs. It supports display by global regions and Chinese provinces.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeDDoSAttackIPRegionMap.
Version Yes String Common parameter. The value used for this API: 2018-07-09.
Region No String Common parameter. This parameter is not required for this API.
Business Yes String Anti-DDoS service type (shield: Chess Shield, bgpip: Anti-DDoS Advanced, bgp: Anti-DDoS Pro (single IP), bgp-multip: Anti-DDoS Pro (multi-IP), net: Anti-DDoS Ultimate)
Id Yes String Anti-DDoS instance ID
StartTime Yes Timestamp Statistics start time
EndTime Yes Timestamp Statistics end time. Maximum statistics time range: half a year;
IpList.N No Array of String IP attack source of specified resource, which is optional

3. Output Parameters

Parameter Name Type Description
NationCount Array of KeyValueRecord Global region distribution data
ProvinceCount Array of KeyValueRecord Chinese province distribution data
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Getting the geographical distribution map of DDoS attack source IPs

Input Example

https://dayu.tencentcloudapi.com/?Action=DescribeDDoSAttackIPRegionMap
&Business=bgpip
&Id=bgpip-0000000x
&IpList.0=1.1.1.1
&StartTime=2019-07-23 11:32:12
&EndTime=2019-07-27 13:35:16
&<Common request parameters>

Output Example

{
  "Response": {
    "RequestId": "8466d9e1-70a9-4575-8e02-df15bd50bc49",
    "NationCount": [
      {
        "Record": [
          {
            "Key": "Nation",
            "Value": "Korea"
          },
          {
            "Key": "AttackCount",
            "Value": "10"
          },
          {
            "Key": "PacketCount",
            "Value": "1350"
          },
          {
            "Key": "PacketBytes",
            "Value": "564090"
          }
        ]
      },
      {
        "Record": [
          {
            "Key": "Nation",
            "Value": "Bulgaria"
          },
          {
            "Key": "AttackCount",
            "Value": "15"
          },
          {
            "Key": "PacketCount",
            "Value": "3520"
          },
          {
            "Key": "PacketBytes",
            "Value": "894090"
          }
        ]
      }
    ],
    "ProvinceCount": [
      {
        "Record": [
          {
            "Key": "Province",
            "Value": "Zhejiang"
          },
          {
            "Key": "AttackCount",
            "Value": "25"
          },
          {
            "Key": "PacketCount",
            "Value": "3460"
          },
          {
            "Key": "PacketBytes",
            "Value": "56790"
          }
        ]
      },
      {
        "Record": [
          {
            "Key": "Province",
            "Value": "Taiwan (China)"
          },
          {
            "Key": "AttackCount",
            "Value": "35"
          },
          {
            "Key": "PacketCount",
            "Value": "3590"
          },
          {
            "Key": "PacketBytes",
            "Value": "894990"
          }
        ]
      }
    ]
  }
}

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameter Invalid parameter.
InvalidParameterValue Incorrect parameter value.
MissingParameter Missing parameter.
ResourceNotFound The resource does not exist.
ResourceUnavailable The resource is unavailable.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help