All Products
Search
Document Center

Anti-DDoS:DescribeCap

Last Updated:Mar 01, 2024

Queries the download link to the traffic data that is captured when a DDoS attack event occurs.

Operation description

You can call the DescribeCap operation to query the download link to the traffic data that is captured when a DDoS attack event occurs. You can download the traffic data from the download link and use the data as evidence.

Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DdosRegionIdstringYes

The region ID of the asset that is under DDoS attacks. The asset is assigned a public IP address.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-hangzhou
InstanceTypestringYes

The type of the asset that is under DDoS attacks. Valid values:

  • ecs: ECS instance
  • slb: SLB instance
  • eip: EIP
ecs
InstanceIdstringYes

The ID of the asset that is under DDoS attacks.

Note You can call the DescribeInstance operation to query the IDs of ECS instances, SLB instances, and EIPs within the current Alibaba Cloud account.
i-bp10bclrt56fblts****
BegTimelongYes

The start time of the DDoS attack event. The value is a UNIX timestamp. Unit: milliseconds.

Note You can call the DescribeDdosEventList operation to query the start time of each DDoS attack event that occurred on an asset.
1637812279000
InternetIpstringNo

The public IP address of the asset that is under DDoS attacks.

121.199.XX.XX

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

C728D7E9-9A39-52E0-966B-5C33118BDBB0
CapUrlobject

The download link to the traffic data that is captured when a DDoS attack event occurs.

Urlstring

The download link to the traffic data.

http://beaver-pack****.oss-cn-hangzhou.aliyuncs.com/ddos-2021112511-121.89.XX.XX.cap?Expires=1637824408&OSSAccessKeyId=LTAIXu2lJhw3****&Signature=KKSzOMSUajtwcqfqxkU1nK69d4****

Examples

Sample success responses

JSONformat

{
  "RequestId": "C728D7E9-9A39-52E0-966B-5C33118BDBB0",
  "CapUrl": {
    "Url": "http://beaver-pack****.oss-cn-hangzhou.aliyuncs.com/ddos-2021112511-121.89.XX.XX.cap?Expires=1637824408&OSSAccessKeyId=LTAIXu2lJhw3****&Signature=KKSzOMSUajtwcqfqxkU1nK69d4****"
  }
}

Error codes

For a list of error codes, visit the Service error codes.