---
source: rustfs/src/admin/handlers/kms_key_metadata.rs
expression: "stable_json_value(KmsKeyMetadataResponse\n{\n    success: true, message: \"key tags updated\".to_string(), key_id:\n    \"key-a\".to_string(), key_metadata:\n    Some(KeyMetadata\n    {\n        key_id: \"key-a\".to_string(), key_state: KeyState::Enabled, key_usage:\n        KeyUsage::EncryptDecrypt, description:\n        Some(\"snapshot key\".to_string()), creation_date:\n        \"2026-01-01T00:00:00Z[UTC]\".parse().expect(\"snapshot timestamp should parse\"),\n        deletion_date: None, origin: \"RUSTFS_KMS\".to_string(), key_manager:\n        \"RUSTFS\".to_string(), tags:\n        HashMap::from([(\"name\".to_string(), \"key-a\".to_string())]),\n    }),\n})"
---
{
  "key_id": "key-a",
  "key_metadata": {
    "creation_date": "2026-01-01T00:00:00+00:00[UTC]",
    "deletion_date": null,
    "description": "snapshot key",
    "key_id": "key-a",
    "key_manager": "RUSTFS",
    "key_state": "Enabled",
    "key_usage": "EncryptDecrypt",
    "origin": "RUSTFS_KMS",
    "tags": {
      "name": "key-a"
    }
  },
  "message": "key tags updated",
  "success": true
}
