---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/databaseConnections/{databaseConnectionsId}:test"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/databaseConnections/{databaseConnectionsId}:test"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/databaseConnections/{databaseConnectionsId}:test

`POST /v1/projects/{projectsId}/locations/{locationsId}/databaseConnections/{databaseConnectionsId}:test`

## Request

- Base URL: `https://oracledatabase.googleapis.com`
- URL: `https://oracledatabase.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/databaseConnections/{databaseConnectionsId}:test`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Tests connectivity of a DatabaseConnection.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `databaseConnectionsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- TestDatabaseConnectionRequest: Request message for `DatabaseConnection.TestDatabaseConnection`.

## Response `200`

Successful response

- TestDatabaseConnectionResponse: Response message for `DatabaseConnection.TestDatabaseConnection`.
  - `errorMessage` string: Error message if the test connection failed.
  - `success` boolean: Whether the test connection was successful.

---

[API](https://skmtc.dev/google/apis/oracledatabase.md) - [All operations](https://skmtc.dev/google/apis/oracledatabase/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/oracledatabase/revisions/215e9c1e9c3f?raw)
