Retrieves the detailed configuration 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 obtain this value by calling ListRecords. |
1234567890123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F32C57AA-7BF8-49AE-A2CC-9F42390F5A19 |
| RecordModel |
object |
The information about the queried record. |
|
| BizName |
string |
The business scenario when the record is accelerated. Valid values:
|
image_video |
| Data |
object |
The DNS information of the record. The content returned in this field varies by record type. |
{"value":"1.1.1.1"} |
| Value |
string |
O valor do registro ou conteúdo parcial. O significado varia de acordo com o tipo de registro:
|
example.com |
| Priority |
integer |
A prioridade do registro. Valores válidos: 0 a 65535. Um valor menor indica uma prioridade maior. |
10 |
| Flag |
integer |
O flag do registro. O Flag de um registro CAA indica sua prioridade e método de processamento. Valores válidos: 0 a 255. |
128 |
| Tags |
object |
As tags do registro. |
{\"test\": \"test val1\"} |
| Weight |
integer |
O peso do registro. Valores válidos: 0 a 65535. |
0 |
| Port |
integer |
A porta do registro. Valores válidos: 0 a 65535. |
8707 |
| Type |
integer |
O tipo de certificado do registro (para registros CERT) ou o tipo de chave pública (para registros SSHFP). |
0 |
| KeyTag |
integer |
O identificador de chave pública do registro. Valores válidos: 0 a 65535. |
1 |
| Algorithm |
integer |
O algoritmo de criptografia usado pelo registro. Valores válidos: 0 a 255. |
1 |
| Certificate |
string |
As informações do certificado de chave pública do registro. |
dGVzdGFkYWxrcw== |
| Usage |
integer |
O identificador de uso do registro. Valores válidos: 0 a 255. |
0 |
| Selector |
integer |
O tipo de certificado ou chave pública usado pelo registro. Valores válidos: 0 a 255. |
1 |
| MatchingType |
integer |
A política de algoritmo usada para corresponder ou verificar o certificado. Valores válidos: 0 a 255. |
1 |
| Fingerprint |
string |
O valor da impressão digital da chave pública do registro. |
abcdef1234567890 |
| Tag |
string |
A tag do registro. A Tag de um registro CAA indica seu tipo e propósito específicos. |
issue |
| CreateTime |
string |
The creation time of the record. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2023-03-10T13:30:39Z |
| UpdateTime |
string |
The update time of the record. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2023-01-27T02:26:22Z |
| Proxied |
boolean |
Indicates whether proxy acceleration is enabled for the record. Only CNAME and A/AAAA records support proxy acceleration. Valid values:
|
true |
| RecordId |
integer |
The record ID. |
1234567890123 |
| RecordName |
string |
The record name. |
a.example.com |
| RecordType |
string |
The DNS type of the record, such as A/AAAA, CNAME, or TXT. |
A/AAAA |
| SiteId |
integer |
The site ID. |
1234567890123 |
| SiteName |
string |
The site name. |
example.com |
| Ttl |
integer |
The Time-to-Live (TTL) of the record, in seconds. A value of 1 indicates that the TTL is set to automatic. |
20 |
| RecordSourceType |
string |
The origin 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 standard domain name origin type. |
OSS |
| RecordCname |
string |
The CNAME of the record. |
a.example.com.cnamezone.com |
| Comment |
string |
The comment of the record. |
Remarks |
| AuthConf |
object |
The back-to-origin authentication information of the CNAME record. |
|
| AuthType |
string |
O tipo de autenticação de origem. Valores válidos:
|
public |
| SecretKey |
string |
O AccessKey Secret da conta à qual a origem pertence. |
u0Nkg5gBK*******QF5wvKMM504JUHt |
| AccessKey |
string |
O AccessKey ID da conta à qual a origem pertence. |
VIxuvJSA2S03f******kp208dy5w7 |
| Version |
string |
A versão do algoritmo de assinatura. Valores válidos:
Valor padrão: v4. |
v2 |
| Region |
string |
A região onde a origem reside. Obtenha a região no site oficial do S3. |
us-east-1 |
| HostPolicy |
string |
The back-to-origin HOST policy. This parameter takes effect when the record type is CNAME. It specifies the HOST header policy for back-to-origin requests. Valid values:
|
follow_origin_domain |
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"
}
}
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.