Actions29
- Server Actions
- File Actions
- Database Actions
- Backup Actions
- Account Actions
Database → Create
AI-generatedSummary
Create a new database on a specified Pterodactyl server using either user-level or admin-level API authentication.
Inputs
- Authentication (required) — Choose between Client API (user-level) or Application API (admin-level) authentication for the request.
- Server Identifier (required) — The alphanumeric identifier of the server from Pterodactyl Panel, found in the server's URL.
- Database Name (required) — The name of the database to create, limited to a maximum of 48 characters.
- Remote Access Pattern (required) — Pattern defining remote access permissions for the database, e.g., % for all hosts or 127.0.0.1 for localhost only.
Output shape
a single JSON object containing details of the created database.
The operation returns the created database's details as a JSON object. Errors during creation are handled according to the node's error handling settings (continue on fail or throw). This operation requires proper API credentials configured based on chosen authentication.
Examples
Example 1: Create a new database named 'my_database' on server 'abc12def' with full remote access.
Set Authentication to 'Client API' or 'Application API', Server Identifier to 'abc12def', Database Name to 'my_database', and Remote Access Pattern to '%'.