cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
513
Views
0
Helpful
3
Replies

Does this Cisco ASR100x support REST Api ?

bowbth
Level 1
Level 1

Hi all,

 

I have one very old router which is Cisco ASR1000x thus I wanted to try REST api

and also wanted to know how many features of REST api in this product ? 

the required scope like a simple feature (GET,POST,PUT,DELETE) for retrieve data, controlling, updateing and else via CURLs tool.

however I'm not sure mine will work. please see below

 

 

PFR2#sh ver

Cisco IOS XE Software, Version 03.17.02.S - Standard Support Release
Cisco IOS Software, ASR1000 Software (PPC_LINUX_IOSD-ADVIPSERVICESK9-M), Version 15.6(1)S2, RELEASE SOFTWARE (fc1)
Cisco IOS-XE software, Copyright (c) 2005-2016 by cisco Systems, Inc. All rights reserved.  Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0.  The

software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0.  For more details, see the

documentation or "License Notice" file accompanying the IOS-XE software,or the applicable URL provided on the flyer accompanying the IOS-XE software.

ROM: IOS-XE ROMMON
PFR2 uptime is 1 week, 2 days, 22 hours, 2 minutes
Uptime for this control processor is 1 week, 2 days, 22 hours, 6 minutes
System returned to ROM by reload
System image file is "bootflash:/asr1000rp1-advipservicesk9.03.17.02.S.156-1.S2-std.b"

Last reload reason: Reload Command

cisco ASR1002-F (2RU) processor (revision 2RU) with 1640599K/6147K bytes of memory.
Processor board ID FOX1435H5AX
9 Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
7798783K bytes of eUSB flash at bootflash:.
Configuration register is 0x2102

besides, I've searched from internet and found this, https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIintro.html

 

said ASR is supported for REST api but no detail about the  or i might miss something.

ap.PNG

 

thank you in advance.

3 Replies 3

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

You need to install the REST-API 1000v OVA file into a container on the ASR:

 

https://software.cisco.com/download/home/284364978/type/286283116/release/3.16.04a.S

 

..details on the install can be found here:

https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIinstall.html

 

...the base document details what resources can be interacted with via the API:

https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi.html

 

cheers,

Seb.

Hello

 

First of all, thanks for your information. I really appreciated. 

I will immediately read and following the guidelines.

 

One more question

Previously, I tried this feature on Cisco CSR1000v with VMware workstation 

and also enabled rest api on it. However, there was a problem with response information from curls.

 

handshake_failure.PNG

I've searched from all of the website appeared in google, but it wasn't working.

can you give me some suggestion ? 

 

 

I've not much experience with using curl and REST. Normally I run tests with postman and then code everything else in python.

 

The only clue I can find is this post:

https://unix.stackexchange.com/questions/192944/how-to-fix-curl-sslv3-alert-handshake-failure#192953

 

...worth a try.

 

cheers,

Seb

 

Review Cisco Networking for a $25 gift card