Delete database remote connection
Permanently removes a remote-access rule, revoking the given host's remote access to the database.
Permanently removes a remote-access rule, revoking the given host's remote access to the database.
Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or "%", exactly as returned by the list remote connections endpoint). 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_dbQuery parameters
ipstringRequiredExample:
Remote host to revoke: the IPv4/IPv6 address, or "%", exactly as returned by the list remote connections endpoint.
192.0.2.10Responses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
500
Error response
application/json
delete/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections
DELETE /api/hosting/v1/accounts/{username}/databases/{name}/remote-connections?ip=192.0.2.10 HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"message": "Request accepted"
}Last updated
Was this helpful?