Request Structure

Last updated: 2019-09-09 12:20:51

1. Service Address

The API supports access from either the local region (at redis.tencentcloudapi.com) or a specified region (at redis.ap-guangzhou.tencentcloudapi.com for Guangzhou, for example).

It is recommended to use the domain name for local access. Based on the location of the client when calling the API, the request will be automatically resolved to the server in the nearest region. For example, if a request is initiated in Guangzhou, it will be automatically resolved to the server in Guangzhou, and the effect is the same as that when specifying redis.ap-guangzhou.tencentcloudapi.com.

Note: For latency-sensitive businesses, it is recommended to specify a domain name with region.

Below lists the currently supported regions:

Access region Domain name
Local access (recommended, only for non-financial availability zones) redis.tencentcloudapi.com
South China (Guangzhou) redis.ap-guangzhou.tencentcloudapi.com
East China (Shanghai) redis.ap-shanghai.tencentcloudapi.com
North China (Beijing) redis.ap-beijing.tencentcloudapi.com
Southwest China (Chengdu) redis.ap-chengdu.tencentcloudapi.com
Southwest China (Chongqing) redis.ap-chongqing.tencentcloudapi.com
Southeast Asia (Hong Kong, China) redis.ap-hongkong.tencentcloudapi.com
Southeast Asia (Singapore) redis.ap-singapore.tencentcloudapi.com
Asia Pacific (Bangkok) redis.ap-bangkok.tencentcloudapi.com
Asia Pacific (Mumbai) redis.ap-mumbai.tencentcloudapi.com
Asia Pacific (Seoul) redis.ap-seoul.tencentcloudapi.com
Asia Pacific (Tokyo) redis.ap-tokyo.tencentcloudapi.com
Eastern America (Virginia) redis.na-ashburn.tencentcloudapi.com
Western America (Silicon Valley) redis.na-siliconvalley.tencentcloudapi.com
North America (Toronto) redis.na-toronto.tencentcloudapi.com
Europe (Frankfurt) redis.eu-frankfurt.tencentcloudapi.com
Europe (Moscow) redis.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.

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

2. Communications Protocol

All the TencentCloud 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.