Integration overview
Cloud Firewall 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
Cloud Firewall supports online debugging of the API of the 2017-12-07 version. 2017-12-07 is an API version number rather than a date. Users are provided with the latest public information about the API. 2017-12-07 is the up-to-date version of the Cloud Firewall API. For more information, see API version.
Version | Description |
Recommended |
Online debugging
Cloud Firewall provides API debugging in OpenAPI Explorer. Before you call an API operation, you must obtain the API information from Cloud Firewall, such as versions, endpoints, and parameters.
Debugging page: https://api.aliyun.com/api/Cloudfw/2017-12-07.
On the debugging page, use the API navigation pane on the left to select an API operation by category, such as DescribeNatFirewallList. In the center panel, you can configure the request by filling in parameters like Service Address, Lang, ProxyId, ProxyName, RegionNo, VpcId, NatGatewayId, and Status. Click Initiate Call to send the request. The panel on the right displays documentation, call results, SDK examples, and error codes.
Endpoints
You must select an endpoint based on the region where your resource resides to reduce latency. For example, the public endpoint of Cloud Firewall in the China (Hangzhou) region is cloudfw.aliyuncs.com and the virtual private cloud (VPC) endpoint is cloudfw.vpc-proxy.aliyuncs.com.
Public endpoints can be accessed globally.
However, VPC endpoints can be accessed only 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.
Identities
When you log on to OpenAPI Explorer with your Alibaba Cloud account, your account is used for online debugging by default. Using an Alibaba Cloud account, which has full permissions for all API operations, poses a significant security risk. We strongly recommend that you create and use a RAM user for API access or routine O&M. Before calling API operations, grant the RAM user permissions based on your business needs. A RAM user must have the required permissions. For more information, see Access control with RAM.
Identity | Supported |
Yes | |
RAM user (recommended) | Yes |
RAM role (recommended) | Yes |
References
Integration methods
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 |
Yes | |
Yes | |
Partially supported | |
Partially supported | |
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 into 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 the Cloud Firewall SDK to call API operations. For information about supported languages and how to install dependencies, see Cloud Firewall SDK.
Alibaba Cloud CLI
You can run
aliyuncommands 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 Cloud Firewall. 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, and the dependencies between the resources. ROS automatically creates and configures all 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 Cloud Firewall. The following table describes the resource types that are supported.
Resource
Description
Creates an address book for access control. The following address book types are supported: IP address books, ECS tag-based address books, port address books, and domain address books. An ECS tag-based address book includes the public IP addresses of the ECS instances that have specific tags.
Creates an access control policy.
Creates an access control policy in a specific policy group for a VPC firewall.
Activates Cloud Firewall.
Enable all firewalls.
Enables firewalls for specific assets.
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 way as ROS. Terraform calls API operations by interpreting templates. For more information, see What is Terraform?
-
You can use Terraform to orchestrate and manage Cloud Firewall. Only some standard resources and data sources are supported. For more information, see Cloud Firewall Terraform resources and data sources.
For more information about how to use Terraform to orchestrate Cloud Firewall resources, see Overview.
Custom API encapsulation
To make native HTTP calls, you must create 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.
Precautions
The number of queries per second (QPS) that an Alibaba Cloud account can initiate varies based on API operations. For more information, see the "QPS limits" section in the API reference of each operation.
NoteAll RAM users that belong to an Alibaba Cloud account share the QPS quota of the Alibaba Cloud account.
-
If an API call fails, use the returned error code to verify your request parameters. For more information, see Error codes.
-
You can record the returned RequestID or the SDK error message and then run self-service diagnostics in Alibaba Cloud OpenAPI Diagnostics.