GetTemplate
Queries a template.
Try it now
Test
RAM authorization
Request syntax
GET /pop/2026-05-09/templates/{templateID} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| templateID |
string |
No |
The unique identifier of the template. |
tpl-9f3a2b7c8d1e4f5a6b0c7d8e9f1a2b3c |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| teamID |
string |
No |
The unique identifier of the team. |
88a4c762-b0ce-4661-9413-578b2309e60f |
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 |
| templateID |
string |
The unique identifier of the template. |
tpl-9f3a2b7c8d1e4f5a6b0c7d8e9f1a2b3c |
| name |
string |
The name of the template. |
my-template |
| teamID |
string |
The unique identifier of the team. |
88a4c762-b0ce-4661-9413-578b2309e60f |
| teamName |
string |
The name of the team. |
codeclaw-localenv |
| resourceGroupID |
string |
The ID of the resource group. |
rg-acfmwxqyrgwabcd |
| runtimeConfig | PublicTemplateRuntimeConfig |
The runtime configuration of the template. |
|
| createdTime |
string |
The creation time in RFC 3339 UTC format, such as 2026-08-31T12:00:00Z. |
2026-08-31T12:00:00Z |
| status | PublicTemplateStatus |
The status of the template. |
Examples
Success response
JSON format
{
"requestId": "B5AD8B54-4358-5F5B-ACAA-52F2016459C6",
"code": "200",
"message": "success",
"templateID": "tpl-9f3a2b7c8d1e4f5a6b0c7d8e9f1a2b3c",
"name": "my-template",
"teamID": "88a4c762-b0ce-4661-9413-578b2309e60f",
"teamName": "codeclaw-localenv",
"resourceGroupID": "rg-acfmwxqyrgwabcd",
"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"
}
},
"createdTime": "2026-08-31T12:00:00Z",
"status": {
"finishedAt": "2026-08-28T12:00:00.000Z",
"reason": {
"message": "pull image failed: timeout",
"step": "build"
},
"state": "ready"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.