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

Using the API to get the Server ID from a Domain ID

Discussion in 'Plesk Expand 2.1 General Discussion' started by chris_noel, Mar 4, 2007.

  1. chris_noel

    chris_noel Guest

    0
     
    Hi all,

    I have been unable to find an API packet that allows me to query expand with a domain id or domain name and return the server_id for the server it resides on.

    I would have thought it would be under the exp_plesk_domain operator but no joy... any clues etc would be most welcome :)

    Regards,

    Chris
     
  2. regx

    regx Guest

    0
     
    Looks like the only way is to choose all domains of that Plesk server and look for yours one among them, e.g.:
    Code:
    <?xml version="1.0"?>
    <packet version="2.1.1.16">
    <get>
    <filter>
            <server_id>1</server_id>
    </filter>
    <dataset>
            <gen_info/>
    </dataset>
    </get>
    </packet>
    
     
  3. chris_noel

    chris_noel Guest

    0
     
    Yeah, thats what I suspected, seems a bung way of doing things... might suggest this as a new feature request to Expand.

    Cheers for the reply mate :)
     
Loading...