DDoS Analysis Layer 7 QPS Trend Chart API
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| esa:DescribeDDoSL7QpsList | get | *Site acs:esa:{#regionId}:{#accountId}:site/{#SiteId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| StartTime | string | Yes | The start time of the query. The date format follows ISO8601 notation and uses UTC+0, formatted as yyyy-MM-ddTHH:mm:ssZ. | 2023-04-19T16:00:00Z |
| EndTime | string | No | The end time of the query. The date format follows ISO8601 notation and uses UTC+0, formatted as yyyy-MM-ddTHH:mm:ssZ. The maximum span between the start and end times is 31 days. If this parameter is not set, the current time will be used as the end time of the query. | 2023-04-19T19:00:00Z |
| RecordId | long | No | Record ID, which can be obtained by calling the ListRecords interface. | 86510927836942**** |
| Interval | integer | Yes | The time granularity of the queried data, in seconds. Depending on the maximum time span of a single query, this parameter supports values of 60 (1 minute), 300 (5 minutes), 1800 (half an hour), and 3600 (1 hour). | 300 |
| SiteId | long | Yes | Site ID, which can be obtained by calling the ListSites interface. | 123456**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792",
"SiteId": 0,
"RecordId": 0,
"DataInterval": 300,
"StartTime": "2023-04-19T16:00:00Z\n",
"EndTime": "2023-04-19T19:00:00Z\n",
"DataModule": [
{
"Total": 9,
"Attack": 5,
"Normal": 4,
"TimeStamp": "2023-04-19T16:00:00Z\n"
}
]
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
For a list of error codes, visit the Service error codes.
