02-02-2018 02:27 PM - edited 03-01-2019 04:05 AM
A call like the following does not drill down into the entire config of the device:
curl -u nsouser:nsouser http://127.0.0.1:8080/api/config/devices/device/ucsm011/config/org/service-profile/<service-profile>
I have to do something like this in order to get more detail:
curl -s -u nsouser:nsouser -H "Accept: application/vnd.yang.collection+json" http://127.0.0.1:8080/api/config/devices/device/ucsm011/config/org/service-profile/<service-profile>/vnic
Is there a way to return the entire config as opposed to just the top level and forcing me to fetch each collection?
Solved! Go to Solution.
02-02-2018 02:45 PM
Yes, add ?deep to the URL, e.g. curl -u nsouser:nsouser http://127.0.0.1:8080/api/config/devices/device/ucsm011/config/org/service-profile/<service-profile>?deep
You may have to escape the ?, i.e. curl -u nsouser:nsouser http://127.0.0.1:8080/api/config/devices/device/ucsm011/config/org/service-profile/<service-profile>\?deep
02-02-2018 02:45 PM
Yes, add ?deep to the URL, e.g. curl -u nsouser:nsouser http://127.0.0.1:8080/api/config/devices/device/ucsm011/config/org/service-profile/<service-profile>?deep
You may have to escape the ?, i.e. curl -u nsouser:nsouser http://127.0.0.1:8080/api/config/devices/device/ucsm011/config/org/service-profile/<service-profile>\?deep
02-02-2018 05:49 PM
Awesome thanks! Knew there must be a way.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide