Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
NAME
gdcloud iam service-accounts keys delete: Löscht einen öffentlichen Schlüssel aus einem Dienstkonto.
ZUSAMMENFASSUNG
gdcloud iam service-accounts keys delete KEY_ID [flags]
BESCHREIBUNG
Wenn Sie einen öffentlichen Schlüssel aus dem Dienstkonto eines Projekts löschen, wird der zugehörige private Schlüssel ungültig. Die ID des öffentlichen Schlüssels muss angegeben werden. Mit dem Befehl „gdcloud iam service-accounts keys list“ können Sie die ID aller öffentlichen Schlüssel eines Dienstkontos auflisten.
BEISPIELE
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
ERFORDERLICHE FLAGS
--iam-account string Project's service account to delete the public key from. The flag is required to run the command.
GDCLOUD-WEITE FLAGS
Diese Flags sind für alle Befehle verfügbar: --configuration, --format, --help, --project, --quiet.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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."]]