获取层的版本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
fc:GetLayerVersion |
get |
*全部资源
|
无 | 无 |
请求语法
GET /2021-04-06/layers/{layerName}/versions/{version} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| layerName |
string |
是 |
层的名称。 |
MyLayer |
| version |
string |
是 |
层的版本。 |
1 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| X-Fc-Account-Id |
string |
否 |
您的阿里云账号(主账号)ID。 |
188077086902**** |
| X-Fc-Date |
string |
否 |
函数的调用开始日期,格式为EEE,d MMM yyyy HH:mm:ss GMT。 |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
否 |
请求的调用链 ID。 |
asdf**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
| Layer |
层的详细信息。 |
无 |
示例
正常返回示例
JSON格式
{
"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"
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。