This topic describes how to make API requests and is intended for users who initiate HTTP or HTTPS GET requests by calling API operations based on URLs.
ROS API operations are called by sending HTTP or HTTPS requests to the ROS API endpoint. The request URL consists of multiple parameters with a fixed Request syntax. The URL consists of Common parameters, your signature (see Request signatures) and parameters of a specific API. Unencoded sample URL requests for every operation are provided for your reference. You must encode your URL before submitting a request. After the authentication process is complete based on your signature, the results are returned to you. Response parameters are displayed if the call is successful, and an error message is displayed if the call fails. You can troubleshoot issues based on the common error codes and API operation-specific error codes.
The endpoint of the ROS API is ros.aliyuncs.com.
You can send requests over HTTP or HTTPS. We recommend that you send requests over HTTPS to enhance security.
You can call ROS API operations by sending HTTP or HTTPS GET requests based on URLs. Each URL must include request parameters. This topic explains the structure of HTTP or HTTPS GET requests and provides the endpoint of ROS.
The following example demonstrates an unencoded URL request to call the ListStacks operation:
http(s)://ros.aliyuncs.com/? Action=ListStacks &RegionId=cn-hangzhou &<Common request parameters>
http(s)specifies the protocol used for the request.
ros.aliyuncs.comspecifies the endpoint of ROS.
Action=ListStacksspecifies the operation to be called.
RegionId=cn-hangzhouis specific to ListStacks.
<Common request parameters>are common parameters defined in the system.
The request and response are encoded in UTF-8.