06-27-2021 09:50 PM
First of all, thank you to those who viewed my previous post(which was written in Japanese).
I would like to expand my chance of getting some reply, so I'm posting this discussion.
Original post in Japanese(SD-WAN REST API経由でルーターのCLIテンプレートを取得する方法について)
I'm having trouble passing a parameter on GET request but, the parameter contains a slash so API doesn't recognize it as a proper value.
I have tried escaping slash to %2F(which assuming correct URL encoding) but couldn't receive the output that I was expected.
API: /template/config/attached/{deviceIdUUID}
deviceIdUUID : ISR4000/ABC1000
Note. ISR4000/ABC1000 isn't the actual value, but the format is like that.
I checked the UUID value by running /template/device GET request.
Please leave a comment if there is any solution to that.
Best regards,
Tak
06-28-2021 07:03 AM
@Tak.T i got this work in this example with
https://{{vmanage-ip}}/dataservice/template/config/running/ISR4461%2FK9-FLM243510FF
06-29-2021 02:08 AM
Hi, @bigevilbeard.
Thank you for your reply!
Now I'm getting 200 response code instead of 404, so I see some improvement,
but unfortunately still not getting the correct CLI template by replacing slash to %2F.
I also double-checked config on exists on vManage/Configuration/Devices/Local Configuration/CFS, and the config was there.
What I want to accomplish is that receive the CLI template's config value like access-list, class-map, VPN, etc.
I attached a screenshot of the test result, so please let me know if I'm doing something wrong.
Best regards,
Tak
06-29-2021 09:24 AM
@Tak.T i did not have an issue getting this to work in the APIDOCS or Postman (see below)
06-29-2021 06:12 PM
Thank you for testing it out.
I am sorry for asking too much, but could you test to see if that runs with a parameter that contains a slash?
(deviceUUID = ISR4461%2FK9-FLM243510FF)
Best regards,
Tak
06-30-2021 02:35 AM
@Tak.T sadly i do not have an environment to test that (all my testbeds are virtual). Have you tried for example for ISR4331 router the deviceUUID would be ISR4331/K9-FDO19490SLG?
Hope this helps.
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