Cloud DNS API, gRPC: DnsZoneService.ListRecordSets
Retrieves the list of record sets in the specified folder.
gRPC request
rpc ListRecordSets (ListDnsZoneRecordSetsRequest) returns (ListDnsZoneRecordSetsResponse)
ListDnsZoneRecordSetsRequest
{
"dnsZoneId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
dnsZoneId |
string ID of the DNS zone to list record sets in. To get a DNS zone ID, make a DnsZoneService.List request. |
pageSize |
int64 The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by Each condition has the form
Examples of a filter: |
ListDnsZoneRecordSetsResponse
{
"recordSets": [
{
"name": "string",
"type": "string",
"ttl": "int64",
"data": [
"string"
]
}
],
"nextPageToken": "string"
}
Field |
Description |
recordSets[] |
List of record sets in the specified DNS zone. |
nextPageToken |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
RecordSet
A record set. For details about the concept, see Resource record.
Field |
Description |
name |
string Domain name. |
type |
string Record type. |
ttl |
int64 Time to live in seconds. |
data[] |
string Data of the record set. |