Project

General

Profile

Actions

Architecture #8006

closed

API query on nodes doesn't give full inventory with option defined

Added by Florian Heigl over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
2
Assignee:
-
Category:
API
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

The data I get back from this URL is quite a lot different than the API suggests.

I get back a very minimal amount of data for each node, example:

'machineType' => 'Physical',
'osVersion' => '11',
'osName' => 'Suse',
'status' => 'accepted',
'hostname' => 'hostname-tld',
'id' => 'id-id-id-id'

However, according to the API documentation I should get back far more information:

http://www.rudder-project.org/rudder-api-doc/#api-Nodes-listAcceptedNodes

Even in old versions of the API. I even tried ‘/api/latest/nodes?include=full’ and it did not change the output. I’m trying to get lastInventoryDate specifically (I also tried include=lastInventoryDate, no difference). If I get the status of a single node with /api/latest/nodes/<nodeid> then I get back all of the data I need, including lastInventoryDate, but this isn’t useful because I need the information about all nodes, so probing them one by one would take all day.

Is there a reason why the output only returns 6 fields even with ‘include=full’ despite that the API documentation says it should output much more data?

We also tested against versions 4/5 with same result.

Actions

Also available in: Atom PDF