Request Structure

Last updated: 2019-11-29 18:07:57

PDF

1. Hosted Regions

You can choose to send API requests from either a nearby region (at cvm.tencentcloudapi.com) or a specified region (for example, go to cvm.ap-guangzhou.tencentcloudapi.com to select Guangzhou as the hosted region).

We recommended that you call the nearest API server.
Your API request will be automatically resolved to a server that is nearest to the client. For example, if you make an API request from Guangzhou, the request will be automatically resolved to the server in Guangzhou that works the same as to include 'guangzhou' in the request (fcvm.ap-guangzhou.tencentcloudapi.com).

*Note: For latency-sensitive businesses, we recommend that you specify the hosted region in the domain name. *

Tencent Cloud currently supports the following hosted regions:

Hosted region Domain name
Nearby hosted region (recommended, only available for non-financial availability zones) cvm.tencentcloudapi.com
South China (Guangzhou) cvm.ap-guangzhou.tencentcloudapi.com
East China (Shanghai) cvm.ap-shanghai.tencentcloudapi.com
North China (Beijing) cvm.ap-beijing.tencentcloudapi.com
Southwest China (Chengdu) cvm.ap-chengdu.tencentcloudapi.com
Southwest China (Chongqing) cvm.ap-chongqing.tencentcloudapi.com
Southeast Asia (Hong Kong, China) cvm.ap-hongkong.tencentcloudapi.com
Southeast Asia (Singapore) cvm.ap-singapore.tencentcloudapi.com
Asia Pacific (Bangkok) cvm.ap-bangkok.tencentcloudapi.com
Asia Pacific (Mumbai) cvm.ap-mumbai.tencentcloudapi.com
Asia Pacific (Seoul) cvm.ap-seoul.tencentcloudapi.com
Asia Pacific (Tokyo) cvm.ap-tokyo.tencentcloudapi.com
Eastern America (Virginia) cvm.na-ashburn.tencentcloudapi.com
Western America (Silicon Valley) cvm.na-siliconvalley.tencentcloudapi.com
North America (Toronto) cvm.na-toronto.tencentcloudapi.com
Europe (Frankfurt) cvm.eu-frankfurt.tencentcloudapi.com
Europe (Moscow) cvm.eu-moscow.tencentcloudapi.com

Note: As financial availability zones and non-financial availability zones are isolated, when accessing the services in a financial availability zone (with the common parameter Region specifying a financial availability zone), it is necessary to specify a domain name with the financial availability zone, preferably in the same region as specified in Region.

Hosted region for financial availability zone Domain name for financial availability zone
East China (Shanghai Financial) cvm.ap-shanghai-fsi.tencentcloudapi.com
South China (Shenzhen Financial) cvm.ap-shenzhen-fsi.tencentcloudapi.com

2. Communications Protocol

All the Tencent Cloud APIs communicate via HTTPS, providing highly secure communications tunnels.

3. Request Method

Supported HTTP request methods:

  • POST (recommended)
  • GET

The Content-Type types supported by POST request:

  • application/json (recommended). The TC3-HMAC-SHA256 signature method must be used.
  • application/x-www-form-urlencoded. The HmacSHA1 or HmacSHA256 signature method must be used.
  • multipart/form-data (only supported by certain APIs). The TC3-HMAC-SHA256 signature method must be used.

The request packet size of a GET request cannot exceed 32 KB. A POST request cannot exceed 1 MB when the HmacSHA1 or HmacSHA256 signature method is used. A POST request can be up to 10 MB when the TC3-HMAC-SHA256 signature method is used.

4. Character Encoding

Only UTF-8 encoding is used.