All Products
Search
Document Center

Edge Security Acceleration:ListEnvironments

Last Updated:Jul 16, 2026

Queries the list of environments for a site.

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.

1234567890***

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

C370DAF1-C838-4288-A1A0-9A87633D248E

EnvironmentList

array<object>

The list of environments.

object

EnvironmentName

string

The environment name.

yichao-test-yctest

SiteVersion

integer

The site version number.

8

PreSiteVersion

integer

The previous version number.

-1

Rule

string

The environment rule.

("ip" eq "1.1.1.1")

Priority

integer

The priority.

56

ReadOnly

boolean

Indicates whether the environment is read-only.

false

IsDefault

boolean

Indicates whether this is the default environment.

false

CreateTime

string

The creation time.

2024-08-15T08:15:30Z

UpdateTime

string

The update time.

2023-09-15T08:16:04Z

Examples

Success response

JSON format

{
  "RequestId": "C370DAF1-C838-4288-A1A0-9A87633D248E",
  "EnvironmentList": [
    {
      "EnvironmentName": "yichao-test-yctest",
      "SiteVersion": 8,
      "PreSiteVersion": -1,
      "Rule": "(\"ip\" eq \"1.1.1.1\")",
      "Priority": 56,
      "ReadOnly": false,
      "IsDefault": false,
      "CreateTime": "2024-08-15T08:15:30Z",
      "UpdateTime": "2023-09-15T08:16:04Z"
    }
  ]
}

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 Site.ServiceBusy This website is being configured. Try again later. This website is being configured. Try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.