Get Virtualizor

Single Sign On (SSO)

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

NameTypeValueDescriptionRequired
actGETssoThe act that has to be carried out to retrieve dataYes
svsGETIntThe vps id to get SSO link forYes

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
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list