Integration overview

Updated at: 2024-07-31 06:10

Anti-DDoS Proxy provides a console for visual operations and multiple methods for calling API operations, including OpenAPI Explorer, Alibaba Cloud SDKs, Terraform, and Resource Orchestration Service (ROS). OpenAPI Explorer supports online debugging of API operations.

Overview of OpenAPI Explorer

Alibaba Cloud provides OpenAPI Explorer for developers to understand and use the API operations of various Alibaba Cloud services in a quick and efficient manner. OpenAPI Explorer integrates multiple features related to API operations, including intelligent search, documentation, online debugging, SDK download, sample code, error diagnostics, and call statistics. In OpenAPI Explorer, you can call API operations of Alibaba Cloud services and view API requests and responses. In addition, OpenAPI Explorer automatically generates the corresponding SDK sample code to facilitate the use of Alibaba Cloud services. For more information, see What is an API?

API versions

Alibaba Cloud OpenAPI Explorer manages the versions of Alibaba Cloud service APIs by version number. For example, Cloud Backup supports the API of the 2020-01-01 version. 2020-01-01 is an API version number rather than a date. Users are provided with the latest public information about the API. 2020-01-01 is the up-to-date version of the Cloud Backup API.

Version

Description

Version

Description

2020-01-01

We recommend that you use this version.

Online debugging

Anti-DDoS Proxy supports features such as API debugging in OpenAPI Explorer. Before you call API operations, take note of the following information provided by Anti-DDoS Proxy: versions, endpoints, API style, and integration methods.

Debugging page: https://next.api.alibabacloud.com/api/ddoscoo/2020-01-01.

image

Endpoints

You must select an endpoint based on the region where your resource resides to reduce latency. For example, the public endpoint of Anti-DDoS Proxy in the China (Hangzhou) region is ddoscoo.cn-hangzhou.aliyuncs.com and the virtual private cloud (VPC) endpoint is ddoscoo.vpc-proxy.aliyuncs.com.

  • Public endpoints can be accessed globally.

  • However, VPC endpoints are only accessible from within a VPC in the corresponding Alibaba Cloud region. VPC endpoints provide the following benefits:

    • High security: VPC endpoints can be accessed only from within a VPC. This provides higher security and privacy.

    • Fast response: VPC endpoints deliver faster responses than public endpoints because VPC endpoints enable data transmission over VPCs. In addition, problems such as network latency and bandwidth limitations can be prevented.

    • Low cost: VPC endpoints are accessed over an internal network.

For more information, see Endpoints.

Supported identities

By default, after you log on to OpenAPI Explorer by using your Alibaba Cloud account, the Alibaba Cloud account is used to perform online debugging. An Alibaba Cloud account has permissions on all API operations. If you use an Alibaba Cloud account to call API operations, security risks may arise. We strongly recommend that you call API operations or perform routine O&M by using a RAM user. Before you call API operations by using a RAM user, grant the required permissions to the RAM user based on your business requirements. The RAM user must have the required permissions. For more information about the required permissions of a RAM user, see Use RAM for access control.

Identity

Supported

Identity

Supported

Alibaba Cloud account

Yes

RAM user (recommended)

Yes

RAM role (recommended)

Yes

References

Integration methods

Note

SDKs can be easily integrated with your applications and cover the widest range of operations. We recommend that you use SDKs to call API operations.

Calling method

Supported

Calling method

Supported

Alibaba Cloud SDKs

Yes

Alibaba Cloud CLI

Yes

ROS

Partially supported

Terraform

Partially supported

Custom API encapsulation

Yes

Alibaba Cloud SDKs

  • Alibaba Cloud provides SDKs in multiple programming languages, including Java, C#, Go, Python, Node.js, TypeScript, PHP, and C++. You can integrate the SDKs with your applications to directly call API operations. SDKs encapsulate the signature logic, timeout mechanism, and retry mechanism and provide the request and response objects that facilitate development. For more information, see Alibaba Cloud SDKs.

  • You can use Anti-DDoS Proxy SDK to call API operations. For more information about the programming languages supported by Anti-DDoS Proxy SDK and how to install related dependencies, see Anti-DDoS Proxy SDK.

Alibaba Cloud CLI

  • You can run aliyun commands to interact with Alibaba Cloud services and manage cloud service resources. For more information, see What is Alibaba Cloud CLI?

  • You can use Alibaba Cloud CLI to call the API operations of Anti-DDoS Proxy. For more information about how to obtain and use Alibaba Cloud CLI, see User guide of Alibaba Cloud CLI.

ROS

  • ROS is an Alibaba Cloud service that simplifies the management of cloud computing resources. You can create a template to describe the required cloud computing resources such as Elastic Compute Service (ECS) and ApsaraDB RDS instances, as well as the dependencies between the resources. The ROS engine automatically creates and configures all the resources based on the template to implement automated deployment and O&M. For more information, see What is ROS?

  • You can use ROS to call the API operations of Anti-DDoS Proxy. The following table describes the resource types that are supported.

    Resource type

    Description

    Resource type

    Description

    ALIYUN::DDoSPro::Port

    Creates a port forwarding rule for an Anti-DDoS Proxy instance.

    ALIYUN::DDoSPro::PremiumInstance

    Creates an Anti-DDoS Proxy (Outside Chinese Mainland) instance.

    ALIYUN::DDoSPro::ProInstance

    Creates an Anti-DDoS Proxy (Chinese Mainland) instance.

    ALIYUN::DDoSPro::SceneDefensePolicy

    Creates a scenario-specific policy.

    ALIYUN::DDoSPro::SchedulerRule

    Creates a scheduling rule of Sec-Traffic Manager.

    ALIYUN::DDoSPro::WebRule

    Creates a forwarding rule for a website.

Terraform

  • Terraform is an open source tool that is used to preview, configure, and manage cloud infrastructure and resources in a secure and efficient manner. Terraform works in a similar manner to ROS. Terraform calls API operations by interpreting templates. For more information, see What is Terraform?

  • You can use Terraform to call the API operations of Anti-DDoS Proxy. The following table describes the resource types that are supported.

    Type

    Item

    Description

    Type

    Item

    Description

    Resources

    alicloud_ddoscoo_domain_resource

    Creates a forwarding rule for a website.

    alicloud_ddoscoo_instance

    Creates an Anti-DDoS Proxy instance.

    alicloud_ddoscoo_port

    Creates a port forwarding rule.

    alicloud_ddoscoo_scheduler_rule

    Creates a scheduling rule of Sec-Traffic Manager.

    Data Sources

    alicloud_ddoscoo_domain_resources

    This data source provides the Ddoscoo Domain Resources of the current Alibaba Cloud account.

    alicloud_ddoscoo_instances

    This data source provides the BGP-Line Anti-DDoS Pro (DdosCoo) instances of the current Alibaba Cloud account.

    alicloud_ddoscoo_ports

    This data source provides the Ddoscoo Ports of the current Alibaba Cloud account.

Custom API encapsulation

To make native HTTP calls, you must construct custom requests and sign the requests. For more information about the signature mechanism, see List of operations by function and Request syntax and signature method V3.

Usage notes

  • The number of queries per second (QPS) that an Alibaba Cloud account can initiate varies based on the API operation. For more information, see the "QPS limits" section in the API reference of each operation.

    Note

    The RAM users of an Alibaba Cloud account share the QPS quota of the Alibaba Cloud account.

  • If an error is returned after you call an API operation, you can check whether the request parameters and their values are valid based on the error code. For more information, see Public error codes.

  • You can also perform self-service diagnostics based on the returned request ID or SDK error information on the OpenAPI problem diagnosis page.

  • On this page (1, T)
  • Overview of OpenAPI Explorer
  • API versions
  • Online debugging
  • Endpoints
  • Supported identities
  • References
  • Integration methods
  • Alibaba Cloud SDKs
  • Alibaba Cloud CLI
  • ROS
  • Terraform
  • Custom API encapsulation
  • Usage notes
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare