All Products
Search
Document Center

Edge Security Acceleration:CreateRoutineBuildConfiguration

Last Updated:Jul 23, 2026

Creates an Edge Routine (ER) build configuration.

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

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RootDirectory

string

No

The root directory.

/root/admin

BuildBranches

string

No

The branches that trigger a build. Set this parameter to * for all branches. To specify multiple branches, separate branch names with commas.

feature/test,hotfix/test

AssetsDirectory

string

No

The static resource directory.

/root/user

NodeVersion

string

Yes

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

22.x

RoutineName

string

Yes

The ER name.

rwa-test

GitPlatform

string

No

The Git platform. Valid values: github, gitee, and upload.

github

Repository

string

No

The repository name.

webdeck

EnvironmentVariables

object

No

The environment variables.

string

No

The environment variables.

{"NODE_ENV": "development"}

RoutineEntry

string

No

The ER entry file path.

/home

IsPrivate

boolean

No

Specifies whether the repository is private. Valid values:

  • true: The repository is private.

  • false: The repository is not private.

false

BuildCommand

string

No

The build command.

npm run build

ProductionBranch

string

No

The production branch name.

main

GitAccountId

integer

No

The Git account ID.

3472021274759488

TemplateName

string

No

The build template name.

react-router

InstallCommand

string

No

The install command.

npm install

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

CB1A380B-09F0-41BB-A198-72F8FD6DA2FE

RoutineBuildConfigurationId

integer

The ER build configuration ID.

3472165674357056

Examples

Success response

JSON format

{
  "RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE\n",
  "RoutineBuildConfigurationId": 3472165674357056
}

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 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 InvalidParameters The specified parameters are invalid. Parameter is illegal.
400 GitAccountAuthExpired Git account authorization expired. Git account authorization expired.
400 GitAccountNotActive Git account is not active. Git account is not active.
400 GitAccountNotExist Git account does not exist. Git account does not exist.
400 InvalidRoutine The name of routine is invalid. Edge function name is illegal.
400 RoutineBuildConfigurationExist Routine build configuration already exists. Routine build configuration already exists.
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 IllegalNodeVersion NodeVersion parameter is illegal. NodeVersion parameter is illegal.
400 EnvironmentExceedLimit The environment variable parameter exceeds the limit, and the number of keys and values exceeds the limit. The environment variable parameter exceeds the limit, and the number of keys and values exceeds the limit.
400 EnvironmentVariableKeyValueTooLong The key/value length in the EnvironmentVariable parameter exceeds the limit. The length of a single key is not greater than 100, and the length of a single value is not greater than 200. The key/value length in the EnvironmentVariable parameter exceeds the limit. The length of a single key is not greater than 100, and the length of a single value is not greater than 200.
400 RepositoryExceedLimit One code repository can only be associated with up to 10 Routine build configurations. One code repository can only be associated with up to 10 Routine build configurations.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.