Mendaftar versi fungsi tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListFunctionVersions |
list |
*全部资源
|
None | None |
Sintaks permintaan
GET /2023-03-30/functions/{functionName}/versions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
Nama fungsi. |
my-func |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| nextToken |
string |
No |
Token yang menandai awal halaman hasil berikutnya. |
MTIzNCNhYmM= |
| direction |
string |
No |
Pesanan pengurutan versi. Nilai valid: BACKWARD dan FORWARD. |
BACKWARD |
| limit |
integer |
No |
Jumlah versi yang akan dikembalikan. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
| ListVersionsOutput |
The list of function versions. |
Contoh
Respons sukses
JSONformat
{
"direction": "FORWARD",
"nextToken": "3",
"versions": [
{
"createdTime": "2006-01-02T15:04:05Z07:00",
"description": "my version",
"lastModifiedTime": "2006-01-02T15:04:05Z07:00",
"versionId": "1"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.