Accessing the API

Secret Manager exposes a REST API and a gRPC API for using and managing secrets directly or in your applications. This topic shows how to enable the Secret Manager API.

When the Secret Manager API is enabled, you can use the following tools to help integrate Secret Manager into your applications and processes.

  • The Cloud SDK, which provides a command-line interface for managing secrets from clients.
  • Convenient, idiomatic client libraries, which allow you to use secrets in applications written in Go, Python, Java, and other languages, without using the Secret Manager API directly.

Enabling API access

Before you begin using Secret Manager, you must enable API access.

  1. Accede a tu cuenta de Google Cloud. Si eres nuevo en Google Cloud, crea una cuenta para evaluar el rendimiento de nuestros productos en situaciones reales. Los clientes nuevos también obtienen $300 en créditos gratuitos para ejecutar, probar y, además, implementar cargas de trabajo.
  2. En la página del selector de proyectos de Google Cloud Console, selecciona o crea un proyecto de Google Cloud.

    Ir al selector de proyecto

  3. Asegúrate de que la facturación esté habilitada para tu proyecto de Cloud. Descubre cómo confirmar que tienes habilitada la facturación en un proyecto.

  4. Habilita la API necesaria.

    Habilita la API

  5. Instala e inicializa el SDK de Cloud.

After enabling API access, additional configuration may be required, outside of Secret Manager.

  • To access Secret Manager resources from a Compute Engine instance, you must grant the instance the https://www.googleapis.com/auth/cloud-platform OAuth scope. For more information, refer to the Compute Engine documentation.
  • To access Secret Manager resources from App Engine, you must grant the App Engine service the required roles. You can also authenticate as an end user. To learn more, see the App Engine documentation.
  • To learn about authenticating to Google Cloud in different environments, refer to the Authentication overview.

What's next