获取层的版本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /2021-04-06/layers/{layerName}/versions/{version}
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
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**** |
返回参数
示例
正常返回示例
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"
]
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2021-06-29 | OpenAPI 入参发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2021-06-29 | OpenAPI 入参发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2021-06-29 | OpenAPI 入参发生变更 | 看变更集 | ||||||||||||||
|