Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
NOM
gdcloud iam service-accounts keys delete : supprime une clé publique d'un compte de service.
SYNOPSIS
gdcloud iam service-accounts keys delete KEY_ID [flags]
DESCRIPTION
Supprimez une clé publique du compte de service d'un projet. La clé privée associée devient alors non valide. L'ID de la clé publique doit être fourni. Vous pouvez exécuter la commande "gdcloud iam service-accounts keys list" pour lister les ID de toutes les clés publiques d'un compte de service.
EXAMPLES
To delete a public key with ID "ab98fa9a-dae0-401f" from service account "psa-test" in project "iam-test", run:
gdcloud iam service-accounts keys delete ab98fa9a-dae0-401f --iam-account=psa-test --project=iam-test
DRAPEAUX REQUIS
--iam-account string Project's service account to delete the public key from. 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 \u003ccode\u003egdcloud iam service-accounts keys delete\u003c/code\u003e is used to delete a public key from a specified ProjectServiceAccount.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the \u003ccode\u003e--iam-account\u003c/code\u003e flag to specify the ProjectServiceAccount name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--project\u003c/code\u003e flag can be used to select the project, but it is optional if a project has been set using \u003ccode\u003egdcloud init\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo execute the command, you must specify the key-id to delete and the ProjectServiceAccount the key is associated with.\u003c/p\u003e\n"]]],[],null,["# gdcloud iam service-accounts keys delete\n\nNAME\n----\n\ngdcloud iam service-accounts keys delete - Delete a public key from a service account.\n\nSYNOPSIS\n--------\n\n gdcloud iam service-accounts keys delete KEY_ID [flags]\n\nDESCRIPTION\n-----------\n\nDelete a public key from a project's service account, and the associated private key becomes invalid. The ID of the public key must be provided. You can run command \"gdcloud iam service-accounts keys list\" to list the ID of all the public keys from a service account.\n\n### EXAMPLES\n\n\n To delete a public key with ID \"ab98fa9a-dae0-401f\" from service account \"psa-test\" in project \"iam-test\", run:\n\n gdcloud iam service-accounts keys delete ab98fa9a-dae0-401f --iam-account=psa-test --project=iam-test\n\n### REQUIRED FLAGS\n\n --iam-account string Project's service account to delete the public key from. 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."]]