Queries the list of sites under the current user, including site names, statuses, and configurations.
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. |
|
| SiteSearchType |
string |
No |
The search matching mode for the site name. Default is exact match. Valid values:
|
|
| PageNumber |
integer |
No |
The page number for paging. The value must be greater than or equal to 1. |
|
| PageSize |
integer |
No |
The number of entries per page for paging. Valid values: 1 to 500. |
|
| TagFilter |
array<object> |
No |
The tag filter rules. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. Used as a filter condition for the query. |
|
| Value |
string |
No |
The tag value. Used as a filter condition for the query. |
|
| ResourceGroupId |
string |
No |
The resource group ID. Used as a filter condition for the query. |
|
| Status |
string |
No |
The site status. Used as a filter condition for the query. |
|
| OnlyEnterprise |
boolean |
No |
Specifies whether to query only Enterprise Edition sites. Set this parameter to true to query only Enterprise Edition sites. |
|
| PlanSubscribeType |
string |
No |
The plan subscription type. Valid values:
|
|
| Coverage |
string |
No |
The acceleration region. Valid values:
|
|
| AccessType |
string |
No |
The access type. Valid values:
|
|
| OrderBy |
string |
No |
The sort field. By default, results are sorted by creation time. Valid values:
|
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
|
| PageNumber |
integer |
The page number of the returned data. |
|
| PageSize |
integer |
The number of sites displayed per page. |
|
| TotalCount |
integer |
The total number of sites. |
|
| Sites |
array<object> |
The list of queried site information. |
|
|
array<object> |
|||
| AccessType |
string |
The site access type. Valid values:
|
|
| CnameZone |
string |
The CNAME suffix of the site. For sites that use CNAME-based access, this is the CNAME suffix that needs to be configured for records. |
|
| Coverage |
string |
The acceleration region of the site. Valid values:
|
|
| CreateTime |
string |
The creation time of the site. The time is in ISO 8601 format and displayed in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. |
|
| UpdateTime |
string |
The update time of the site. The time is in ISO 8601 format and displayed in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. |
|
| InstanceId |
string |
The instance ID of the plan attached to the site. |
|
| NameServerList |
string |
The list of name servers assigned to the site. Multiple values are separated by commas (,). |
|
| PlanName |
string |
The plan name. |
|
| PlanSpecName |
string |
The specification name of the site plan. |
|
| ResourceGroupId |
string |
The resource group ID. |
|
| SiteId |
integer |
The site ID. |
|
| SiteName |
string |
The site name. |
|
| Status |
string |
The site status. Valid values:
|
|
| Tags |
object |
The site tags. |
|
| VerifyCode |
string |
The site ownership verification code. When a site uses CNAME-based access, this TXT verification code must be configured. |
|
| VisitTime |
string |
The access time of the site. The time is in ISO 8601 format and displayed in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. |
|
| OfflineReason |
string |
The reason why the site is disabled. Valid values:
|
Examples
Success response
JSON format
{
"RequestId": "",
"PageNumber": 0,
"PageSize": 0,
"TotalCount": 0,
"Sites": [
{
"AccessType": "",
"CnameZone": "",
"Coverage": "",
"CreateTime": "",
"UpdateTime": "",
"InstanceId": "",
"NameServerList": "",
"PlanName": "",
"PlanSpecName": "",
"ResourceGroupId": "",
"SiteId": 0,
"SiteName": "",
"Status": "",
"Tags": {
"test": "test",
"test2": 1
},
"VerifyCode": "",
"VisitTime": "",
"OfflineReason": ""
}
]
}
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.