---
title: "List database remote connections"
method: GET
path: "/api/hosting/v1/accounts/{username}/databases/remote-connections"
tags: ["Hosting: Databases"]
---

# List database remote connections

`GET /api/hosting/v1/accounts/{username}/databases/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.

## Path parameters

- `username` string, required

## Query parameters

- `domain` string, nullable

## Response `200`

Success response

- HostingV1DatabasesRemoteConnectionsRemoteConnectionResource[] — Array of [`Hosting.V1.Databases.RemoteConnections.RemoteConnectionResource`](#model/hostingv1databasesremoteconnectionsremoteconnectionresource)
  - `database_name` string — Full name of the database the rule applies to.
  - `database_user` string — Database user the rule applies to.
  - `ip` string — Allowed remote host: an IPv4/IPv6 address, or "%" for any host.

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/74abfea76e36/schema)
