Docs Menu

Docs HomeMongoDB Manual


KeyVault.addKeyAltName(UUID, keyAltName)

Adds the keyAltName to the keyAltNames array of the data encryption key with UUID.

keyAltName must be unique among all keys in the key vault.

Use the getKeyVault() method with a partial index filter on documents with keyAltNames to automatically create a unique index on the keyAltNames field.

This method is an alias for addKeyAlternateName().


See also:

What is MongoDB? →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.