All Products
Search
Document Center

Edge Security Acceleration:CreateEnvironment

Last Updated:Jul 16, 2026

Creates a site environment.

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 parameters

Parameter

Type

Required

Description

Example

SiteId

integer

Yes

The site ID. You can call the ListSites operation to obtain the site ID.

1234567890123**

EnvironmentName

string

Yes

The environment name.

NPDcP1

Rule

string

Yes

The environment rule.

("ip" eq "1.1.1.1")

NextEnvironmentName

string

Yes

The name of the environment with the next priority.

默认环境

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

BC858082-736F-4A25-867B-E5B67C85ACF7

Examples

Success response

JSON format

{
  "RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified parameter is invalid. The specified parameter is invalid.
400 InvalidParameter.InvalidSiteEnvironmentName The specified site environment name is invalid. The specified site environment name is invalid.
400 InvalidParameter.SiteEnvironmentRuleDuplicate The specified site environment rule is the same as an existing environment. The specified site environment rule is the same as an existing environment.
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 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 Site.ServiceBusy This website is being configured. Try again later. This website is being configured. Try again later.
400 SiteVersion.Configuring The version is being configured. Try again later. The version is being configured. Try again later.
400 SiteEnvironment.Conflict The environment name or rule conflicts with an existing environment. Try again with a different environment name or rule. The environment name or rule conflicts with an existing environment. Try again with a different environment name or rule.
400 QuotaCheckFailed.VersionManagement Insufficient quota for version management. Contact technical support. Insufficient quota for version management. Contact technical support.
400 SiteEnvironment.NotExist The specified environment is invalid or version management is not enabled for your website. Make sure that you specify a valid environment name and version management is enabled. Then, try again. You have entered an invalid site version environment, or the site does not have version management enabled. Please confirm that your version environment settings are correct, and activate the version management function if necessary, and then try again.
400 InvalidParameter.ArgValue Invalid parameter value. Check whether the value format and length meet the requirements. Invalid parameter value. Check whether the value format and length meet the requirements.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.