tencent cloud

APIs

Introduction

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-12-01 20:49:00

Overview

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.

Version Selection

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:

  • Version 2020-03-09: For Anti-DDoS Pro (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.
  • Version 2025-09-03: For the new protection instance (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.

Glossary

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.

Usage Limits

For API parameter limits, refer to the parameter descriptions in the API documentation.

API Quick Start

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:

  1. Go to the API Explorer tool page. For more information on using the API Explorer tool, see Using API Explorer.
  2. Call CreateProtection to create a protection instance.
  3. After successful creation, the API returns the protection instance ID (ProtectionId), which can be used to configure protection policies and associate protected resources later.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan