您好,我正在使用下面的restapi commamd在GCP中创建服务帐户密钥。从cloud shell运行该命令,但不确定是否正确。API密钥凭据生成的curl POST https://iam.googleapis.com/v1/projects/project_iD/serviceAccounts/ser
我有一个拥有项目所有者权限的服务帐户(仅用于测试),但我仍然无法通过gcloud使用该服务帐户创建API密钥。它显示“权限被拒绝”我正在使用以下命令。key-file=<key-file>.json
gcloud auth list //Gives the service account name
gcloud alpha services api-keyscreate