Skip to content

Parameter Manager

The Parameter Manager integration provides a client for interacting with Google Cloud Parameter Manager.

Initialize the ParameterManagerClient

You can initialize the ParameterManagerClient in a few ways:

Using default credentials

from google.adk.integrations.parameter_manager.parameter_client import ParameterManagerClient

client = ParameterManagerClient()

With a service account JSON string

client = ParameterManagerClient(service_account_json="...")

With an auth token

client = ParameterManagerClient(auth_token="...")

Retrieve a parameter

To retrieve a parameter, use the get_parameter method with the full resource name of the parameter version:

value = client.get_parameter("projects/my-project/locations/global/parameters/my-param/versions/latest")