Queries a list of Domain Name System (DNS) records of a website, including the record value, priority, and authentication configurations. Supports filtering by specifying parameters such as RecordName and RecordMatchType.
Operation description
The DNS records related to Edge Container, Edge Routine, and TCP/UDP proxy are not returned in this operation.
Debugging
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:
- For mandatory resource types, indicate with a prefix of * .
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
esa:ListRecords | get | *Site acs:esa:{#regionId}:{#accountId}:site/{#SiteId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SiteId | long | Yes | The website ID, which can be obtained by calling the ListSites operation. | 1234567890123 |
RecordName | string | No | The record name. This parameter specifies a filter condition for the query. | www.example.com |
RecordMatchType | string | No | The match mode to search for the record name. Default value: exact. Valid values:
| fuzzy |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Default value: 500. | 10 |
SourceType | string | No | The origin type of the record. Only CNAME records can be filtered by using this field. Valid values:
| OSS |
BizName | string | No | The business scenario of the record for acceleration. Valid values:
| web |
Proxied | string | No | Filters by whether the record is proxied. Valid values:
| true |
Type | string | No | The DNS record type. | CNAME |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 20,
"Records": [
{
"BizName": "web",
"Data": {
"Value": "CNAME",
"Priority": 0,
"Flag": 128,
"Tag": "issue",
"Weight": 0,
"Port": 80,
"Type": 0,
"KeyTag": 0,
"Algorithm": 0,
"Certificate": "dGVzdGFkYWxrcw==",
"Usage": 0,
"Selector": 0,
"MatchingType": 0,
"Fingerprint": "abcdef1234567890"
},
"CreateTime": "2023-12-24T02:01:11Z",
"UpdateTime": "2023-06-07T10:02:59Z",
"Proxied": true,
"RecordId": 1234567890123,
"RecordSourceType": "OSS",
"RecordName": "a.example.com",
"RecordType": "A/AAAA",
"SiteId": 1234567890123,
"SiteName": "example.com",
"Ttl": 30,
"RecordCname": "a.example.com.cnamezone.com",
"Comment": "this is a remark.",
"AuthConf": {
"AuthType": "private",
"AccessKey": "u0Nkg5gBK***QF5wvKMM504JUHt",
"SecretKey": "VIxuvJSA2S03f***kp208dy5w7",
"Version": "v4",
"Region": "us-east-1"
},
"HostPolicy": "follow_origin_domain"
}
]
}
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-19 | The Error code has changed | View Change Details |
2024-09-23 | The Error code has changed. The response structure of the API has changed | View Change Details |