|
Functions =head2 notify see @OpenXPKI::Server::Notification::BaseNameOpenXPKI::Server::Notification::Connector - Notification via ConnectorDescriptionThis class implements a notifier that sends out notifications via the "set" method of a Connector backend. The payload can be created in different ways.For now this backend supports creation of a data structure directly as a hash from the config or by rendering a YAML file using Template Toolkit and parsing the yaml afterwards. The only supported output format for now is JSON. Configuration# Sample configuration using a JSON based REST API via HTTPbackend: class: OpenXPKI::Server::Notification::Connector connector: Connector::Proxy::HTTP LOCATION: https://api.acme.org/v2/ content_type: application/json http_method: POST header: Authorization: MyAuthToken # template settings template: dir: /usr/local/etc/openxpki/template/alerts/ message: cert_expiry: default: path: alert # the template file must end on .yaml and generate a hash template: cert_expiry cert_issued: default: path: info content: title: A new certificate for [% cert_subject %] has been created message: | A new certificate for [% cert_subject %] has been created. You can find more details on the PKI WebUI. priority: info
Visit the GSP FreeBSD Man Page Interface. |