AI Google

📅 2026/7/22 10:36:54 👁️ 阅读次数 📝 编程学习
AI Google

為項目賦予角色

gcloud projects add-iam-policy-binding inlaid-reach-334009 \ --member="serviceAccount:ai-google@inlaid-reach-334009.iam.gserviceaccount.com" \ --role="roles/language.user"

查詢項目是否有該角色

gcloud projects get-iam-policy inlaid-reach-334009 --format=json | grep roles/editor

Windows Credential

set GOOGLE_APPLICATION_CREDENTIALS=D:\keys\vertex-ai-key.json
echo %GOOGLE_APPLICATION_CREDENTIALS%

OR