Hosting: Databases
Create database remote connection
Changed onAllows a remote host to connect to the specified database.
Provide an IPv4/IPv6 address, or "%" to allow any host. The database name must be the full name returned by the list databases endpoint. Database creation is synchronous, so a 404 here means no database with that name exists under the username, not that it is still being created.
post/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections
- Auth: HTTP bearer
Path parameters
usernamestring required
Example:u123456789
namestring required
Example:u123456789_test_db
Full database name as returned by the list databases endpoint.
Request body
Example request
{
"ip": "192.0.2.10"
}Response
Success empty response
Example response
{
"message": "Request accepted"
}Changes
- info
api operation id
hosting_createAccountDatabaseRemoteConnectionV1removed and replaced withhosting_createDatabaseRemoteConnectionV1
- info
- info
endpoint added
- info