v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
Hosting: Databases

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.

Use the domain filter to only return rules for databases assigned to a specific domain.

get/api/hosting/v1/accounts/{username}/databases/remote-connections

Path parameters

usernamestring required
Example:u123456789

Query parameters

domainstring nullable
Example:example.com

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

Response

Success response

database_namestring

Full name of the database the rule applies to.

database_userstring

Database user the rule applies to.

ipstring

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

Example response

[
  {
    "database_name": "u123456789_shop",
    "database_user": "u123456789_admin",
    "ip": "192.0.2.10"
  }
]