You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Call methods
Request structure
Copy page
Download PDF
Request structure
To call an OpenAPI API, send a request to the specified service endpoint and include the required signature information and API-specific business parameters. The structure of an OpenAPI request is organized as follows. An unencoded URL request for DescribeInstances is used as an example.​
​
Example 1: GET request
Example 2: POST (form) request
​
​
GET /?Action=DescribeInstances&Version=2020-04-01&InstanceIds.1=i-3ti9101aju3vj0****** HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
Service: ecs​
​
​
  • GET and POST indicate request methods. The OpenAPI of ECS supports the following request methods:​
  • GET request.​
  • POST request with parameters submitted via a form.​
  • Action=DescribeInstances specifies the operation to be called, and Version=2020-04-01 specifies the API version.​
  • Host specifies the service endpoint. For more information, see Service address.​
  • Region and Service indicate the region and name of the service. For more information, refer to Common parameters.​
  • HTTP specifies the protocol of the request.​
Communication protocols​
Requests can be sent via either HTTP or HTTPS. We recommend that you use HTTPS for higher security.​
Request methods​
See the specific requirements of each API operation for request methods.​
Warning​
  • The Action and Version parameters in the common parameters must be included in the query string.​
  • For GET requests, all parameters must be URL-encoded.​
Request parameters​
An OpenAPI request consists of two types of parameters: common parameters and API-specific parameters. Common parameters are required for every API call. For more information, see Common parameters. API-specific parameters are unique to each API. See the description of the specific API for details.​
Character encoding​
Requests and responses are encoded using the UTF-8 character set.​
​
Last updated: 2026.06.18 17:48:23