Cloud DNS API, REST: DnsZone.getRecordSet
Written by
Updated at May 26, 2023
Returns the specified record set.
HTTP request
GET https://dns.api.cloud.yandex.net/dns/v1/zones/{dnsZoneId}:getRecordSet
Path parameters
Parameter | Description |
---|---|
dnsZoneId | ID of the DNS zone to get record set from. To get a DNS zone ID, make a list request. The string length in characters must be equal to 20. |
Query parameters
Parameter | Description |
---|---|
name | Required. Name of the record set. The maximum string length in characters is 255. |
type | Required. Type of the record set. The maximum string length in characters is 10. |
Response
HTTP Code: 200 - OK
{
"name": "string",
"type": "string",
"ttl": "string",
"data": [
"string"
]
}
A record set. For details about the concept, see Resource record.
Field | Description |
---|---|
name | string Domain name. The string length in characters must be 1-254. |
type | string Record type. The string length in characters must be 1-20. |
ttl | string (int64) Time to live in seconds. Acceptable values are 0 to 2147483647, inclusive. |
data[] | string Required. Data of the record set. The number of elements must be in the range 1-100. The string length in characters for each value must be 1-255. |