09-19-2018 11:26 AM
Hi,
I can use RESTCONF to fetch the ssh host keys for a single device like this:
curl -X POST \
http://x.x.x.x:8080/restconf/operations/devices/device=P5/ssh/fetch-host-keys \
-H 'Authorization: Basic xxxxxxxxxxxx=' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/yang-data+xml'
Is it possible to fetch keys from multiple devices (P1, P2, P3...) in a single POST or do I have to POST to a unique path for each device?
Thanks,
Shelly
Solved! Go to Solution.
09-20-2018 12:21 PM
09-20-2018 02:19 AM
09-20-2018 12:12 PM
That would work for my use case. However, I can't figure out how to do that in RESTCONF.
These don't work:
/restconf/operations/devices/ssh/fetch-host-keys
/restconf/operations/devices/device/ssh/fetch-host-keys
/restconf/operations/devices/device=(*)/ssh/fetch-host-keys
Help?
09-20-2018 12:21 PM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: