Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
PowerDNS.API.Cryptokeys
Contents
Description
This module implements the endpoints described at Cryptokeys API
Synopsis
- data CryptokeysAPI f = CryptokeysAPI {
- apiListCryptokeys :: f :- (Summary "List cryptokeys" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> Get '[JSON] [Cryptokey]))))))
- apiCreateCryptokey :: f :- (Summary "Create cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (ReqBody '[JSON] Cryptokey :> PostCreated '[JSON] Cryptokey)))))))
- apiGetCryptokey :: f :- (Summary "Get cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> Get '[JSON] Cryptokey)))))))
- apiUpdateCryptokey :: f :- (Summary "Update cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> (ReqBody '[JSON] Cryptokey :> PutNoContent))))))))
- apiDeleteCryptokey :: f :- (Summary "Delete cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> DeleteNoContent)))))))
- data Cryptokey = Cryptokey {}
API
data CryptokeysAPI f Source #
Constructors
CryptokeysAPI | |
Fields
|
Instances
Generic (CryptokeysAPI f) Source # | |
Defined in PowerDNS.API.Cryptokeys Associated Types type Rep (CryptokeysAPI f) :: Type -> Type # Methods from :: CryptokeysAPI f -> Rep (CryptokeysAPI f) x # to :: Rep (CryptokeysAPI f) x -> CryptokeysAPI f # | |
type Rep (CryptokeysAPI f) Source # | |
Defined in PowerDNS.API.Cryptokeys type Rep (CryptokeysAPI f) = D1 ('MetaData "CryptokeysAPI" "PowerDNS.API.Cryptokeys" "powerdns-0.4.4-4F1xBB6Mfb27BKd2dcmgst" 'False) (C1 ('MetaCons "CryptokeysAPI" 'PrefixI 'True) ((S1 ('MetaSel ('Just "apiListCryptokeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "List cryptokeys" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> Get '[JSON] [Cryptokey])))))))) :*: S1 ('MetaSel ('Just "apiCreateCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Create cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (ReqBody '[JSON] Cryptokey :> PostCreated '[JSON] Cryptokey)))))))))) :*: (S1 ('MetaSel ('Just "apiGetCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Get cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> Get '[JSON] Cryptokey))))))))) :*: (S1 ('MetaSel ('Just "apiUpdateCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Update cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> (ReqBody '[JSON] Cryptokey :> PutNoContent)))))))))) :*: S1 ('MetaSel ('Just "apiDeleteCryptokey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f :- (Summary "Delete cryptokey" :> ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("cryptokeys" :> (Capture "cryptokey_id" Text :> DeleteNoContent))))))))))))) |
Data types
Constructors
Cryptokey | |