cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1196
Views
0
Helpful
5
Replies

SD-WAN REST API GET REQUEST PARAMETER WITH SLASH

Tak.T
Level 1
Level 1

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

5 Replies 5

@Tak.T i got this work in this example with 

 

https://{{vmanage-ip}}/dataservice/template/config/running/ISR4461%2FK9-FLM243510FF
The above API endpoint was used for the chassis serial ISR4461/K9-FLM243510FF
 
Hope this helps!
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

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

@Tak.T i did not have an issue getting this to work in the APIDOCS or Postman (see below)

 

Screenshot 2021-06-29 at 17.12.35.pngScreenshot 2021-06-29 at 17.04.56.png

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

@bigevilbeard 

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

@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.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io