ApsaraDB for Redis provides a variety of API operations. You can call them by using OpenAPI Explorer, writing code, or running commands. The API operations facilitate the management of cloud resources. If you use the ApsaraDB for Redis API together with the APIs of other services, you can implement more complex features.
The API described in this topic is used only to manage ApsaraDB for Redis instances. To perform read and write operations on the data of an instance, use the commands that are provided by Redis. For more information, see Overview.
What is API?
API is short for Application Programming Interface. The ApsaraDB for Redis API consists of API operations that allow you to manage cloud resources. API operations are easy to use so that you can get started without the need to access and understand the source code or internal logic. For more information about the API operations that are supported by ApsaraDB for Redis, see List of operations by function.
Request syntax and responses
|Request structure||The ApsaraDB for Redis API allows you to send HTTP or HTTPS GET requests by using URLs. You must add parameters to a request based on the operation description. After you send the request, ApsaraDB for Redis returns a response.|
|Responses||Responses can be returned in the XML or JSON format. You can specify the response format in the request. The default response format is XML.|
|Usage notes for Alibaba Cloud SDK for Java||Alibaba Cloud provides Alibaba Cloud SDKs for multiple programming languages, such as Java and Python. You can use the SDKs to call API operations without the need to write complex code, calculate complex signatures, and set common parameters.||
|Use Alibaba Cloud CLI to call API operations||Alibaba Cloud CLI is an open source tool that is developed based on Alibaba Cloud SDK for Go. You can use this tool to interact with Alibaba Cloud services and manage your Alibaba Cloud resources.||
If an error is returned after you call an API operation, you must check whether request parameters and their values are valid based on the returned error code. For more information, visit the API Error Center.