Create database remote connection
Allows 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.
Allows 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.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
usernamestringRequiredExample:
u123456789namestringRequiredExample:
Full database name as returned by the list databases endpoint.
u123456789_test_dbBody
ipstringRequiredExample:
Remote host to allow: an IPv4/IPv6 address, or "%" for any host.
192.0.2.10Responses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
post/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections
POST /api/hosting/v1/accounts/{username}/databases/{name}/remote-connections HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"ip": "192.0.2.10"
}{
"message": "Request accepted"
}Last updated
Was this helpful?