google-cloud-iam

How do I list all IAM users for my Google Cloud Project

倖福魔咒の 提交于 2019-12-03 11:02:09
I'd like to be able to list all users and service account associated with my projects (preferably using the gcloud CLI tool, but happy to make an API call if needs be). I can easily list all the service accounts associated with a project using this , but how can list all the users too? I'd expect something like the following, but I cannot see anything in the doco: gcloud beta iam users list List all service accounts in a project The following command lists all service accounts associated with a project: $ gcloud iam service-accounts list NAME EMAIL Compute Engine default service account

How do I list the roles associated with a gcp service account?

旧时模样 提交于 2019-11-30 07:54:30
问题 In the google cloud gui console I went to "IAM & admin" > "Service accounts" and created a service account named "my-service-account" with the viewer role. I then ran this command: gcloud iam service-accounts get-iam-policy my-service-account@mydomain.iam.gserviceaccount.com and saw this output: etag: ACAB According to the docs this means this service account has no policy associated with it. So I assigned it a "role" which is not included in its "policy". How do I list the roles associated

Google Cloud Translation API The request is missing a valid API key

烈酒焚心 提交于 2019-11-29 16:59:19
I'm trying to use the Google Cloud Translation API in my application but whenever I try to translate something it comes up with this missing valid API error. I've done the quickstart steps and that didn't work. https://cloud.google.com/translate/docs/quickstart I've tried the steps in the client library authentication and that hasn't worked. https://cloud.google.com/translate/docs/reference/libraries E/AndroidRuntime: FATAL EXCEPTION: main Process: herrsa1.bit.translator, PID: 16598 com.google.cloud.translate.TranslateException: The request is missing a valid API key. at com.google.cloud

How do I list the roles associated with a gcp service account?

拜拜、爱过 提交于 2019-11-29 05:47:29
In the google cloud gui console I went to "IAM & admin" > "Service accounts" and created a service account named "my-service-account" with the viewer role. I then ran this command: gcloud iam service-accounts get-iam-policy my-service-account@mydomain.iam.gserviceaccount.com and saw this output: etag: ACAB According to the docs this means this service account has no policy associated with it. So I assigned it a "role" which is not included in its "policy". How do I list the roles associated with a service account? In Google Cloud you have IAM policies for projects and for service accounts.

Google Cloud Translation API The request is missing a valid API key

懵懂的女人 提交于 2019-11-28 11:13:47
问题 I'm trying to use the Google Cloud Translation API in my application but whenever I try to translate something it comes up with this missing valid API error. I've done the quickstart steps and that didn't work. https://cloud.google.com/translate/docs/quickstart I've tried the steps in the client library authentication and that hasn't worked. https://cloud.google.com/translate/docs/reference/libraries E/AndroidRuntime: FATAL EXCEPTION: main Process: herrsa1.bit.translator, PID: 16598 com