简体   繁体   English

用于 SQL 实例 GCP 的 gcloud iam service-accounts list 命令

[英]gcloud iam service-accounts list command for SQL instance GCP

Is there any gcloud command in GCP to list GCP SQL instance iam service-accounts . GCP 中是否有任何gcloud 命令列出 GCP SQL 实例iam service-accounts I am able to see in the GCP UI but I need cli command to print it the terminal.我可以在 GCP UI 中看到,但我需要 cli 命令才能在终端上打印它。 Could some one help me on this.有人可以帮我解决这个问题。

There is no such gcloud command to get only the service account of a sql instance, if you want to get the account of an specific instance you can run this in cloud shell or voa Cloud SDK gcloud sql instances describe instanceName | grep "serviceAccountEmailAddress" There is no such gcloud command to get only the service account of a sql instance, if you want to get the account of an specific instance you can run this in cloud shell or voa Cloud SDK gcloud sql instances describe instanceName | grep "serviceAccountEmailAddress" gcloud sql instances describe instanceName | grep "serviceAccountEmailAddress" the output will be just then one of the service account. gcloud sql instances describe instanceName | grep "serviceAccountEmailAddress" output 将成为服务帐户之一。

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

相关问题 如何使用 gcloud 命令工具将 GCP IAM 策略附加到资源? - How attach a GCP IAM policy to a resource with gcloud command tool? 如何使用 gcloud 命令使用 accessConfig 创建 GCP 实例模板 - How to create GCP Instance-Template with accessConfig using gcloud command GCP Terraform 服务帐户密钥导出 - GCP terraform service accounts keys export GCP Cloud SQL 无法删除实例,因为“deletion_protection”设置为 true - gcloud 切换? - GCP Cloud SQL failed to delete instance because `deletion_protection` is set to true - gcloud toggle? GCP-IAM - 如何授予对组织中所有服务帐户的访问权限? - GCP-IAM - How to grant access to all service account in organization? 如何在 GCP 中列出包含给定权限的所有 IAM 角色 - How to list all the IAM roles that include a given permission in GCP gcloud 命令列出所有项目所有者 - gcloud command to list all project owner GCP:使用 Terraform 从服务帐户中删除 IAM 策略 - GCP: Remove IAM policy from Service Account using Terraform 无法将 GCP IAM API 与服务帐户一起使用 - Can't use GCP IAM API with a service account 如何使用 Terraform 将多个角色分配给 GCP 中的多个服务帐户? - How to assign multiple roles to multiple service accounts in GCP using Terraform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM