Mengambil daftar versi layer.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListLayerVersions |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/layers/{layerName}/versions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| layerName |
string |
Yes |
Nama layer. Anda hanya dapat mengkueri versi layer kustom. Anda tidak dapat mengkueri versi layer publik resmi. |
MyLayer |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| startVersion |
integer |
No |
Versi awal layer. |
1 |
| limit |
integer |
No |
Jumlah maksimum resource yang akan dikembalikan. Nilai default: 20. Nilai tidak boleh melebihi 100. Jumlah konfigurasi yang dikembalikan kurang dari atau sama dengan jumlah yang ditentukan. |
20 |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Waktu saat operasi dipanggil. Formatnya adalah EEE,d MMM yyyy HH:mm:ss GMT. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
ID jejak permintaan untuk API Function Compute. |
rid281s****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data struct returned. |
||
| layers |
array |
The list of layer versions. |
|
| Layer |
The details of the layer. |
None |
|
| nextVersion |
integer |
The initial version of the layer for the next query. |
21 |
Contoh
Respons sukses
JSONformat
{
"layers": [
{
"layerName": "MyLayer",
"version": 1,
"description": "the first layer",
"code": {
"repositoryType": "OSS",
"location": "https://xyz.oss-cnxxx.aliyuncs.com/xxx/xxx/xxx"
},
"codeSize": 421,
"codeChecksum": "2825179536350****",
"createTime": "2022-01-01T11:08:00Z",
"acl": 0,
"arn": "xxxxxxxx#Layer-name#1",
"arnV2": "acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1",
"license": "MIT",
"compatibleRuntime": [
"python3"
]
}
],
"nextVersion": 21
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.