Every Function Compute API request and response includes a set of common parameters. The tables below list the required headers and fields for all requests, and the headers returned in all responses.
Common request parameters
| Parameter | Type | Position | Required | Example | Description |
|---|
| Host | String | Header | Yes | 188077086902****.cn-hangzhou.fc.aliyuncs.com | The endpoint used to access Function Compute. For more information, see Endpoints. |
| Date | String | Header | Yes | Mon, 09 Nov 2020 09:46:33 GMT | The time of the request, in UTC. |
| Authorization | String | Header | Yes | FC LTAI****************:HeAE**************** | The signature used for authentication. The value contains two parts: LTAI**************** is the AccessKey ID of your Alibaba Cloud account or RAM user, and HeAE**************** is the signature you generated. For more information, see Signature authentication. |
| Content-Type | String | Header | Yes | application/json; charset=utf-8 | The media type of the request body. Valid values: application/json and application/octet-stream for InvokeFunction requests; application/json only for all other requests. |
| Content-Length | Integer | Header | Yes | 100 | The length of the request body. |
| Content-MD5 | String | Header | Yes | jT96eZsQ7fmirAZWrC87Lw== | The MD5 value of the request body. |
| requestId | String | Data | Yes | 85e24a19-a136-476f-a6ab-96b45157**** | The request ID. |
| version | String | Path | Yes | 2016-08-15 | The API version. |
Common response parameters
| Parameter | Type | Position | Example | Description |
|---|
| X-Fc-Request-Id | String | Header | 7c43576b-48b1-4c3a-86e5-dcb01872**** | The request ID, which you can use for troubleshooting. |
| Date | String | Header | Mon, 09 Nov 2020 09:46:33 GMT | The time of the response, in UTC. |
| Content-Type | String | Header | application/json; charset=utf-8 | The media type of the response body. Valid values: application/json and application/octet-stream for InvokeFunction responses; application/json only for all other responses. |
| Content-Length | Integer | Header | 100 | The length of the response body. |