Server time endpoint
/server-time endpoint can be used to retrieve the server time from the PuppetDB server.
This metadata endpoint will return the current time of the clock on the PuppetDB server. This can be useful as input to other time-based queries against PuppetDB, to eliminate the possibility of time differences between the clocks on client machines.
This endpoint does not use any URL parameters or query strings.
The response will be in
application/json, and will return a JSON map with a
server_time, whose value is an ISO-8601 representation of the
current time on the PuppetDB server.
curl -X GET http://localhost:8080/pdb/meta/v1/server-time