Skip to main content

Module api

Module api 

Source
Expand description

One function per Core route, no logic beyond building the request and decoding the envelope. Modules follow ../core/src/api/router.ts (non-admin routes only).

Structs§

AuditLogFilter
Filters and page for AuditLogs::list. Every field is optional; together they narrow. Admin-only filters (core_id, nats_seq, ip) are not here.
AuditLogs
Audit log routes, from Client::audit_logs.
Certificates
TLS certificates of zones, from Client::certificates.
ClientIdentities
Client identity routes, from Client::client_identities.
ClientIdentityFilter
Optional filters for ClientIdentities::list.
FreeDomains
Free domain routes, from Client::free_domains. They work without an API key.
Geo
Geo route, from Client::geo.
GeoBans
Geo ban routes, from Client::geo_bans.
HealthChecks
Health check routes, from Client::health_checks.
PageRequest
Page selection for paginated lists. None leaves Core’s default.
RecordFilter
Optional filters for Records::list.
Records
Record routes, from Client::records.
Redirects
HTTP(S) redirects by host name, from Client::redirects.
SinkholeLinkFilter
Optional filters for SinkholeLinks::list.
SinkholeLinks
Sinkhole link routes, from Client::sinkhole_links: which lists apply to which client identities.
SinkholeLists
Sinkhole list routes, from Client::sinkhole_lists.
SinkholeRoles
Sinkhole rule routes, from Client::sinkhole_roles (Core calls rules “roles”).
Stats
Statistics routes, from Client::stats.
StatsSeriesQuery
Range and shape of a series query. Core aligns the range to 10 minutes; data is kept 90 days and a range may span at most 92 days.
StatsTopQuery
Range and size of a top-list query.
Users
The caller’s own user account, from Client::users.
ZoneMembers
Who has access to a zone, from Client::zone_members.
Zones
Zone routes, from Client::zones.

Enums§

ClientScope
Which client identities a client statistic covers.
StatsGroup
How series are split (group_by). Each route takes only some of them (see the method); Core answers ErrorCode::Validation for others.
StatsMode
What series point values are (mode).
StatsStep
Step of a series. Auto (Core’s default) picks the smallest step with at most 300 points; a range may have at most 2000 points.