The Message Queue for Apache RocketMQ API allows you to make API requests by using HTTP, SDKs, and OpenAPI Explorer.
Call API operations by using HTTP
Message Queue for Apache RocketMQ API operations use the RPC protocol. You can call Message Queue for Apache RocketMQ API operations by sending HTTP GET requests.
- Endpoint: the endpoint of the Message Queue for Apache RocketMQ API is ons.[regionId].aliyuncs.com. For more information about [ regionId], see Endpoints.
- Action: the name of the operation being performed. For example, to apply for a token, you must set the Action parameter to ApplyToken.
- Version: the version of the API. For example, the version of the Message Queue for Apache RocketMQ API is 2019-02-14.
- Parameters: the request parameters for the operation. Separate multiple parameters with ampersands (&).
Request parameters include both common parameters and operation-specific parameters. Common request parameters include the API version and authentication-related parameters. For more information, see Common parameters.
Call API operations by using SDKs
The Message Queue for Apache RocketMQ API supports SDKs for multiple programming languages. The SDKs automatically sign requests for you. For more information, see Obtain an SDK.
Call API operations by using OpenAPI Explorer
OpenAPI Explorer is a visual tool for calling APIs. You can use OpenAPI Explorer to call APIs of Alibaba Cloud services and APIs provided in Alibaba Cloud Marketplace. You can call these APIs on a web page or command-line interface (CLI). In addition, you can use OpenAPI Explorer to view the request and response of each API call and dynamically generate SDK sample code.
You can call API operations by directly accessing OpenAPI Explorer or using debugging features in the API documentation.