gdcloud iam service-accounts keys list - 列出服务账号的所有公钥。
摘要
gdcloud iam service-accounts keys list [flags]
说明
列出项目服务账号的所有公钥的 ID、算法和有效时间段。
示例
To list all the public keys for service account "psa-test" in project "iam-test", run:
gdcloud iam service-accounts keys list --iam-account=psa-test --project=iam-test
必需标志
--iam-account string Project's service account to list the keys for. The flag is required to run the command.
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud iam service-accounts keys list\u003c/code\u003e command displays all public keys associated with a specified ProjectServiceAccount within a Project.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the \u003ccode\u003e--iam-account\u003c/code\u003e flag to identify the specific project service account.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--project\u003c/code\u003e flag is used to select the project, and it can be omitted if the project was previously set using the \u003ccode\u003egdcloud init\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eIf both \u003ccode\u003e--project\u003c/code\u003e flag and \u003ccode\u003egdcloud init\u003c/code\u003e command define the project, then the \u003ccode\u003e--project\u003c/code\u003e flag takes precedence.\u003c/p\u003e\n"]]],[],null,["# gdcloud iam service-accounts keys list\n\nNAME\n----\n\ngdcloud iam service-accounts keys list - List all the public keys for a service account.\n\nSYNOPSIS\n--------\n\n gdcloud iam service-accounts keys list [flags]\n\nDESCRIPTION\n-----------\n\nList the ID, algorithm and valid time period of all the public keys for a project's service account.\n\n### EXAMPLES\n\n\n To list all the public keys for service account \"psa-test\" in project \"iam-test\", run:\n\n gdcloud iam service-accounts keys list --iam-account=psa-test --project=iam-test\n\n### REQUIRED FLAGS\n\n --iam-account string Project's service account to list the keys for. The flag is required to run the command.\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/appliance/resources/gdcloud-reference/gdcloud) page."]]