da_legacy
Call legacy DirectAdmin CMD_API_* / CMD_* endpoints directly to perform administrative operations. Specify command, method, form data, optional user impersonation, and confirmation for POST requests.
Instructions
Call a legacy CMD_API_* / CMD_* endpoint.
Only commands that start with CMD_API_ or CMD_ are accepted.
Args: command: e.g. CMD_API_SHOW_ALL_USERS or /CMD_API_SSL method: GET or POST data: Form fields. json=yes is added automatically. impersonate: Optional user. confirm: Required for POST.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| method | No | POST | |
| command | Yes | ||
| confirm | No | ||
| impersonate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |