Mengkueri paket kode fungsi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetFunctionCode |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/services/{serviceName}/functions/{functionName}/code HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
Nama layanan. |
demoService |
| functionName |
string |
Yes |
Nama fungsi. |
demoFunction |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
Versi atau alias layanan. |
demoQualifier |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Pengatur waktu saat fungsi dipanggil. Format nilainya adalah: EEE,d MMM yyyy HH:mm:ss GMT. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
ID permintaan kustom. |
rid281s****** |
Elemen respons
|
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 |
Contoh
Respons sukses
JSONformat
{
"checksum": "1234567890",
"url": "http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.