Closed gkluoe closed 5 years ago
With the result that
j.Computer('macaddress=xx:xx:xx:xx:xx:xx')
doesn't work. (Response Code: 404 Response: Not Found.)
j.get('/computers/macaddress/xx:xx:xx:xx:xx:xx')
does work, but returns XML (as expected) rather than a Computer
Well, I think they changed the API. I could be wrong, but this definitely used to work.
Looking at the Jamf Pro API docs you have to new endpoints for /computers/macaddress
, and you have to do /computers/match/macaddress=...
to do this.
This will have to be updated.
Ah, interesting. I actually fixed this in my local copy just by fixing the typo in 'macadress' that I highlighted above. That was a while ago so perhaps the API has changed since then.
Oh, maybe it does work still then, even though the docs don't specify. I totally missed the spelling error. I'll fix the spelling at least.
Seems to be fixed in testing branch.
I think this is a bug.
https://github.com/sheagcraig/python-jss/blob/e1982466bd7e971f27525cbc31024590a456df66/jss/jssobjects.py#L186
macadress != macaddress :-)