Last updated: 2019-07-09 18:58:17PDF
If your business is deployed in another Cloud or in your local server and is open with HTTP, select the HTTP integration for the backend.
To integrate HTTP, you must select HTTP or HTTPS for Backend Type.
Enter the backend address, which starts with
https://and does not include the path behind, such as
Enter the backend path starting with /, such as
Select the request method. The request methods for the frontend and the backend can be different.
Set the backend timeout.
Set the backend parameters that map the frontend.
API Gateway backend integrates CLB resources in a VPC
When you want to integrate the backend with CLB in a VPC, the frontend configuration is the same as other API configuration methods, and the backend configuration method is as follows:
In the backend configuration, select the VPC to be integrated.
Select CLB in the VPC. API Gateway only supports integrating CLB in a VPC. Other cloud resources in the VPC will be supported soon.
https://vip+portat the backend address. The requests we send to CLB will be HTTP requests or HTTPS requests depending on the content you entered. The VIP is that of CLB, which can be found in the basic information of application-based private network CLB.
Select a listening type.
If you select the CLB listening type of HTTP/HTTPS, you must configure the backend path as the path configured in the CLB listener.
The following figure shows the domain name and path configured in the CLB listener:
The following shows the backend path in API Gateway, which must be consistent with that in CLB.
You also need to configure the parameter host as the constant parameter and place it in the header. The parameter value is the domain name configured in the CLB listener.
If you select the CLB listening type of TCP/UDP, you must configure the backend path as the path required by the business in the CVM mounted on the CLB.
If you configure the host verification in the CVM, you need to configure the parameter host as the constant parameter, and select the address to place parameter according to your own business, just like using a layer-7 listener.
The subsequent configurations are the same as other API configurations.
When the backend integrates CLB, security groups on the CVM mounted to the backend should be open to the IP address ranges of 100.64.0.0/10 and 220.127.116.11/8.
Mock will return a response with fixed configurations for an API request. Mock is generally used for development test. It can complete the API configuration in advance and return responses when the backend service is not completely developed. When integrating MOCK, you only need to configure the returned data, and click Finish.