small issue with API Hsphere

Discussion in 'Troubleshooting' started by AlexeyShalin, May 7, 2014.

  1. AlexeyShalin

    AlexeyShalin Bit Poster

    I was able to create third level domain via API
    here is my code


    function connect_dnsservice() {
    global $client_dnsserv;
    global $sphere_at;

    $client_dnsserv=new SoapClient("",array("trace"=>1,"exception"=>1));
    // } catch (SoapFault $exception) {

    // }
    return $client_dnsserv;

    function add_domain()

    Domain was added without any issues

    Right now - I would like to remove Default A Records and Custom A Records

    I did not find any function how to remove Default A Records - can you tell me how to do this ?

    and second
    I was not able to add Custom A Record
    PHP Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] Validation failed: Prefix : alphanumeric value (parameter [*]) in /root/hsphere/function.php:61
    Stack trace:
    #0 /root/hsphere/function.php(61): SoapClient->__call('addUserCustomAR...', Array)
    #1 /root/hsphere/function.php(61): SoapClient->addUserCustomARecord(Array, 'murizzzzka.on.k...', '*', '86400', '')
    #3 {main}
    thrown in /root/hsphere/function.php on line 61

    But from Hsphere Panel i'm able to use * when adding new A record

    Can you please help me with creating and deleting ?
  2. FedorK

    FedorK Mega Poster

    Hello Alexey,

    This forum section related only PBAS product and we can answer only on this questions.
    For resolve your issue I recommend you contact Parallels support.

Share This Page