Hi there,
Is it possible to access APIs via BQ Notebooks? If yes, where do we store credentials - can I use GCP Secrets Manager or store in GCP Storage?
Many thanks for helping
Phoebe
Solved! Go to Solution.
Yes, it is possible to access APIs via BQ Notebooks in Google Cloud. You can use the following approaches:
Using Google Cloud Client Libraries:
Using Python Libraries for External APIs:
requests
.Executing Shell Commands:
!
operator to execute shell commands within your notebook.Storing Credentials Securely
Storing API credentials directly within your notebook is not recommended due to security risks. Here are more secure options:
Google Cloud Secrets Manager:
Google Cloud Storage:
Environment Variables:
Best Practices for Enhanced Security and Management:
Yes, it is possible to access APIs via BQ Notebooks in Google Cloud. You can use the following approaches:
Using Google Cloud Client Libraries:
Using Python Libraries for External APIs:
requests
.Executing Shell Commands:
!
operator to execute shell commands within your notebook.Storing Credentials Securely
Storing API credentials directly within your notebook is not recommended due to security risks. Here are more secure options:
Google Cloud Secrets Manager:
Google Cloud Storage:
Environment Variables:
Best Practices for Enhanced Security and Management: