[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThis command, \u003ccode\u003egdcloud auth activate-service-account\u003c/code\u003e, authorizes access to Google Distributed Cloud (GDC) air-gapped using a service account instead of user credentials.\u003c/p\u003e\n"],["\u003cp\u003eIt imports credentials from a private key file, making them usable for \u003ccode\u003egdcloud\u003c/code\u003e requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--key-file\u003c/code\u003e flag, which specifies the path to the private key file, is a required flag when using this command.\u003c/p\u003e\n"],["\u003cp\u003eThis command is similar in functionality to \u003ccode\u003egdcloud auth login\u003c/code\u003e but uses a service account.\u003c/p\u003e\n"]]],[],null,["# gdcloud auth activate-service-account\n\nNAME\n----\n\ngdcloud auth activate-service-account - Authorize access to GDC air-gapped with a service account.\n\nSYNOPSIS\n--------\n\n gdcloud auth activate-service-account [flags]\n\nDESCRIPTION\n-----------\n\nAuthorize access to GDC air-gapped with a service account.\nTo allow gdcloud to make requests using service account credentials, use this command to import these credentials from a file that contains a private authorization key, and activate them for use in gdcloud. The \"gdcloud auth activate-service-account\" serves the same function as the \"gdcloud auth login\" command, but uses a service account rather than the user credentials.\n\n### EXAMPLES\n\n To authorize gdcloud to access GDC air-gapped using an existing service account, run:\n\n gdcloud auth activate-service-account --key-file=/path/key.json\n\n### REQUIRED FLAGS\n\n --key-file string Path to the private key file.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]