1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk API

Discussion in 'Plesk for Linux - 8.x and Older' started by Dimitry, Sep 18, 2006.

  1. Dimitry

    Dimitry Guest

    0
     
    Hello,
    Can someone give me XML example how to associate Domain Template with created Domain?

    Sorry, solution found.
     
  2. frostie

    frostie Guest

    0
     
    Would you care to post the solution so that others may find out what it was?
     
  3. Dimitry

    Dimitry Guest

    0
     
    <packet version="1.4.1.0">
    <domain>
    <add>
    <gen_setup>
    <name>www.mydomain.com</name>
    <client_id>%ID OF CLIENT%</client_id>
    <htype>vrt_hst</htype>
    <ip_address>1.1.1.1</ip_address>
    <status>16</status>
    </gen_setup>
    <hosting>
    <vrt_hst>
    <ftp_login>ftpuser123</ftp_login>
    <ftp_password>123456</ftp_password>
    <ip_address>1.1.1.1</ip_address>
    </vrt_hst>
    </hosting>
    <user>
    <enabled>true</enabled>
    <password>PASSWORD</password>
    <pname>PNAME</pname>
    <email>EMAIL</email>
    <multiply_login>false</multiply_login>
    <cname/>
    <phone/>
    <fax/>
    <address/>
    <city/>
    <state/>
    <pcode/>
    <country/>
    </user>
    <template-name>SMSHostingTemplate</template-name>
    </add>
    </domain>
    </packet>

    And also not template_id but template-id

    There are some mistakes in Plesk documentation... hate this!
     
  4. wickedwebsites

    wickedwebsites Basic Pleskian

    23
    57%
    Joined:
    Sep 27, 2006
    Messages:
    34
    Likes Received:
    0
    Hi,

    I'm new to plesk, what would this do, and where would this go?

    I'm interested in learning about API things..
     
  5. Dimitry

    Dimitry Guest

    0
     
  6. cfnick1

    cfnick1 Guest

    0
     
    Error when using example

    Dimitry,

    Thank you for the example. Unfortunately I received the same error as I've been getting all day:

    Unable to update hosting preferences. hosting update failed: cObject->update() failed: Some fields are empty or contain an improper value: 'fp_adm' = , 'fp_pass' = . Incorrect fields: "fp_adm","fp_pass".

    It sounds like plesk is saying incorrect field names are being passed in: fp_adm and fp_pass, but I'm not even passing them in and I don't see these field names specified in the documentation. Any ideas? Also, were you able to successfully apply a domain template?
    Thank you
     
  7. cfnick1

    cfnick1 Guest

    0
     
    Solution

    It was a misconfiguration with the domain template that was specified in plesk. "Frontpage Support" was checked, but "Frontpage Authoring" was disabled. Enable or disable both.
     
Loading...