Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module implements the endpoints described at Servers API
Synopsis
- data ServersAPI f = ServersAPI {
- apiListServers :: f :- ("servers" :> Get '[JSON] [Server])
- apiGetServer :: f :- ("servers" :> (Capture "server_id" Text :> Get '[JSON] Server))
- apiSearch :: f :- ("servers" :> (Capture "server_id" Text :> ("search-data" :> (QueryParamReq "q" Text :> (QueryParamReq "max" Integer :> (QueryParam "object_type" ObjectType :> Get '[JSON] [SearchResult]))))))
- apiFlushCache :: f :- ("servers" :> (Capture "server_id" Text :> (QueryParamReq "domain" Text :> Put '[JSON] CacheFlushResult)))
- apiStatistics :: f :- ("servers" :> (Capture "server_id" Text :> ("statistics" :> (QueryParam "statistic" Text :> (QueryParam "includerings" Bool :> Get '[JSON] [AnyStatisticItem])))))
- data Server = Server {}
- data ObjectType
- data SearchResult = SearchResult {
- sr_content :: Text
- sr_disabled :: Bool
- sr_name :: Text
- sr_object_type :: ObjectType
- sr_zone_id :: Text
- sr_zone :: Text
- sr_type :: Text
- sr_ttl :: Integer
- data CacheFlushResult = CacheFlushResult {
- cfr_count :: Integer
- cfr_result :: Text
- data AnyStatisticItem
- data StatisticItem = StatisticItem {}
- data MapStatisticItem = MapStatisticItem {
- msi_name :: Text
- msi_value :: [SimpleStatisticItem]
- data RingStatisticItem = RingStatisticItem {}
- data SimpleStatisticItem = SimpleStatisticItem {}
API
data ServersAPI f Source #
ServersAPI | |
|
Instances
Generic (ServersAPI f) Source # | |
Defined in PowerDNS.API.Servers type Rep (ServersAPI f) :: Type -> Type # from :: ServersAPI f -> Rep (ServersAPI f) x # to :: Rep (ServersAPI f) x -> ServersAPI f # | |
type Rep (ServersAPI f) Source # | |
Defined in PowerDNS.API.Servers |
Data types
Server | |
|
Instances
data ObjectType Source #
Instances
data SearchResult Source #
SearchResult | |
|
Instances
data CacheFlushResult Source #
Instances
data AnyStatisticItem Source #
AnyStatisticItem StatisticItem | |
AnyMapStatisticItem MapStatisticItem | |
AnyRingStatisticItem RingStatisticItem |
Instances
data StatisticItem Source #
Instances
data MapStatisticItem Source #
Instances
data RingStatisticItem Source #
Instances
data SimpleStatisticItem Source #