名稱
gdcloud iam service-accounts keys delete - 從服務帳戶刪除公開金鑰。
概要
gdcloud iam service-accounts keys delete KEY_ID [flags]
說明
從專案的服務帳戶中刪除公開金鑰後,相關聯的私密金鑰就會失效。必須提供公開金鑰的 ID。您可以執行「gdcloud iam service-accounts keys list」指令,列出服務帳戶中所有公開金鑰的 ID。
範例
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
必要標記
--iam-account string Project's service account to delete the public key from. The flag is required to run the command.
GDCLOUD 廣泛標記
所有指令都可使用這些旗標:--configuration、--format、--help、--project、--quiet。
詳情請參閱 gcloud CLI 參考資料總覽頁面。