You can manage Server Load Balancer (SLB) by calling API operations. This topic describes the basic information about the SLB API, including the versions, API endpoint, API style, and call method.
API versions
OpenAPI Explorer uses versions to manage the API operations of cloud services that are made available in different periods. For example, Application Load Balancer (ALB) supports API operations of the 2020-06-16 version, in which 2020-06-16 represents the API version instead of a time. The version provides all latest API operations.
Version number | Description |
Version number | Description |
We recommend that you use the ALB API of this version. | |
We recommend that you use the Network Load Balancer (NLB) API of this version. | |
We recommend that you use the Gateway Load Balancer (GWLB) API of this version. | |
We recommend that you use the Classic Load Balancer (CLB) API of this version. |
API endpoints
An endpoint provides access to the corresponding Alibaba Cloud service. An Alibaba Cloud service supports both public endpoints and virtual private cloud (VPC) endpoints. Public endpoints are globally accessible whereas VPC endpoints are accessible only within the specified VPC. An endpoint is a URL that specifies information about the service, such as the access protocol, hostname, port, and path. Clients can use the information to access the service. For more information, see ALB endpoints, NLB endpoints, GWLB endpoints, and CLB endpoints.
User identities
User identity | Supported |
User identity | Supported |
Alibaba Cloud account | Yes |
Resource Access Management (RAM) user (recommended) | Yes |
RAM role (recommended) | Yes |
We recommend that you use a RAM user or a RAM role to call API operations. Before doing so, you must grant the required permissions to the RAM user or the RAM role. For more information about identities, see Identities, credentials, and authorization.
API style
The API operations of SLB are called in the remote procedure call (RPC) style. For more information, see API styles.
Call methods
Call method | Supported | Remarks |
Call method | Supported | Remarks |
Alibaba Cloud SDKs (recommended) | Yes | For more information about the supported SDK languages and installation methods, see ALB SDK, NLB SDK, GWLB SDK, and CLB SDK. |
Alibaba Cloud CLI | Yes | None. |
Supported by ALB, NLB, and CLB | None. | |
Supported by ALB, NLB, and CLB | None. | |
Native HTTP | Yes | If SDKs cannot meet your business requirements, you can encapsulate HTTP requests. For more information, see Request syntax and signature method. |