简体   繁体   English

使用Google Cloud Service帐户

[英]Using google cloud service account

I am given a google cloud service account with 1] A client id 2] An email id 3] Certificate fingerprint 4] .p12 file 我获得了一个Google云服务帐户,其中包含1]客户端ID 2]电子邮件ID 3]证书指纹4] .p12文件

I had a java process previously that was communicating with big query with my own personal email account with client secret file etc. This setup is working just fine. 我以前有一个Java进程,该进程正在使用我自己的个人电子邮件帐户(带有客户端机密文件等)与大型查询进行通信。

Now that I have to use this service account, I did not see any client secret provided with this account. 现在,我必须使用此服务帐户,因此看不到此帐户提供的任何客户机密。 I am wondering how am i supposed to integrate this service account into my current process. 我想知道我应该如何将此服务帐户集成到当前流程中。

I tried to find a bunch of things on google but finally found this: https://developers.google.com/identity/protocols/OAuth2ServiceAccount 我试图在Google上找到一堆东西,但最终找到了这个东西: https : //developers.google.com/identity/protocols/OAuth2ServiceAccount

is this correct way to use this or for service accounts there is something else ? 这是用于服务帐户的正确方法还是针对其他服务帐户? Is there a better example somewhere where i can see proper steps to use the info i have to access google cloud from my app with a service account. 有没有更好的例子,我可以在其中看到适当的步骤来使用信息,我必须通过服务帐户从我的应用访问Google Cloud。

Thanks. 谢谢。

Yes, the link you have is the way to use service account. 是的,您拥有的链接是使用服务帐户的方式。 You need to get the "client secret" from the developer console , in the form of a json or p12 file. 您需要从开发人员控制台以json或p12文件的形式获取“客户端机密”。

As for example, storage-serviceaccount-cmdline-sample should serve as a good simple sample. 例如, storage-serviceaccount-cmdline-sample应该是一个很好的简单示例。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Python 中的服务帐户向 Google Cloud 进行身份验证? - How to Auth to Google Cloud using Service Account in Python? 从 Google Cloud Storage 提供 Google 客户服务帐户的 keyFilename - Providing keyFilename of Google Client Service Account from Google Cloud Storage Google Cloud from_service_account_json环境变量 - Google Cloud from_service_account_json env variables 将数据上传到 BigQuery 的 Google Cloud Function 的服务帐户角色 - Service account role for a Google Cloud Function that uploads data to BigQuery Google Cloud BigQuery Admin服务帐户获得“没有bigquery.jobs.create权限” - Google Cloud BigQuery Admin service account gets “does not have bigquery.jobs.create permission” 使用Google Group for Service帐户访问BigQuery数据集 - BigQuery dataset access using Google Group for service account 如何使用服务帐户确定Google BigQuery作业的状态? - How to determine the status of a Google BigQuery job using a Service Account? 无法使用服务帐户访问Google REST Api - Not able to access Google REST Api using Service Account Google Bigquery 401使用服务帐户未经授权的错误 - Google Bigquery 401 unauthorized error using Service Account 使用项目 1 的服务帐户 Json 密钥从项目 2 中的 Python 云 Function 访问项目 1 的 BigQuery 数据存储 - Access BigQuery DataStore of Project1 from Python Cloud Function in Project 2 using Service Account Json Key of Project 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM