ISPConfig API: sites_database_add misses param website_id
When we use the ISPConfig panel to add a new database it asks for the website where the database should be member of.
When looking inside the ISPConfig API we see that website_id is missing:
18 $client_id = 1; 19 $params = array( 20 'server_id' => 1, 21 'type' => 'mysql', 22 'database_name' => 'db_name2', 23 'database_user_id' => '1', 24 'database_ro_user_id' => '0', 25 'database_charset' => 'UTF8', 26 'remote_access' => 'y', 27 'remote_ips' => '', 28 'backup_interval' => 'none', 29 'backup_copies' => 1, 30 'active' => 'y' 31 ); 32 33 $database_id = $client->sites_database_add($session_id, $client_id, $params);
When using the API to create databases they are orphaned, since they are not mapped to a website. This makes it very hard to maintain them.
Would be great if website_id param can be added to the next update of ISPConfig API.