Skip to main content
POST
/
admin
/
connections
/
google-vertex-validate
Validate Google Vertex access
curl --request POST \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/admin/connections/google-vertex-validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "my-gcp-project",
  "location": "us-central1",
  "auth_type": "google_service_account",
  "model_api_family": "vertex_gemini",
  "target_service_account": "[email protected]",
  "credentials": {},
  "model": "gemini-1.5-pro"
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Body

application/json
project_id
string
required
Example:

"my-gcp-project"

location
string
required
Example:

"us-central1"

auth_type
string

Defaults to google_adc if omitted

Example:

"google_service_account"

model_api_family
enum<string>
default:vertex_gemini
Available options:
vertex_gemini,
anthropic_messages
target_service_account
string

Service account to impersonate (only for google_impersonation)

credentials
object

Service-account JSON fields (only for google_service_account)

model
string

Optional model id used to validate end-to-end model access

Example:

"gemini-1.5-pro"

Response

Validation result

ok
boolean
Example:

true