Queries the code package of a function.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /2021-04-06/services/{serviceName}/functions/{functionName}/code
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
serviceName | string | Yes | The name of the service. | demoService |
functionName | string | Yes | The name of the function. | demoFunction |
qualifier | string | No | The version or alias of the service. | demoQualifier |
X-Fc-Account-Id | string | No | The ID of your Alibaba Cloud account. | 188077086902**** |
X-Fc-Date | string | No | The time on which the function is invoked. The format of the value is: EEE,d MMM yyyy HH:mm:ss GMT. | Wed, 11 May 2022 09:00:00 GMT |
X-Fc-Trace-Id | string | No | The custom request ID. | rid281s****** |
Response parameters
Examples
Sample success responses
JSON
format
{
"checksum": "1234567890",
"url": "http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2021-06-29 | The request parameters of the API has changed | see changesets | ||||||||||||||
| ||||||||||||||||
2021-06-29 | The request parameters of the API has changed | see changesets | ||||||||||||||
| ||||||||||||||||
2021-06-29 | The request parameters of the API has changed | see changesets | ||||||||||||||
|