The /server-time endpoint can be used to retrieve the server time from the PuppetDB server.

Note: The v4 API is experimental and may change without notice. For stability, it is recommended that you use the v3 API instead.

GET /v4/server-time

This query 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.

Response Format

The response will be in application/json, and will return a JSON map with a single key: server-time, whose value is an ISO-8601 representation of the current time on the PuppetDB server.

{"server-time": "2013-09-20T20:54:27.472Z"}


Using curl from localhost:

curl -X GET http://localhost:8080/v4/server-time

{"server-time": "2013-09-20T20:54:27.472Z"}
Back to top
The page rank or the 1 our of 5 rating a user has given the page.
The email address of the user submitting feedback.
The URL of the page being ranked/rated.