All Products
Search
Document Center

Edge Security Acceleration:ListSites

Last Updated:Dec 26, 2024

Queries the information about websites in your account, such as the name, status, and configuration of each website.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
esa:ListSitesget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SiteNamestringNo

The website name. This parameter specifies a filter condition for the query.

example.com
SiteSearchTypestringNo

The match mode to search for the website name. Default value: exact. Valid values:

  • prefix: match by prefix.
  • suffix: match by suffix.
  • exact: exact match.
  • fuzzy: fuzzy match.
fuzzy
PageNumberintegerNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Default value: 500.

20
TagFilterarray<object>No

The tag filtering rule.

objectNo
KeystringNo

The tag key. This parameter specifies a filter condition for the query.

tag1
ValuestringNo

The tag value. This parameter specifies a filter condition for the query.

aaa
ResourceGroupIdstringNo

The ID of the resource group. This parameter specifies a filter condition for the query.

rg-aekzd3styujvyei
StatusstringNo

The website status. This parameter specifies a filter condition for the query.

pending
OnlyEnterprisebooleanNo

Specifies whether to query only websites on Enterprise plans. Valid values: true and false.

false
PlanSubscribeTypestringNo

The plan type. Valid values:

  • basicplan: Entrance (coming soon)
  • standardplan: Pro
  • advancedplan: Premium
  • enterpriseplan: Enterprise
basicplan
CoveragestringNo

The service location. Valid values:

  • domestic: the Chinese mainland
  • global: global
  • overseas: outside the Chinese mainland
global
AccessTypestringNo

The DNS setup. Valid values:

  • NS
  • CNAME
NS

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368
PageNumberinteger

The page number.

1
PageSizeinteger

The number of websites per page.

20
TotalCountinteger

The total number of websites.

40
Sitesarray<object>

The queried websites.

pageDataobject
AccessTypestring

The DNS setup for the website. Valid values:

  • NS
  • CNAME
NS
CnameZonestring

The CNAME of the website domain. If you use CNAME setup when you add your website to ESA, the value is the CNAME that you configured then.

example.cname.com
Coveragestring

The service location for the website. Valid values:

  • domestic: the Chinese mainland
  • global: global
  • overseas: outside the Chinese mainland
domestic
CreateTimestring

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

2023-12-24T02:01:11Z
UpdateTimestring

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

2023-12-24T02:01:11Z
InstanceIdstring

The ID of the plan associated with the website.

onBvtlmIyeXLbiDw81F9
NameServerListstring

The nameservers assigned to the website domain, which are separated by commas (,).

male1-1.ialicdn.com,female1-1.ialicdn.com
PlanNamestring

The plan name.

plan-168656498****
PlanSpecNamestring

The plan associated with the website.

normal
ResourceGroupIdstring

The ID of the resource group.

rg-aek26g6i6se6pna
SiteIdlong

The website ID.

123456789****
SiteNamestring

The website name.

example.com
Statusstring

The website status. Valid values:

  • pending: The website is to be configured.
  • active: The website is active.
  • offline: The website is suspended.
  • moved: The website has been added and verified by another Alibaba Cloud account.
pending
Tagsobject

The tags of the website.

{"tag1":"value1"}
VerifyCodestring

The code that is used to verify the website domain ownership. As part of the verification TXT record, this parameter is returned for websites that use CNAME setup.

verify_d516cb3740f81f0cef77d162edd1****

Examples

Sample success responses

JSONformat

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "PageNumber": 1,
  "PageSize": 20,
  "TotalCount": 40,
  "Sites": [
    {
      "AccessType": "NS",
      "CnameZone": "example.cname.com",
      "Coverage": "domestic",
      "CreateTime": "2023-12-24T02:01:11Z",
      "UpdateTime": "2023-12-24T02:01:11Z",
      "InstanceId": "onBvtlmIyeXLbiDw81F9",
      "NameServerList": "male1-1.ialicdn.com,female1-1.ialicdn.com",
      "PlanName": "plan-168656498****",
      "PlanSpecName": "normal",
      "ResourceGroupId": "rg-aek26g6i6se6pna",
      "SiteId": 0,
      "SiteName": "example.com",
      "Status": "pending",
      "Tags": {
        "tag1": "value1"
      },
      "VerifyCode": "verify_d516cb3740f81f0cef77d162edd1****",
      "VisitTime": "2023-12-24T02:01:11Z"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400InternalExceptionFailed to call the service. Try again later or contact technical support.Failed to call the service. Try again later or contact technical support.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-11-28The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
2024-09-23The Error code has changed. The request parameters of the API has changedView Change Details