User Tools

Site Tools


json_calls

This is an old revision of the document!


Available JSON Calls

Add a user

{
    "task":"add_user",
    "params":{
        "user":"__USER__" ,
        "password":"__PWD__"
    }
}

user - __USER__ - The system user that would be created
password - __PWD__ - This should be between 8 to 20 characters with a reasonable password strength

Add a VHost/Website

{
    "task":"add_vhost",
    "params":{
        "vhost":"__VHOST__",
        "user":"__USER__" ,
        "php_version":"__PHP_VERSION__" ,
        "with_www":"1|0"
    }
}

vhost - __VHOST__ - The VHost/Website (without www) to be created/added
user - __USER__ - The system user under which the VHost has to be added
php_version - __PHP_VERSION__ - Should be one of the following
with_www - can be either 1 or 0

Add an Alias to a VHost

{
    "task":"add_alias_vhost",
    "params":{
        "alias_vhost":"__ALIAS_VHOST__",
        "vhost":"__VHOST__"
    }
}

alias_vhost - __ALIAS__VHOST__ - The Alias VHost/Website (without www) to be created/added
vhost - __VHOST__ - The VHost/Website (without www) to which the above alias should map to

json_calls.1744794239.txt.gz · Last modified: 2025/04/16 09:03 by kirtisingh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki