• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Command Line Interfase to SB anyone?

J

JRios

Guest
I am not too familiar with SB yet, i am looking for a way to auto create users con SB, perhpas as in PLESK by a command line, or in this case is it as simple as adding the user directable to the database table??? ... any help would be appreciated ! ;)
 
thanks....i e?

Thanks for the response, i can almost figure out what to do, care to give me and example? i mean how do i send that command? thru a web page? do i just put it in a http request? should i run it from the server? :( any help appreciated

BTW, i am using SB for Linux ...
 
SiteBuilder implements SOAP-based API (http://en.wikipedia.org/wiki/SOAP)

Here is the simple code that invokes CreateAccountWithNewPlan to create reseller. Note that in practice one should use a combination of CreatePlan and CreateAccountFull instead of CreateAccountWithNewPlan.

Code:
#!/usr/bin/env perl

use SOAP::Lite +trace => [ qw (all) ];

my $soap = SOAP::Lite
    -> proxy('http://sitebuilder.yourserver/ServiceFacade/AccountWebService.asmx')
    -> ns('http://swsoft.com/SiteBuilder/AccountService/v_3_2');

my @headers = (SOAP::Header->name("CredentialsSoapHeader" =>
                \SOAP::Data->value(
					SOAP::Header->name("Login" => "admin"),
					SOAP::Header->name("Password" => "admin")
                )
));
$headers[0]->uri("http://swsoft.com/SiteBuilder/AccountService/v_3_2");

my @data = (
        SOAP::Data->name("username", "test"),
        SOAP::Data->name("password", "test"),
        SOAP::Data->name("firstName", "john"),
        SOAP::Data->name("lastName", "doe"),
        SOAP::Data->name("email", '[email protected]'),
        SOAP::Data->name("role", "Reseller"),
);

$soap->CreateAccountWithNewPlan(@data, @headers);

You'll need sitebuilder-remote_admin package installed as well as perl with SOAP::Lite to run this code.
 
Back
Top