I have some questions about the API looking forward to help

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: cli [CyberPanel Docs]. But it is not very feasible .
    Please help me to have a more reasonable plan.
    Thank you very much

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

Type your comment> @usmannasir said:

Hello

Create and delete website are there

cli-create-website [CyberPanel Docs]
cli-delete-website [CyberPanel Docs]

Create and delete database

cli-create-database [CyberPanel Docs]
cli-delete-database [CyberPanel Docs]

Issue SSL

cli-issue-ssl [CyberPanel Docs]

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://cyberpanel.docs.apiary.io/#

For CLI commands that are mentioned above can be executed as it is from any programming language.

Type your comment> @usmannasir said:

CyberPanel API · Apiary

cyberpanel-whmcs/api.php at master · jetchirag/cyberpanel-whmcs · GitHub
cyberpanel-whmcs/cyberpanel.php at master · jetchirag/cyberpanel-whmcs · GitHub

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.

Type your comment> @jobayer said:

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