Queries the code package of a function.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetFunctionCode |
get |
*All Resource
|
None | None |
Request syntax
GET /2021-04-06/services/{serviceName}/functions/{functionName}/code HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
The name of the service. |
demoService |
| functionName |
string |
Yes |
The name of the function. |
demoFunction |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| 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 elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| checksum |
string |
The CRC-64 value of the function code package. |
1234567890 |
| url |
string |
The URL of the function code package. |
http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f |
Examples
Success response
JSON format
{
"checksum": "1234567890",
"url": "http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.