管理 CMEK 政策

本页面介绍了如何修改或删除客户管理的加密密钥 (CMEK) 政策。

修改 CMEK 政策

您可以更改 CMEK 政策的标签和说明,但无法指定要使用的其他密钥。如需指定其他密钥,您需要更新 CMEK 政策,但只有当存储池尚未使用该政策时,此操作才有效。

请按照以下说明使用 Google Cloud 控制台 或 Google Cloud CLI 修改 CMEK 政策。

控制台

请按照以下说明在 Google Cloud 控制台中修改 CMEK 政策。 您只能更改 CMEK 政策说明及其标签。

  1. 在 Google Cloud 控制台中,前往 NetApp Volumes 页面。

    前往 NetApp Volumes

  2. 选择 CMEK 政策 。

  3. 找到要修改的 CMEK 政策,然后点击显示更多 。

  4. 选择修改 。

  5. 可选:在说明 字段中更改说明。

  6. 可选:添加、修改或删除标签。

gcloud

运行以下命令,在 Google Cloud CLI 中修改 CMEK 政策:

gcloud netapp kms-configs update CONFIG_NAME \
   --project=PROJECT_ID \
   --location=LOCATION \
   --description=DESCRIPTION \
   --labels=LABELS \

如需了解更多选项,请参阅 Cloud Key Management Service 的 Google Cloud SDK 文档。

删除 CMEK 政策

如果没有任何存储池使用 CMEK 政策,您可以删除该政策。

控制台

请按照以下说明使用 Google Cloud 控制台删除 CMEK 政策:

  1. 在 Google Cloud 控制台中,前往 NetApp Volumes 页面。

    前往 NetApp Volumes

  2. 选择 CMEK 政策 。

  3. 找到要删除的 CMEK 政策,然后点击显示更多 。

  4. 选择删除 。

  5. 如需确认您的选择,请在 CMEK 政策名称 字段中输入名称。

  6. 点击删除 。

gcloud

请按照以下说明使用 Google Cloud CLI 删除 CMEK 政策。

删除 CMEK 政策:

gcloud netapp kms-configs delete CONFIG_NAME \
  --project=PROJECT_ID \
  --location=LOCATION \

替换以下信息:

  • CONFIG_NAME:配置的名称

  • PROJECT_ID:CMEK 政策所在项目的名称

  • LOCATION:您要删除的配置所在的区域

如需了解更多选项,请参阅 Cloud Key Management Service 的 Google Cloud SDK 文档。

后续步骤

将卷迁移到 CMEK。