Alibaba Cloud Server Load Balancer (SLB) allows you to call API operations by sending URL-based HTTP or HTTPS requests. You must include request parameters in URLs. This topic describes the syntax of HTTP or HTTPS GET requests. This topic also provides an example of a request and the endpoint of the SLB API.

Example

SLB API operations use the Remote Procedure Call (RPC) protocol. Requests are created based on the following syntax:
http://Endpoint/?Action=xx&Parameters
where:
  • Endpoint: the endpoint of the SLB API. Set the value to slb.aliyuncs.com. You can call the DescribeRegions operation to obtain the endpoint that corresponds to a specified region.
  • Action: the operation that you want to perform. For example, you can perform the DescribeLoadBalancers operation to query SLB instances.
  • Version: the version of the API that you want to use. The current SLB API version is 2014-05-15.
  • Parameters: the request parameters for the operation. Separate parameters with ampersands (&).

    Request parameters include common request parameters and request parameters of specific operations. Common parameters include the version of the API and information about authentication. For more information, see Common parameters.

The following example shows how to call the DescribeLoadBalancers operation to query SLB instances.
Note To improve readability, the examples in this topic are formatted.
https://slb.aliyuncs.com/?Action=DescribeLoadBalancers
&Format=xml
&Version=2014-05-15
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&TimeStamp=2020-06-01T12:00:00Z
...