> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dscloud.pt/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar bancos MySQL

> Lista os bancos MySQL visíveis nas aplicações da conta.

Lista os bancos MySQL visíveis nas aplicações da conta. A listagem não inclui senhas.

## Resposta

HTTP 200. `response` é um array.

```json HTTP 200 theme={null}
{
  "status": "success",
  "code": "SUCCESS",
  "response": [
    {
      "id": "db-exemplo",
      "name": "db1234",
      "type": "mysql",
      "ip": "db.example.com",
      "user": "usuario_exemplo",
      "created_at": null
    }
  ],
  "success": true
}
```

## Erros desta operação

| HTTP | Código | Quando ocorre |
| - | - | - |
| 500 | `DATABASE_LIST_FAILED` | Falha ao listar bancos. |

```bash cURL theme={null}
: "${DSCLOUD_API_BASE_URL:=https://api.dscloud.pt/v3}"
curl --proto '=https' --fail-with-body --request GET \
  --header "Authorization: ${DSCLOUD_API_KEY:?Defina DSCLOUD_API_KEY}" \
  "${DSCLOUD_API_BASE_URL%/}/databases"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.