Common parameters consist of common request parameters and common response parameters.
Common request parameters
The following table describes common request parameters that can be used when you call ECS API operations by sending GET requests over URLs.
Parameter | Type | Required | Description |
---|---|---|---|
Action | String | Yes | The operation that you want to perform. For more information about the parameter values, see List of API operations by function. |
AccessKeyId | String | Yes | The AccessKey ID provided to you by Alibaba Cloud. AccessKey pairs are used to call API operations. Usernames and passwords are used to log on to the ECS console. |
Signature | String | Yes | The signature string of the current request. For more information about how signatures are calculated, see Digital signature. |
SignatureMethod | String | Yes | The encryption method of the signature string. Set the value to HMAC-SHA1. |
SignatureVersion | String | Yes | The version of the signature encryption algorithm. Set the value to 1.0. |
SignatureNonce | String | Yes | A unique, random number used to prevent replay attacks. You must use different numbers for different requests. |
Timestamp | String | Yes | The timestamp of the request. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Example: 2018-01-01T12:00:00Z . |
Version | String | Yes | The version number of the API. The value must be in the YYYY-MM-DD format. Set the value to 2014-05-26. |
Format | String | No | The format in which to return the response. Valid values:
|
Sample requests
Note The following content provides only sample values. Perform URL encoding in your actual operation. For more information, see
Digital signature.
https://ecs.aliyuncs.com/?Action=<API Name>
&Format=xml
&Version=2014-05-26
&Signature=Pc5WB8gokVn0xfeu%2FZV%2BiNM1dgI%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&Timestamp=2018-01-01T12:00:00Z
...
Common response parameters
Parameter | Type | Description |
---|---|---|
RequestId | String | The ID of the request. This parameter is returned regardless of whether the operation is successful. |