cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
827
Views
0
Helpful
1
Replies

NXAPI in MDS 404 Not Found

pradsrin
Cisco Employee
Cisco Employee

Hi,

In MDS device we were not able to post data in below mentioned URL, We were get 404 Error

https://xxx.xxx.xxx.xxx:630/api/mo/sys.json

 

But the same URL, we were able to successfully post data in N9K device.

 

We have followed the below mentioned steps to make sure NXAPI was enabled in MDS

Enabled NXAPI feature

Enabled Https Port

Configured with new port number

 

Note : In both MDS and N9k, we were able to successfully post data in https://xxx.xxx.xxx.xxx:630/ins

So we doubt whether the below mentioned url is only supported in N9k? 

https://xxx.xxx.xxx.xxx:630/api/mo/sys.json

1 Reply 1

Sergiu.Daniluk
VIP Alumni
VIP Alumni

MDS does not look to support REST MIB based APIs. It only lists as NX-API CLI:

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/mds9000/sw/8_x/programmability/cisco_mds9000_programmability_guide_8x/nx_api.html 

Have a look at the Nexus vs MDS supported APIs: https://developer.cisco.com/site/cisco-nexus-nx-api-references/ 

Btw, you can use sandbox for testing supported APIs on both platforms: after you enable feature nxapi, connect in a browser to https://<mgmt-ip-address>/ and you will see all available apis.

 

Stay safe,

Sergiu