#api call for node serial numbers
1 messages · Page 1 of 1 (latest)
I don't think there's a single API call that provides both
/cluster/nodes gives you serial numbers and /cluster/software gives you the ONTAP version
many thanks for this but I was after the storagegrid versions of these
ah, right, I don't think there's an API for that in the Grid, but I'd love to be proven wrong 🤷♂️
I think there are only private API calls for this. Open the StorageGrid GUI and use your Browsers Dev Tools (F12). In the Network Tab you will see all the API calls that are happening. I think the answer can be found there. But as the name "private" implies, this is no API NetApp wants you to use and may change between StorageGrid versions.
thanks, yes i use the private rest api quite abit but i cannot find any call for what I am after
I checked for myself in SG 11.7 and I found the necessary calls. You won't get it for all nodes at once I think. But I didn't test it, just grabbed the calls from the console.
Get the Node IDs
/api/v3/private/attributes/NTYP
Query per Node:
serial number
/api/v3/private/attributes/SFSN/node/<id>
software version
/api/v3/private/attributes/PKVR/node/<id>
It may be possible to combine the attribute query like this:
/api/v3/private/attributes/SFSN,PKVR/node/<id>
thats great, many thanks. we are currently at 11.6.0.12 so may not work but will be moving to 11.7 fairly soon, thanks again
do you have a link to the 11.7 api documentation please? I am having trouble linking together the "id" from your commands and the nodeid details in the 11.6 commands.
Private API is not documented as far as I know.
There is some private api documented in swagger but these ones are missing. Im testing this using 11.6 and the api/v3/private/attributes/SFSN/node/<id>
Comes back with success but no data
I could only test with 11.7