Closed mhjacks closed 5 years ago
The GET endpoint of nodes allows access to historical checkins if that functionality is enabled. The endpoint is documented at: https://puppet.com/docs/pe/2019.0/nodes_endpoint.html#nodes-endpoint
It could be as simple as adding the following code the the nc_https.rb file:
def get_nodes(name) res = do_https("v1/nodes/#{name}", 'GET') if res.code.to_i != 200 error_msg(res) fail('Unable to get node history') else JSON.parse(res.body) end end
Created PR #46
The GET endpoint of nodes allows access to historical checkins if that functionality is enabled. The endpoint is documented at: https://puppet.com/docs/pe/2019.0/nodes_endpoint.html#nodes-endpoint
It could be as simple as adding the following code the the nc_https.rb file: