For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

List database remote connections

get

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
Query parameters
domainstring · nullableOptional

Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.

Example: example.com
Responses
200

Success response

application/json
database_namestringOptional

Full name of the database the rule applies to.

Example: u123456789_shop
database_userstringOptional

Database user the rule applies to.

Example: u123456789_admin
ipstringOptional

Allowed remote host: an IPv4/IPv6 address, or "%" for any host.

Example: 192.0.2.10
get/api/hosting/v1/accounts/{username}/databases/remote-connections
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?