I want to optimize my automated system.
That means having to use the API
I am looking to learn about the API list as follows:
- Create, edit, delete users
- Create, edit, delete website
- Create, edit, delete database
- Create SSL
I have consulted via: https://docs.cyberpanel.net/doku.php?id=cli. But it is not very feasible .
Please help me to have a more reasonable plan.
Thank you very much
Comments
Create and delete website are there
https://docs.cyberpanel.net/doku.php?id=cli-create-website
https://docs.cyberpanel.net/doku.php?id=cli-delete-website
Create and delete database
https://docs.cyberpanel.net/doku.php?id=cli-create-database
https://docs.cyberpanel.net/doku.php?id=cli-delete-database
Issue SSL
https://docs.cyberpanel.net/doku.php?id=cli-issue-ssl
Today I am going to add CLI functions for managing users, what else do you need?
Edit website and database is not available from CyberPanel either.
Regards
CyberPanel
Blog
> Hello
>
> Create and delete website are there
>
> https://docs.cyberpanel.net/doku.php?id=cli-create-website
> https://docs.cyberpanel.net/doku.php?id=cli-delete-website
>
> Create and delete database
>
> https://docs.cyberpanel.net/doku.php?id=cli-create-database
> https://docs.cyberpanel.net/doku.php?id=cli-delete-database
>
> Issue SSL
>
> https://docs.cyberpanel.net/doku.php?id=cli-issue-ssl
>
> Today I am going to add CLI functions for managing users, what else do you need?
>
> Edit website and database is not available from CyberPanel either.
>
> Regards
Can you give me an example when combined with php?
https://github.com/jetchirag/cyberpanel-whmcs/blob/master/api.php
https://github.com/jetchirag/cyberpanel-whmcs/blob/master/cyberpanel.php
For CLI commands that are mentioned above can be executed as it is from any programming language.
CyberPanel
Blog
> https://cyberpanel.docs.apiary.io/#
>
> https://github.com/jetchirag/cyberpanel-whmcs/blob/master/api.php
> https://github.com/jetchirag/cyberpanel-whmcs/blob/master/cyberpanel.php
>
> For CLI commands that are mentioned above can be executed as it is from any programming language.
Thanks for your support
After researching, I found the appropriate solution. I use the phpseclib library to log into ssh and execute the cli directly on it!
> Need user terminate feature over api. also force user terminate system which will delete all db, email account and everything during user account termination. currently if user has any website or we cant terminate that user. thus we have to manually remove them one by one then terminate the user.
Use the "phpseclib" library to implement CLI