Domain name for API request: teo.tencentcloudapi.com.
This API is used to query the DDoS protection configuration.
A maximum of 20 requests can be initiated per second for this API.
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 Params. The value used for this API: DescribeDDoSPolicy. |
Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
ZoneId | Yes | String | The site ID. |
PolicyId | Yes | Integer | Policy ID |
Parameter Name | Type | Description |
---|---|---|
DDoSRule | DDoSRule | DDoS mitigation configuration. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeDDoSPolicy
<Common request parameters>
{
"PolicyId": "1456",
"ZoneId": "zone-285thql0vdhi"
}
{
"Response": {
"RequestId": "7d20dbda-d747-4946-9ada-30ca22449d69",
"DDoSRule": {
"DDoSAcl": {
"DDoSAclRules": [
{
"Action": "forward",
"DportEnd": 80,
"DportStart": 80,
"Protocol": "all",
"SportEnd": 65535,
"SportStart": 1
}
],
"Switch": "on"
},
"DDoSAllowBlock": {
"DDoSAllowBlockRules": [
{
"Ip": "2.2.2.2",
"Type": "allow",
"UpdateTime": 1661828230
}
],
"Switch": "on"
},
"DDoSAntiPly": {
"AbnormalConnectNum": 0,
"AbnormalSynNum": 0,
"AbnormalSynRatio": 0,
"ConnectTimeout": 0,
"DestinationConnectLimit": 0,
"DestinationCreateLimit": 0,
"DropIcmp": "on",
"DropOther": "off",
"DropTcp": "off",
"DropUdp": "off",
"EmptyConnectProtect": "off",
"SourceConnectLimit": 0,
"SourceCreateLimit": 0,
"UdpShard": "off"
},
"DDoSGeoIp": {
"RegionIds": [],
"Switch": "on"
},
"DDoSPacketFilter": {
"DDoSFeaturesFilters": [
{
"Action": "forward",
"Depth": 123,
"Depth2": 1500,
"DportEnd": 0,
"DportStart": 0,
"IsNot": 0,
"IsNot2": 0,
"MatchBegin": "begin_l3",
"MatchBegin2": "no_match",
"MatchLogic": "none",
"MatchType": "sunday",
"MatchType2": "sunday",
"Offset": 23,
"Offset2": 0,
"PacketMax": 0,
"PacketMin": 0,
"Protocol": "udp",
"SportEnd": 0,
"SportStart": 0,
"Str": "123",
"Str2": ""
}
],
"Switch": "on"
},
"DDoSSpeedLimit": {
"FluxLimit": "0 bps",
"PackageLimit": "0 pps"
},
"DDoSStatusInfo": {
"PlyLevel": "middle"
},
"Switch": "on"
}
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError.ProxyServer | An unknown error occurred in the backend server. |
Was this page helpful?