Mengkueri versi lapisan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetLayerVersion |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/layers/{layerName}/versions/{version} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| layerName |
string |
Yes |
Nama lapisan. |
MyLayer |
| version |
string |
Yes |
Versi lapisan. |
1 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Waktu saat fungsi dipanggil. Nilai dalam format 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. |
asdf**** |
Elemen respons
|
Element |
Type |
Description |
Example |
| Layer |
The details of the layer. |
无 |
Contoh
Respons sukses
JSONformat
{
"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"
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.