ListTemplates
Lists templates.
Try it now
Test
RAM authorization
Request syntax
GET /pop/2026-05-09/templates HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| teamID |
string |
No |
The unique identifier of the team. |
88a4c762-b0ce-4661-9413-578b2309e60f |
| maxResults |
integer |
No |
The maximum number of results to return. |
10 |
| nextToken |
string |
No |
The pagination token. |
eyJNYXhSZXN1bHRzIjoxMH0= |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
B5AD8B54-4358-5F5B-ACAA-52F2016459C6 |
| code |
string |
The error code. |
200 |
| message |
string |
The response message. |
success |
| templates |
array |
The list of templates. |
|
| PublicTemplate |
The template information. |
||
| nextToken |
string |
The next page token. |
eyJNYXhSZXN1bHRzIjoxMH0= |
| maxResults |
integer |
The maximum number of results to return. |
10 |
Examples
Success response
JSON format
{
"requestId": "B5AD8B54-4358-5F5B-ACAA-52F2016459C6",
"code": "200",
"message": "success",
"templates": [
{
"createdTime": "2026-08-28T12:00:00.000Z",
"name": "my-template",
"resourceGroupID": "rg-acfmz7h4ocksp5y",
"runtimeConfig": {
"cpu": 1,
"diskSize": 10240,
"internetAccess": false,
"logConfig": {
"logstore": "my-logstore",
"project": "my-sls-project"
},
"memorySize": 2048,
"sandboxConfig": {
"acrInstanceId": "cri-abcd1234efgh",
"generation": 2,
"image": "registry.cn-hangzhou.aliyuncs.com/demo/nginx:latest",
"osType": "linux",
"readyCommand": "curl -sf http://127.0.0.1:8080/healthz",
"registryConfig": {
"networkConfig": {
"securityGroupId": "sg-bp1gx7yj8ud5mabcde",
"vSwitchId": "vsw-bp1s5fnlk4jl2abcde",
"vpcId": "vpc-bp1mwrqm3wkq7abcde"
}
},
"startCommand": "sleep infinity",
"steps": [
{
"args": [
"ls"
],
"type": "RUN"
}
]
},
"vpcConfig": {
"role": "AliyunFCSandboxDefaultRole",
"securityGroupId": "sg-bp1gx7yj8ud5mabcde",
"vSwitchIds": [
"vsw-bp1s5fnlk4jl2abcde"
],
"vpcId": "vpc-bp1mwrqm3wkq7abcde"
}
},
"status": {
"finishedAt": "2026-08-28T12:00:00.000Z",
"reason": {
"message": "pull image failed: timeout",
"step": "build"
},
"state": "ready"
},
"teamID": "70d1c834-0383-58d8-97ac-5336eb91abcd",
"teamName": "my-team",
"templateID": "w0aipmi0rvn5xqdnsihg"
}
],
"nextToken": "eyJNYXhSZXN1bHRzIjoxMH0=",
"maxResults": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.