cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
635
Views
10
Helpful
1
Replies

NFVIS API | VNC Console start API call

Evgeniy_Butakov
Beginner
Beginner

Hello, 

 

I'm trying to start VNC console using REST API on NFVIS.

According to NFVIS API reference you have to do POST request to  /api/operations/vncconsole/start without payload, which obviously doesn't make sense as host might have multiple VNF deployed and without payload we cant specify to which VM we would like to have a VNC console. As expected host returns HTTP 400 response which means Bad Request. Could anyone provide me with correct uri/payload to open VNC console?

Thanks.

Evgeniy

1 Reply 1

Evgeniy_Butakov
Beginner
Beginner

Solution has been found.

json payload should be 

{"deployment-name": <put deployment name here as string>, "vm-name": <put vm name here as string>}

 works on NFVIS 4.7.x, but doesnt work on 3.12

Please note that API call doesn't return VNC port number as I think it should, but you can connect to port 6001 at first call. With every subsequent call port number is incrementing by 1(6001, 6002 etc)

VNC URL is https://<ip>:<port>/vnc_auto.html

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers