DO Ideas 2

VNC access through api

Please give back the VNC login information for a droplet through the api. This way you are a great company for resellers because the can then integrate it within there system. I hoped it was already with the v2 release with api..

  • Tim
  • Sep 11 2018
  • Attach files
  • Ashan commented
    September 11, 2018 17:27

    We have a requirement that we need to access given droplet console access via publicly (which is same as provided under given droplet-> Access -> Console access [Launch Console Access]), which can be droplet VNC view via noVNC.

    For example: for this, we can use API -> Retrieve an existing Droplet by id [https://developers.digitalocean.com/documentation/v2/#retrieve-an-existing-droplet-by-id] and it may contain the public url for that droplet console access.

    Q: Could you explain why you need this though or how you would use it?
    A: We need this as we have a application that provides lab environments (for a lab there are multiple VM to be access) to students to practice.

    With public url for a given VM, student can access the server without any hassle.Apart from that above feature is benefit for developers as well , when we need to access DO droplets/VM from third party applications, etc.

    In any case , many education institutes->services provide above feature to students from their portal.

    For eg :

    - RedHat provide their certification course lab access via Orcale Ravelo platform VM API (https://www.ravellosystems.com/ravello-api-doc/#get-vm-vnc-url)

    - Similarly Vultr provide it via their API as well (https://www.vultr.com/api/#server_server_list)

    - Also, OVH Cloud provide same feature by default (https://ca.api.ovh.com/console/#/cloud/project/%7BserviceName%7D/instance/%7BinstanceId%7D/vnc#POST
    [/cloud/project/{serviceName}/instance/{instanceId}/vnc - Get VNC access to your instance] )


    By default many cloud providers, support Public VNC access to droplet via own API as a default feature. Most of us developers are very eager see this as feature in Digital Ocean.

  • Anonymous commented
    September 11, 2018 17:27

    API Feature Request
    December 31, 2013 1.8k views


    Hi,

    I am starting to develop custom application utilize DigitalOcean API to manage droplet, however it seems that some feature is missing,

    1. I want to be able to access VNC console, how to get the droplet's VNC information via API?
    2. I want to show droplet usage statistic (CPU, RAM, Disk, Bandwidth). how to get all these parameters via API?

    It'd be a good idea to add those things as API features.

    Thanks in advance.

  • Tommy McNeely commented
    September 11, 2018 17:27

    As a workaround, you can "derive" the console URL, but without it being preauthenticated, you need to login as the account owner. Its not great, but at least it works for some.

    https://cloud.digitalocean.com/droplets/#{id}/console

  • Tommy McNeely commented
    September 11, 2018 17:27

    Yes, There should be an ability to return the URL to access the console.

    As a "phase 2" it would be nice if the URL had some sort of "pre-authenticated" access for 60 seconds after generating the URL, so that console access wouldn't require additional authentication beyond the API credentials.