Userid on DNS Zone API

Discussion in 'ISPConfig 3 Priority Support' started by tr909192, Sep 12, 2017.

  1. tr909192

    tr909192 Member HowtoForge Supporter

    Dear,

    we are trying to insert some domain zone via API.
    We have just trouble to understand what we need to pass to the api as $client_id:

    $id_zone=$client->dns_zone_add($session_id, $client_id, $params);

    Because on the sys_user there is several id related to the user:

    userid
    sys_userid
    sys_groupid
    groups
    default_group
    client_id


    What is he correct value to choose?
    Thank you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The client_id is the client_id and not the sys_userid. The client_id refers to the database table client and identifies a client. It is also stored as a relation in the sys_user table, field client_id.
     
  3. tr909192

    tr909192 Member HowtoForge Supporter

    ok, thank you.
     
  4. tr909192

    tr909192 Member HowtoForge Supporter

    Sorry for the thread re-open, but from the web_domain table if i need to get the client_id associated to a specific domain. What field I need to query? Because from there on web_domain table i see only the sys_userid and sys_groupid.
     
    Last edited: Sep 13, 2017
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The remote function to get a client_id based on the sys_userid is:

    client_get_id($session_id, $sys_userid)
     
    tr909192 likes this.

Share This Page