All Products
Search
Document Center

Edge Security Acceleration:GetRoutineBuild

Last Updated:Jul 24, 2026

Queries a single ER build task.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RoutineBuildId

integer

Yes

The ID of the ER build task.

4354306271619136

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

8C3CC8AF-7C4C-5841-BDAE-B295FD9AE913

Status

string

The status of the build task. Valid values:

  • int: init

  • pending: preparing

  • building: building

  • succeed: build succeeded

  • failed: build failed

  • canceled: canceled

succeed

CommitMessage

string

The commit message.

Add configuration file.

CommitId

string

The commit ID.

9bf55641a1a608b9e7297d3fe51e39baa4b68ba0

UpdateTime

string

The modification time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2026-07-20T09:59:28+08:00

RootDirectory

string

The root directory.

/root/admin

AssetsDirectory

string

The static resource directory.

/root/user

NodeVersion

string

The Node.js version. Valid values: 22.x, 20.x, 18.x, 16.x, 14.x, 12.x.

22.x

RoutineName

string

The ER name.

test-routine

Repository

string

The repository name.

example-test

CreateTime

string

The creation time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2026-02-28T09:03:42Z

GitAccountId

integer

The Git account ID.

4580717755793600

EnvironmentVariables

object

The environment variables.

string

The environment variables.

{"NODE_ENV": "development"}

RoutineEntry

string

The ER entry file path.

/home

Branch

string

The branch used for the build.

dev

PipelineRunId

integer

The build task ID in Yunxiao.

70

BuildCommand

string

The build command.

npm run build

ProductionBranch

string

The production branch name.

main

PipelineId

integer

The pipeline ID in Yunxiao.

4371588

TemplateName

string

The template name.

test

Id

integer

The ID of the ER build task.

164557372123356

IsPrivate

boolean

Indicates whether the repository is private. Valid values:

  • true: The repository is private.

  • false: The repository is not private.

false

InstallCommand

string

The install command.

npm install

Examples

Success response

JSON format

{
  "RequestId": "8C3CC8AF-7C4C-5841-BDAE-B295FD9AE913",
  "Status": "succeed",
  "CommitMessage": "Add configuration file.",
  "CommitId": "9bf55641a1a608b9e7297d3fe51e39baa4b68ba0",
  "UpdateTime": "2026-07-20T09:59:28+08:00",
  "RootDirectory": "/root/admin",
  "AssetsDirectory": "/root/user",
  "NodeVersion": "22.x",
  "RoutineName": "test-routine",
  "Repository": "example-test",
  "CreateTime": "2026-02-28T09:03:42Z",
  "GitAccountId": 4580717755793600,
  "EnvironmentVariables": {
    "key": "{\"NODE_ENV\": \"development\"}"
  },
  "RoutineEntry": "/home",
  "Branch": "dev",
  "PipelineRunId": 70,
  "BuildCommand": "npm run build",
  "ProductionBranch": "main",
  "PipelineId": 4371588,
  "TemplateName": "test",
  "Id": 164557372123356,
  "IsPrivate": false,
  "InstallCommand": "npm install"
}

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 InvalidParameter The specified parameter is invalid. The specified parameter is invalid.
400 ServiceInvokeFailed The call to the internal service failed. The engineer is resolving the problem. Please wait a moment before trying, or contact customer service for details. Failed to call the service. Please try again later or contact customer service for details.
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.