You can call the Serverless App Engine (SAE) API to perform operations by using HTTP request methods, SDKs, and OpenAPI Explorer.

Call API operations by using HTTP request methods

You can call SAE API operations by sending HTTP or HTTPS requests. To ensure data security, we recommend that you send requests over HTTPS. The following request syntax is used:

HTTPMethod /resource_URI_parameters
RequestHeader
RequestBody
where,
  • Endpoint: the endpoint of the SAE API. Set the value to sae.[regionId].aliyuncs.com. For more information about the regionld parameter, see Endpoints.
  • HTTPMethod: the HTTP request method. Examples: PUT, POST, GET, and DELETE.
  • resource_URI_parameters: the identifier of the resource that you want to access. Example: /cluster.
  • RequestHeader: the request header. In most cases, a request header includes the API version number, hostname, and authentication information. For more information, see Common request parameters and common response parameters.

    Request parameters contain common request parameters and operation-specific parameters. The common request parameters contain information such as the API version number and authentication information.

  • RequestBody: the prarameters in the request body.
Example:
GET /pop/v1/sam/app/describeApplicationConfig HTTP/1.1
Common request headers
Note The request and response are encoded in UTF-8.

Call API operations by using SDKs

The SAE API supports SDKs for multiple programming languages. The SDKs automatically sign requests. For information about how to download SDKs, see Download SDKs.
Important You must set the version of aliyun-java-sdk-core to 4.3.2.

Call API operations by using OpenAPI Explorer

OpenAPI Explorer is a tool that you can use to call API operations in a visualized manner. You can use OpenAPI Explorer to call the APIs of Alibaba Cloud services and the APIs provided in Alibaba Cloud API Marketplace. You can call the APIs on a web page or a command-line interface (CLI). You can also use OpenAPI Explorer to view the request and response parameters of each API call. OpenAPI Explorer dynamically generates the sample code for different SDKs.

You can visit OpenAPI Explorer or click the link in the "Debugging" section of the topic for each SAE API operation to access OpenAPI Explorer.

Endpoints

The endpoint of the SAE API is sae.[regionId].aliyuncs.com. regionld specifies the ID of the region where an SAE instance resides.

The following table describes the regions that are supported by SAE and the corresponding region IDs that are specified by the regionld parameter.

Regionregionld
China (Hong Kong)cn-hongkong
Singaporeap-southeast-1
Indonesia (Jakarta)ap-southeast-5
Japan (Tokyo)ap-northeast-1