2023-08-27 10:55:55 +02:00
---
title: gcpCredentials
slug: /main-concepts/metadata-standard/schemas/security/credentials/gcpcredentials
---
# GCPCredentials
*GCP credentials configs.*
## Properties
- **`gcpConfig` **: We support two ways of authenticating to GCP i.e via GCP Credentials Values or GCP Credentials Path.
2025-01-15 17:46:55 +05:30
- **One of**
- : Refer to *[gcpValues.json](#pValues.json)* .
- : Refer to *[#/definitions/gcpCredentialsPath](#definitions/gcpCredentialsPath)* .
- : Refer to *[gcpExternalAccount.json](#pExternalAccount.json)* .
- **`gcpImpersonateServiceAccount` **: we enable the authenticated service account to impersonate another service account. Refer to *[#/definitions/GCPImpersonateServiceAccountValues](#definitions/GCPImpersonateServiceAccountValues)* .
2023-08-27 10:55:55 +02:00
## Definitions
2025-01-15 17:46:55 +05:30
- **`gcpCredentialsPath` ** *(object)* : Pass the path of file containing the GCP credentials info.
- **`type` ** *(string)* : Google Cloud Platform account type. Default: `"gcp_credential_path"` .
- **`path` ** *(string)* : Path of the file containing the GCP credentials info.
- **`projectId` ** *(string)* : GCP Project ID to parse metadata from. Default: `null` .
2023-10-28 00:07:31 +05:30
- **`GCPImpersonateServiceAccountValues` ** *(object)* : Pass the values to impersonate a service account of Google Cloud.
- **`impersonateServiceAccount` ** *(string)* : The impersonated service account email.
- **`lifetime` ** *(integer)* : Number of seconds the delegated credential should be valid. Default: `3600` .
2023-08-27 10:55:55 +02:00
2025-01-15 17:46:55 +05:30
Documentation file automatically generated at 2025-01-15 09:05:25.266839+00:00.