Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
gdcloud auth activate-service-account
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
名稱
gdcloud auth activate-service-account - 使用服務帳戶授權存取 GDC air-gapped。
概要
gdcloud auth activate-service-account [flags]
說明
使用服務帳戶授權存取 GDC 氣隙環境。
如要允許 gdcloud 使用服務帳戶憑證提出要求,請使用這項指令從含有私密授權金鑰的檔案匯入這些憑證,並啟用以供 gdcloud 使用。「gdcloud auth activate-service-account」與「gdcloud auth login」指令的功能相同,但前者使用的是服務帳戶,而非使用者憑證。
範例
To authorize gdcloud to access GDC air-gapped using an existing service account, run:
gdcloud auth activate-service-account --key-file=/path/key.json
必要標記
--key-file string Path to the private key file.
GDCLOUD 廣泛標記
所有指令都可使用這些旗標:--configuration、--format、--help、--project、--quiet。
詳情請參閱 gcloud CLI 參考資料總覽頁面。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-09 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-09 (世界標準時間)。"],[],[]]