Lists layers.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListLayers |
list |
*All Resource
|
None | None |
Request syntax
GET /2023-03-30/layers HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| prefix |
string |
No |
The prefix of the layer name. |
my-layer |
| nextToken |
string |
No |
The token that marks the start of the next page of results. |
MTIzNCNhYmM= |
| limit |
integer |
No |
The number of layers to return. |
10 |
| public |
string |
No |
Specifies whether the layer is public. Valid values: true and false. |
true |
| official |
string |
No |
Specifies whether the layer is an official layer. Valid values: true and false. |
true |
Response elements
|
Element |
Type |
Description |
Example |
| ListLayersOutput |
The list of layers. |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.