Retrieves the detailed configuration information of a single DNS record, including the record value, priority, and back-to-origin authentication configuration (exclusive to CNAME records).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetRecord |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RecordId |
integer |
Yes |
The ID of the record. You can call the ListRecords operation to obtain the ID. |
1234567890123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
F32C57AA-7BF8-49AE-A2CC-9F42390F5A19 |
| RecordModel |
object |
The information about the queried record. |
|
| BizName |
string |
The business scenario for record acceleration. Valid values:
|
image_video |
| Data |
object |
The DNS information of the record. The content returned by this field varies based on the record type. |
{"value":"1.1.1.1"} |
| Value |
string |
The record value or partial content. This field indicates different meanings in different types of records:
|
example.com |
| Priority |
integer |
The priority of the record. Valid values: 0 to 65535. A smaller value indicates a higher priority. |
10 |
| Flag |
integer |
The flag of the record. For a CAA record, the flag indicates its priority and processing method. Valid values: 0 to 255. |
128 |
| Tags |
object |
The tags of the record. |
{\"test\": \"test val1\"} |
| Weight |
integer |
The weight of the record. Valid values: 0 to 65535. |
0 |
| Port |
integer |
The port of the record. Valid values: 0 to 65535. |
8707 |
| Type |
integer |
The certificate type of the record in a CERT record, or the public key type in an SSHFP record. |
0 |
| KeyTag |
integer |
The public key tag of the record. Valid values: 0 to 65535. |
1 |
| Algorithm |
integer |
The encryption algorithm used by the record. Valid values: 0 to 255. |
1 |
| Certificate |
string |
The public key certificate information of the record. |
dGVzdGFkYWxrcw== |
| Usage |
integer |
The usage identifier of the record. Valid values: 0 to 255. |
0 |
| Selector |
integer |
The type of the certificate or public key used by the record. Valid values: 0 to 255. |
1 |
| MatchingType |
integer |
The algorithm policy used by the record to match or verify the certificate. Valid values: 0 to 255. |
1 |
| Fingerprint |
string |
The public key fingerprint of the record. |
abcdef1234567890 |
| Tag |
string |
The tag of the record. For a CAA record, the tag indicates its specific type and usage. |
issue |
| CreateTime |
string |
The time when the record was created. The time is displayed in UTC and follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. |
2023-03-10T13:30:39Z |
| UpdateTime |
string |
The time when the record was updated. The time is displayed in UTC and follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. |
2023-01-27T02:26:22Z |
| Proxied |
boolean |
Indicates whether proxy acceleration is enabled for the record. Only CNAME, A, and AAAA records support proxy acceleration. Valid values:
|
true |
| RecordId |
integer |
The ID of the record. |
1234567890123 |
| RecordName |
string |
The name of the record. |
a.example.com |
| RecordType |
string |
The DNS type of the record, such as A/AAAA, CNAME, or TXT. |
A/AAAA |
| SiteId |
integer |
The ID of the site. |
1234567890123 |
| SiteName |
string |
The name of the site. |
example.com |
| Ttl |
integer |
The time-to-live (TTL) of the record, in seconds. A value of 1 indicates that the TTL is automatic. |
20 |
| RecordSourceType |
string |
The origin server type of the CNAME record. Valid values:
If this parameter is not specified or is left empty, the default value is Domain, which indicates a common domain name origin server. |
OSS |
| RecordCname |
string |
The CNAME of the record. |
a.example.com.cnamezone.com |
| Comment |
string |
The description of the record. |
Remarks |
| AuthConf |
object |
The origin server authentication information of the CNAME record. |
|
| AuthType |
string |
The origin server authentication type. Valid values:
|
public |
| SecretKey |
string |
The AccessKey of the account to which the origin server belongs. |
u0Nkg5gBK*******QF5wvKMM504JUHt |
| AccessKey |
string |
The AccessKey of the account to which the origin server belongs. |
VIxuvJSA2S03f******kp208dy5w7 |
| Version |
string |
The version of the signature algorithm. Valid values:
If this parameter is not specified, the default value is v4. |
v2 |
| Region |
string |
The region to which the origin server belongs. You can obtain the region information from the official website of S3. |
us-east-1 |
| HostPolicy |
string |
The back-to-origin host policy. This parameter takes effect only when the record type is CNAME. It specifies the host policy for back-to-origin requests. Valid values:
|
follow_origin_domain |
| HttpPorts |
string |
The HTTP port. By default, port 80 is supported. |
80,8080,8880,2052,2082,2086,2095 |
| HttpsPorts |
string |
The HTTPS port. By default, port 443 is supported. |
443,2053,2083,2087,2096,8443 |
| CustomPort |
string |
Indicates whether custom ports are enabled for the record. Valid values:
|
off |
Examples
Success response
JSON format
{
"RequestId": "F32C57AA-7BF8-49AE-A2CC-9F42390F5A19",
"RecordModel": {
"BizName": "image_video",
"Data": {
"Value": "example.com",
"Priority": 10,
"Flag": 128,
"Tags": {
"test": "test",
"test2": 1
},
"Weight": 0,
"Port": 8707,
"Type": 0,
"KeyTag": 1,
"Algorithm": 1,
"Certificate": "dGVzdGFkYWxrcw==",
"Usage": 0,
"Selector": 1,
"MatchingType": 1,
"Fingerprint": "abcdef1234567890",
"Tag": "issue"
},
"CreateTime": "2023-03-10T13:30:39Z",
"UpdateTime": "2023-01-27T02:26:22Z",
"Proxied": true,
"RecordId": 1234567890123,
"RecordName": "a.example.com",
"RecordType": "A/AAAA",
"SiteId": 1234567890123,
"SiteName": "example.com",
"Ttl": 20,
"RecordSourceType": "OSS ",
"RecordCname": "a.example.com.cnamezone.com",
"Comment": "Remarks",
"AuthConf": {
"AuthType": "public",
"SecretKey": "u0Nkg5gBK*******QF5wvKMM504JUHt",
"AccessKey": "VIxuvJSA2S03f******kp208dy5w7",
"Version": "v2",
"Region": "us-east-1"
},
"HostPolicy": "follow_origin_domain",
"HttpPorts": "80,8080,8880,2052,2082,2086,2095",
"HttpsPorts": "443,2053,2083,2087,2096,8443",
"CustomPort": "off"
}
}
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. |
| 404 | Record.NotFound | The record does not exist. Check your configurations and try again. | The record does not exist. Check your configurations and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.