List DNS names
GET /v1/dns/records
Lists the dns names of the user.
The type of the results can be selected using the view
parameter.
Results can be filtered and sorted using the filter
and sort
parameters,
and filtered by zone
, name
and rrset
metadata using metadata filter expressions.
Query Parameters
view string
enum
Record format (defaults to summary)
Example: summary
Possible Values |
---|
summary |
record |
offset integer
Offset from beginning of list
Example: 0
Minimum: 0
limit integer
Maximum number of results to return
Example: 20
Minimum: 0
sort object
Sort options: (allowed fields: zone_name, name, name_labels_reversed, dns_type, rdata, label, zone_is_shared, created_at; allowed sorting: asc, desc).
Example:
filter object
Filter options: (allowed fields: name, zone_name, dns_type for view=record, zone_is_shared)
Example:
metadata string
The metadata expression format.
The metadata filter expression is a JSON string, defined by the Expression
type.
It is used to filter out results based on their metadata.
We support conditions that operate in textual, numeric, or datetime values.
For example, the expression { "op": "exact", "key": "key1", "value": "value1" }
will only yield results with a metadata key named key1
that contains the value value1
.
For example, the expression { "op": "lt", "key": "key2", "value": 10 }
will only yield results with a metadata key named key2
that contains a numeric value less than 10.
Textual conditions
A Textual condition is defined by the TextCondition
type:
A Textual condition can only be used with the exact
or contains
operators.
Numeric and datetime conditions.
Numeric and datetime conditions are defined by the OrdinalCondition
type:
Numeric values can be any JSON number
value.
Datetime must be RFC 3339 date strings.
Numeric and Datetime values can be used with the following equality and comparison operators:
And
clauses.
Numeric, datetime and textual conditions can be combined using and
and or
clauses.
The AndClause
combines one or more Condition
, and only yields results where all the conditions are true.
Example:
Or clauses.
The OrClause
combines one or more Condition
, and only yields results if any of the conditions are true.
Example:
Nested clauses.
We support limited nesting. AndClause
s can be nested inside of an AndClause
.
Example:
A complete Expression
can be formed by a single Condition
, and AndClause
, or and OrClause
, nested or not.
Example: {"or":[{"and":[{"op":"contains","key":"key1","value":"value1"},{"op":"exact","key":"key2","value":"value2"}]},{"op":"exact","key":"key3","value":"value3"}]}
rrset_metadata object
RRSet Metadata filters
See the metadata
parameter for an in-depth description of the expression syntax.
Example:
zone_metadata object
Zone Metadata filters
See the metadata
parameter for an in-depth description of the expression syntax.
Example: