Closed akelge closed 2 months ago
/api/v1/node/backfillips
fails, I think that the route is not matched, so it tries to retrieve info on node with id backfillips
, failing, of course
for what it is worth, I've tested this and it worked:
"nodes":[{"id":"1","machineKey":"mkey:1538e343afbf96495e98bf98385c2d14254c682ec71436ed1a294f1f21100c63","nodeKey":"nodekey:f5ab18e3dde949988ec6fdcf31c42ec1440cd96d6d77c7048f725fba2003f869","discoKey":"discokey:16ef4ff594f66440486015c341c64d3b414b922f84e1d1635e31958286bf684b","ipAddresses":["100.64.0.1","fd7a:115c:a1e0::1"],"name":"Veeam","user":{"id":"1","name":"boz","createdAt":"2024-07-17T06:22:27.041754446Z"},"lastSeen":"2024-07-17T06:24:42.982663920Z","expiry":"0001-01-01T00:00:00Z","preAuthKey":null,"createdAt":"2024-07-17T06:24:38.276313596Z","registerMethod":"REGISTER_METHOD_CLI","forcedTags":[],"invalidTags":[],"validTags":[],"givenName":"veeam","online":true}]}
REGISTER_METHOD_CLI
Is this a support request?
Is there an existing issue for this?
Current Behavior
I am finding some bugs in the API responses, especially:
/api/v1/node/<nodeId>
does not returnvalidTags
although tags are present, calling/api/v1/node
and getting the node I want,validTags
is properly populatedregisterMethod
is alwaysREGISTER_METHOD_UNSPECIFIED
even if in the DB the nodes have the correct value for the register methodExpected Behavior
I would expect that a call to
/api/v1/node/<nodeid>
would return the correct set of tags and that theregisterMethod
would be set to the correct valueSteps To Reproduce
Do an API call to
/api/v1/node/<nodeid>
and inspect the responseEnvironment
Runtime environment
Anything else?
No response