Skip to content

Objects: ConsoleCredentials

Danny Li edited this page Apr 2, 2018 · 1 revision

The ConsoleCredentials object has the following methods:

<?php
use Exploriment\HetznerCloud;

/**
 * Returns the URL of the websocket proxy to use.
 * This includes a token which is valid for a limited time only.
 *
 * @return string
 */
$credentials->getWssUrl();

/**
 * VNC password to use for this connection.
 * This password only works in combination with a wss_url with valid token.
 *
 * @return string
 */
$credentials->getPassword();

/**
 * returns the Action object
 * @see https://github.com/Exploriment/hcloud-php/wiki/resources:-actions#action-object
 */
$credentials->getAction();
Clone this wiki locally