获取层列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
fc:ListLayers |
list |
*全部资源
|
无 | 无 |
请求语法
GET /2023-03-30/layers HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| prefix |
string |
否 |
层名称前缀 |
my-layer |
| nextToken |
string |
否 |
分页起始标记 |
MTIzNCNhYmM= |
| limit |
integer |
否 |
返回的层数量 |
10 |
| public |
string |
否 |
是否公开层。true 或者 false。 |
true |
| official |
string |
否 |
是否官方层。true 或者 false。 |
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
| ListLayersOutput |
层列表 |
示例
正常返回示例
JSON格式
{
"layers": [
{
"acl": "0",
"code": {
"location": "https://xyz.oss-cn-shanghai.aliyuncs.com/xxx/xxx/xxx",
"repositoryType": "OSS"
},
"codeChecksum": "2825179536350****",
"codeSize": 421,
"compatibleRuntime": [
"python3.10"
],
"createTime": "2023-03-30T11:08:00Z",
"description": "My first layer",
"layerName": "MyLayer",
"layerVersionArn": "acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1",
"license": "Apache",
"version": 1
}
],
"nextToken": "next-layer-name"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?