Function Compute provides two API versions. The two versions are incompatible with each other. This topic describes the differences between the two API versions. Information in this topic can help you smoothly upgrade from the earlier API version to the latest.
API versions
Function Compute provides the following two API versions.
API version | Description |
2021-04-06 | The latest version. For more information about how to use SDKs to call API operations of this version, see SDK reference (2021-04-16, recommended). |
2016-08-15 | The earlier version. For more information about how to use SDKs to call API operations of this version, see SDKs. |
Differences between versions
Item | Version 2016-08-15 | Version 2021-04-06 |
Value of the version parameter in paths Path format: | 2016-08-15 | 2021-04-06 |
Location of the qualifier parameter | Path. Example: | Query string. Example: |
Paths of API operations | The paths of the following API operations are changed:
| The paths of the following API operations are changed:
|
Method of calculating signatures | For more information, see Signature authentication. | For more information, see the Request Signatures section in ROA invocation method. |
Data integrity verification for request bodies | Data integrity is not verified for request bodies. | A signature contains the MD5 value of the request body. SDKs read this value from the Content-MD5 header in the request. SDKs do not generate this value. To meet the requirements for verification of payload integrity, the backend checks whether the Content-MD5 header is empty.
|
Data type of the triggerConfig parameter in trigger-related API operations | Interface. | String. You must encode the data that you want to specify for the triggerConfig parameter into a JSON string and pass the string to the API operations. |