Queries a list of sites for the current user, including information such as the site name, status, and configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ListSites |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteName |
string |
No |
The site name. Used as a filter condition for the query. |
example.com |
| SiteSearchType |
string |
No |
The search match mode for the site name. Default value: exact. Valid values:
|
fuzzy |
| PageNumber |
integer |
No |
The page number Settings for paging in a paged query. The value must be greater than or equal to 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for paging in a paged query. Valid values: 1 to 500. |
20 |
| TagFilter |
array<object> |
No |
The tag filter rules. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. Used as a filter condition for the query. |
tag1 |
| Value |
string |
No |
The tag value. Used as a filter condition for the query. |
aaa |
| ResourceGroupId |
string |
No |
The resource group ID. Used as a filter condition for the query. |
rg-aekzd3styujvyei |
| Status |
string |
No |
The site status. Used as a filter condition for the query. |
pending |
| OnlyEnterprise |
boolean |
No |
Specifies whether to query only Enterprise Edition sites. If you set this parameter to true, only Enterprise Edition sites are queried. |
false |
| PlanSubscribeType |
string |
No |
The subscription plan type. Valid values:
|
basicplan |
| Coverage |
string |
No |
The acceleration region. Valid values:
|
global |
| AccessType |
string |
No |
The access type. Valid values:
|
NS |
| OrderBy |
string |
No |
The sort field. By default, sites are sorted by creation time. Valid values:
|
visitTime |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| PageNumber |
integer |
The page number of the returned data. |
1 |
| PageSize |
integer |
The number of sites displayed per page. |
20 |
| TotalCount |
integer |
The total number of sites. |
40 |
| Sites |
array<object> |
The list of queried sites. |
|
|
array<object> |
|||
| AccessType |
string |
The site access type. Valid values:
|
NS |
| CnameZone |
string |
The CNAME suffix of the site. For sites accessed through CNAME, this records the CNAME suffix that needs to be configured. |
example.cname.com |
| Coverage |
string |
The site acceleration region. Valid values:
|
domestic |
| CreateTime |
string |
The creation time of the site. The time is displayed in UTC and formatted in accordance with ISO 8601 in the yyyy-MM-ddTHH:mm:ssZ format. |
2023-12-24T02:01:11Z |
| UpdateTime |
string |
The update time of the site. The time is displayed in UTC and formatted in accordance with ISO 8601 in the yyyy-MM-ddTHH:mm:ssZ format. |
2023-12-24T02:01:11Z |
| InstanceId |
string |
The instance ID of the plan that you attach to the site. |
onBvtlmIyeXLbiDw81F9 |
| NameServerList |
string |
The list of name servers assigned to the site. Multiple name servers are separated by commas (,). |
male1-1.ialicdn.com,female1-1.ialicdn.com |
| PlanName |
string |
The plan name. |
plan-168656498**** |
| PlanSpecName |
string |
The specification name of the site plan. |
normal |
| ResourceGroupId |
string |
The resource group ID. |
rg-aek26g6i6se6pna |
| SiteId |
integer |
The site ID. |
123456789**** |
| SiteName |
string |
The site name. |
example.com |
| Status |
string |
The site status. Valid values:
|
pending |
| Tags |
object |
The site tags. |
{"tag1":"value1"} |
| VerifyCode |
string |
The site ownership verification code. When a site is accessed through CNAME, this is the TXT verification code that needs to be configured. |
verify_d516cb3740f81f0cef77d162edd1**** |
| VisitTime |
string |
The access time of the site. The time is displayed in UTC and formatted in accordance with ISO 8601 in the yyyy-MM-ddTHH:mm:ssZ format. |
2023-12-24T02:01:11Z |
| OfflineReason |
string |
The reason why the site is disabled. Valid values:
|
expiration_ arrears |
Examples
Success response
JSON format
{
"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",
"OfflineReason": "expiration_ arrears"
}
]
}
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.