All Products
Search
Document Center

Edge Security Acceleration:GetRecord

Last Updated:Oct 27, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: Images and videos.

  • api: API operations.

  • web: Web pages.

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:

  • A/AAAA: The destination IP address. If multiple IP addresses are specified, separate them with commas (,). At least one IPv4 address is required.

  • CNAME: The destination domain name.

  • NS: The name server of the domain name.

  • MX: The domain name of the destination mail server.

  • TXT: The text string.

  • CAA: The domain name of the certification authority (CA).

  • SRV: The domain name of the destination host.

  • URI: The URI string.

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: Proxy acceleration is enabled.

  • false: Proxy acceleration is disabled.

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:

  • OSS: OSS origin server.

  • S3: S3 origin server.

  • LB: Load balancing origin server.

  • OP: IPAM pool origin server.

  • Domain: Common domain name origin server.

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: Public read. Select this value when the origin server type is OSS or S3 and the origin server allows public read access.

  • private: Private read. Select this value when the origin server type is S3 and the origin server allows private read access.

  • private_same_account: Private read within the same account. Select this value when the origin server type is OSS, the origin server belongs to the same Alibaba Cloud account, and the origin server allows private read access.

  • private_cross_account: Private read across accounts. Select this value when the origin server type is OSS, the origin server belongs to a different Alibaba Cloud account, and the origin server allows private read access.

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:

  • v2

  • v4

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_hostname: Follows the host record.

  • follow_origin_domain: Follows the origin domain name.

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:

  • on: Enabled.

  • off: Disabled.

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.