List database remote connections
Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or "%" for any host) allowed to connect to the account databases.
Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or "%" for any host) allowed to connect to the account databases.
Use the domain filter to only return rules for databases assigned to a specific domain.
API Token authentication
u123456789Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
example.comSuccess response
Full name of the database the rule applies to.
u123456789_shopDatabase user the rule applies to.
u123456789_adminAllowed remote host: an IPv4/IPv6 address, or "%" for any host.
192.0.2.10Unauthenticated response
Error response
GET /api/hosting/v1/accounts/{username}/databases/remote-connections HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"database_name": "u123456789_shop",
"database_user": "u123456789_admin",
"ip": "192.0.2.10"
}
]Last updated
Was this helpful?