All Products
Search
Document Center

Function Compute:GetFunctionCode

更新时间:Aug 20, 2025

You can call this operation to view the function code package.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample codes.

Request headers

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

GET /services/{serviceName.qualifier}/functions/{functionName}/code 

Request parameters

Parameter Type Position Required Example Description
serviceName String Path Yes service_name

The name of the service.

functionName String Path Yes function_name

The name of the function.

qualifier String Path No test

The version or alias of the service.

Response parameters

Parameter Type Example Description
checksum String 2825179536350****

The CRC-64 value of the function code package.

url String https://fc-hz-yunqi-func-code.oss-cn-hangzhou.aliyuncs.com/code%2Fc0975637-58d7-***

The OSS path where the function code package is stored.

Examples

Sample requests

GET /2016-08-15/services/service_name.test/functions/function_name/code HTTP/1.1
Common request headers

Sample success responses

JSON format

HTTP/1.1 200 OK
Common response headers
{
  "url": "https://fc-hz-yunqi-func-code.oss-cn-hangzhou.aliyuncs.com/code%2Fc0975637-58d7-***",
  "checksum": "2825179536350****"
}

Error codes

For a list of error codes, visit the API Error Center.