Docs Menu

KeyVault.addKeyAltName()

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().

Tip
See also:
What is MongoDB? →
Give Feedback
© 2022 MongoDB, Inc.

About

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