Safe Haskell | None |
---|---|
Language | Haskell2010 |
Implementation of the API endpoints described at PowerDNS TSIGKeys API
Synopsis
- data TSIGKeysAPI f = TSIGKeysAPI {
- apiListTSIGKeys :: f :- ("servers" :> (Capture "server_id" Text :> ("tsigkeys" :> Get '[JSON] [TSIGKey])))
- apiCreateTSIGKey :: f :- ("servers" :> (Capture "server_id" Text :> ("tsigkeys" :> (ReqBody '[JSON] TSIGKey :> PostCreated '[JSON] TSIGKey))))
- apiGetTSIGKey :: f :- ("servers" :> (Capture "server_id" Text :> ("tsigkeys" :> (Capture "tsigkey_id" Text :> Get '[JSON] TSIGKey))))
- apiUpdateTSIGKey :: f :- ("servers" :> (Capture "server_id" Text :> ("tsigkeys" :> (Capture "tsigkey_id" Text :> (ReqBody '[JSON] TSIGKey :> Put '[JSON] TSIGKey)))))
- apiDeleteTSIGKey :: f :- ("servers" :> (Capture "server_id" Text :> ("tsigkeys" :> (Capture "tsigkey_id" Text :> DeleteNoContent))))
- data TSIGKey = TSIGKey {}
- data TSIGAlgorithm
API
data TSIGKeysAPI f Source #
TSIGKeysAPI | |
|
Instances
Data types
TSIGKey | |
|
Instances
Eq TSIGKey Source # | |
Data TSIGKey Source # | |
Defined in PowerDNS.API.TSIGKeys gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TSIGKey -> c TSIGKey # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TSIGKey # toConstr :: TSIGKey -> Constr # dataTypeOf :: TSIGKey -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TSIGKey) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TSIGKey) # gmapT :: (forall b. Data b => b -> b) -> TSIGKey -> TSIGKey # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TSIGKey -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TSIGKey -> r # gmapQ :: (forall d. Data d => d -> u) -> TSIGKey -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TSIGKey -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TSIGKey -> m TSIGKey # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TSIGKey -> m TSIGKey # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TSIGKey -> m TSIGKey # | |
Ord TSIGKey Source # | |
Show TSIGKey Source # | |
Generic TSIGKey Source # | |
ToJSON TSIGKey Source # | |
Defined in PowerDNS.API.TSIGKeys | |
FromJSON TSIGKey Source # | |
NFData TSIGKey Source # | |
Defined in PowerDNS.API.TSIGKeys | |
type Rep TSIGKey Source # | |
Defined in PowerDNS.API.TSIGKeys type Rep TSIGKey = D1 ('MetaData "TSIGKey" "PowerDNS.API.TSIGKeys" "powerdns-0.4.0-1owosWjIhFXLqZhYAyUo9f" 'False) (C1 ('MetaCons "TSIGKey" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tsk_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "tsk_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "tsk_algorithm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TSIGAlgorithm)) :*: S1 ('MetaSel ('Just "tsk_key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ByteString))))) |
data TSIGAlgorithm Source #
Supported algorithms according to PowerDNS TSIG Documentation