Software Defined Networking
1753929 Members
8849 Online
108810 Solutions
New Discussion

Re: HP SDN Controller REST API Authorization failure

 
atul12345
Occasional Advisor

HP SDN Controller REST API Authorization failure

Hi,

 

I have successfully installed and able to acces HP VAN SDN Controller version 2.0.0.4253.

 

I tried connecting via REST API but gets "Connection refused" error. I tried using bith RESTPI Client addon as well as Curl.

 

I checked the port 8080 via netstat and its active.

 

Am I missing anything?

 

Regards

 

Atul

4 REPLIES 4
vandewilly
Advisor

Re: HP SDN Controller REST API Authorization failure

Hi,

 

Are you able to run this attached script?

 

ps: please, change the CONTROLLER_IP variable if necessary.

atul12345
Occasional Advisor

Re: HP SDN Controller REST API Authorization failure

Yes the script runs , but output is general data. No token related information is recieved.

 

However I tried using the link "https://10.204.254.93:8443/api" and it worked.

 

Do you have sample Java code for initial authorization?

 

Regards

 

Atul

vandewilly
Advisor

Re: HP SDN Controller REST API Authorization failure

I'm not sure what is your doubt. Do you need the authorization token to access the REST api from an external application?

 

Take a look in this new shell script, and tell me if solved your problem.

atul12345
Occasional Advisor

Re: HP SDN Controller REST API Authorization failure

Hi,

 

I am planning to write sample Java app using RESTAPI to get the shortest path between 2 nodes. I understand from the documentation that authorization is required before accessing the controller related details.

 

Regards

 

Atul