DDoS Defender (Anti-DDoS) delivers automated attack mitigation and traffic cleansing for cloud and internet-facing workloads, with protection capacity of up to Tbps scale. Attack traffic is automatically mitigated, and mitigated attack traffic is not billed. With DDoS Defender, you can keep your business online during large-scale attacks and reduce security build-out and operations costs. For product details, see Product Overview.
The DDoS Defender APIs described in this chapter are all API 3.0 APIs.
You can call APIs to perform operations on DDoS Defender, such as creating protection instances, binding resources to protection instances, and configuring protection policies.
DDoS Defender provides two API versions. Select the corresponding version based on the prefix of the resource instance ID you are using:
| Instance ID Prefix | Resource Type | API Version | API Overview |
|---|---|---|---|
bgp- |
Anti-DDoS Pro instance | 2020-03-09 | API Overview |
bgpip- |
Anti-DDoS Advanced instance | 2020-03-09 | API Overview |
prot- |
Protection instance (corresponding to the new DDoS Defender plan) | 2025-09-03 | API Overview |
The two versions are described as follows:
bgp-) and Anti-DDoS Advanced (bgpip-) resources, it provides capabilities such as asset instances, protection configuration, CC protection, alarm notification, connection configuration, intelligent scheduling, black hole unblocking, and statistical reports.prot-) resource model, it provides creation, query, modification, and deletion of protection instances, binding management of protected resources, and query and configuration of DDoS protection policies.For common terms used in DDoS Defender API, see the following table:
| Term | Description |
|---|---|
| Resource instance ID | The unique identifier of a DDoS protection instance, used to locate the resource in APIs. An Anti-DDoS Pro instance ID is in the format of bgp-000000x1, an Anti-DDoS Advanced instance ID is in the format of bgpip-000001, and a new protection instance ID is in the format of prot-0004c045b8. |
| Protection instance | The basic resource unit of DDoS Defender, used to carry protection policies and associate cloud resources that need protection. It corresponds to API version 2025-09-03. |
| Protected resource | A cloud resource that is bound to a protection instance and receives DDoS protection, such as Cloud Load Balancer (CLB), elastic IP (EIP), and EdgeOne domain. |
For API parameter limits, refer to the parameter descriptions in the API documentation.
You can use the API Explorer Tool for online API calls.
This document uses creating a protection instance as an example. The steps for API call via API Explorer Tool are as follows:
ProtectionId), which can be used to configure protection policies and associate protected resources later.Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan