Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
NOM
gdcloud iam service-accounts keys list : liste toutes les clés publiques d'un compte de service.
SYNOPSIS
gdcloud iam service-accounts keys list [flags]
DESCRIPTION
Répertoriez l'ID, l'algorithme et la période de validité de toutes les clés publiques d'un compte de service d'un projet.
EXAMPLES
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
DRAPEAUX REQUIS
--iam-account string Project's service account to list the keys for. The flag is required to run the command.
OPTIONS GCLOUD GÉNÉRALES
Ces options sont disponibles pour toutes les commandes : --configuration, --format, --help, --project, --quiet.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis command lists the public keys associated with a specified service account.\u003c/p\u003e\n"],["\u003cp\u003eYou can view the ID, algorithm, and validity period of each public key for a service account.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--iam-account\u003c/code\u003e flag is mandatory, and it specifies the service account whose keys should be listed.\u003c/p\u003e\n"],["\u003cp\u003eThe command is executed within a specific project, and an example shows how to list the public keys for a service account named "psa-test" in project "iam-test".\u003c/p\u003e\n"],["\u003cp\u003eAdditional flags, such as \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, and \u003ccode\u003e--project\u003c/code\u003e are available for use with this command.\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/gdch/resources/gdcloud-reference/gdcloud) page."]]