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

    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 :)


  2. regx

    regx Guest

    Looks like the only way is to choose all domains of that Plesk server and look for yours one among them, e.g.:
    <?xml version="1.0"?>
    <packet version="">
  3. chris_noel

    chris_noel Guest

    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 :)