Overview
This guide will help you to create Single Sign On (SSO) link for Enduser VM(s).
HTTP Request
https://hostname:4083/index.php?act=sso
Parameters
Name | Type | Value | Description | Required |
---|---|---|---|---|
act | GET | sso | The act that has to be carried out to retrieve data | Yes |
svs | GET | Int | The vps id to get SSO link for | Yes |
Sample Code
PHP
<?php
include_once('/usr/local/virtualizor/sdk/enduser.php');
$key = 'API_KEY';
$pass = 'API_PASS';
$ip = 'YOUR_IP';
$port = 4083;
$vpsid = 'VPSID OF YOUR USER';
$enduser = new Virtualizor_Enduser_API($ip, $key, $pass, $port, 1);
$output = $enduser ->sso($vpsid);
?>
CURL
curl -k -X POST -d "svs=VPS_ID" -L "https://hostname:4083/index.php?act=sso&api=json&apikey=your_api_key
&apipass=your_api_pass"
OUTPUT
https://hostname:4083/sessvkD9MBpOg0aFkHfD/?as=efgBrcHtvyVEGcvaeI9q2A9X4kaOAU18&svs=SVS