Retrieves the list of ER build tasks.
Try it now
Test
RAM authorization
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RoutineName |
string |
No |
The ER name. |
test-routine |
| Status |
string |
No |
The status of the build task. Valid values:
|
canceled |
| SortBy |
string |
No |
The field used for sorting. By default, results are sorted by purchase time. Valid values:
|
CreateTime |
| SortOrder |
string |
No |
The sort order. Default value: desc. Valid values:
|
asc |
| PageSize |
integer |
No |
The number of entries per page for a paged query. Valid values: 1 to 500. |
500 |
| PageIndex |
integer |
No |
The page number for a paged query. The value must be greater than or equal to 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
ET5BF670-09D5-4D0B-BEBY-D96A2A528000 |
| TotalCount |
integer |
The total number of entries. |
100 |
| TotalPage |
integer |
The total number of pages. |
10 |
| PageSize |
integer |
The number of entries per page. |
10 |
| Data |
array<object> |
The list of ER build tasks. |
|
|
array<object> |
The ER build task information. |
||
| AssetsDirectory |
string |
The static assets directory. |
/root/usr |
| Branch |
string |
The branch used for the build. |
dev |
| BuildCommand |
string |
The build command. |
npm run build |
| CommitId |
string |
The ID of the commit. |
c08057f590f8d5be56fcae1e082128254a708f94 |
| CommitMessage |
string |
The commit message. |
Add static files. |
| EnvironmentVariables |
object |
The environment variables. |
|
|
string |
The environment variables. |
{"NODE_ENV": "development"} |
|
| RoutineEntry |
string |
The ER entry file path. |
/home |
| RoutineName |
string |
The ER name. |
test-routine |
| GitAccountId |
integer |
The Git account ID. |
162124764031208 |
| CreateTime |
string |
The creation time, in the ISO 8601 format in UTC. The format is yyyy-MM-ddTHH:mm:ssZ. |
2026-03-26T02:19:34Z |
| UpdateTime |
string |
The modification time, in the ISO 8601 format in UTC. The format is yyyy-MM-ddTHH:mm:ssZ. |
2026-06-20T00:44:23Z |
| RoutineBuildId |
integer |
The ER build task ID. |
4133325046294912 |
| IsPrivate |
boolean |
Indicates whether the repository is private. Valid values:
|
false |
| NodeVersion |
string |
The Node.js version. Valid values: |
22.x |
| PipelineId |
integer |
The Yunxiao pipeline ID. |
3850166 |
| PipelineRunId |
integer |
The Yunxiao build task ID. |
70 |
| ProductionBranch |
string |
The production branch name. |
main |
| Repository |
string |
The repository name. |
rwa-test |
| RootDirectory |
string |
The root directory. |
/root/admin |
| Status |
string |
The status of the build task. Valid values:
|
succeed |
| TemplateName |
string |
The template name. |
test |
| UserId |
integer |
The user ID. |
1427812834792318 |
| GitAccountName |
string |
The Git account name. |
rwa |
| InstallCommand |
string |
The install command. |
npm install |
| PageIndex |
integer |
The page number, which is the same as the PageIndex request parameter. |
1 |
Examples
Success response
JSON format
{
"RequestId": "ET5BF670-09D5-4D0B-BEBY-D96A2A528000",
"TotalCount": 100,
"TotalPage": 10,
"PageSize": 10,
"Data": [
{
"AssetsDirectory": "/root/usr",
"Branch": "dev",
"BuildCommand": "npm run build",
"CommitId": "c08057f590f8d5be56fcae1e082128254a708f94",
"CommitMessage": "Add static files.",
"EnvironmentVariables": {
"key": "{\"NODE_ENV\": \"development\"}"
},
"RoutineEntry": "/home",
"RoutineName": "test-routine",
"GitAccountId": 162124764031208,
"CreateTime": "2026-03-26T02:19:34Z",
"UpdateTime": "2026-06-20T00:44:23Z",
"RoutineBuildId": 4133325046294912,
"IsPrivate": false,
"NodeVersion": "22.x",
"PipelineId": 3850166,
"PipelineRunId": 70,
"ProductionBranch": "main",
"Repository": "rwa-test",
"RootDirectory": "/root/admin",
"Status": "succeed",
"TemplateName": "test",
"UserId": 1427812834792318,
"GitAccountName": "rwa",
"InstallCommand": "npm install"
}
],
"PageIndex": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidRoutineBuildTaskStatus | Routine build configuration state that does not exist. | Routine build configuration state that does not exist. |
| 400 | RoutineInstanceNotExist | The Routine instance does not exist. | The Routine instance does not exist. |
| 400 | RoutineNotExist | Routine does not exist. | Routine does not exist. |
| 400 | ERBuildTask.NotExist | The ER build task does not exist or does not match the user, please check that it is correct and try again. | The ER build task does not exist or does not match the user, please check that it is correct and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.