All Products
Search
Document Center

ApsaraDB for Redis:ApsaraDB for Redis API

Last Updated:Aug 21, 2023

This topic describes the basic information about and usage notes of the ApsaraDB for Redis API.

Basic information

Version description

Version

Description

2015-01-01

Recommended.

Endpoint description

You must select an endpoint based on the region of your instance to reduce the latency.

For example, if your instance resides in the China (Zhangjiakou) region and is deployed in a virtual private cloud (VPC), specify r-kvstore-vpc.cn-zhangjiakou.aliyuncs.com as the endpoint. For more information, see Endpoints.

Format

Remote procedure call (RPC) API

Call methods

Method

Supported

Description

Alibaba Cloud SDK (recommended)

Yes

For information about the programming languages supported by Tair SDKs and the methods to install dependencies, see ApsaraDB for Redis SDKs.

Alibaba Cloud CLI

Yes

None

Resource Orchestration Service (ROS)

Yes

None

Terraform

Yes

None

If the preceding methods cannot meet your business requirements, you can encapsulate the API requests. However, this method is not recommended. For more information, see Custom encapsulation.

Usage notes

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

You can also use the Alibaba Cloud OpenAPI Diagnostics platform to perform self-service diagnostics based on the returned request ID or SDK error information.