Disable services from API

Discussion in 'ISPConfig 3 Priority Support' started by tr909192, Oct 17, 2019.

  1. tr909192

    tr909192 Member HowtoForge Supporter

    Dear,

    we heavily use the API in order to automatize some operations on the control panel. For example enable/disable services.
    In order to enable/disable the website we use the method: sites_web_domain_set_status
    This method, update the website status on the main interface (active or inactive based on what you want to do) and insert in the job queue the correct job to active/inactive the website on the slave server.
    But for others services like mail and dns, we use the method:

    mail_domain_set_status
    dns_zone_set_status

    on this method it's look like that the only actions that they made is update the status on the interface, but no job is included on the job queue. So no activation/inactivation is do for real on the slave server. Can you confirm that or i'm going to wrong something?

    ty
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I never used any status methods from API, I always use the _update methods which can be used to activate and deactivate a service.
     
    tr909192 likes this.
  3. tr909192

    tr909192 Member HowtoForge Supporter

    got it. maybe the _status method are missing something. now changed with _update and they are worked as expected.

    ty
     
    till likes this.

Share This Page