KeyVault.addKeyAltName()
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
KeyVault.addKeyAltName(UUID, keyAltName)
Adds the
keyAltName
to thekeyAltNames
array of the data encryption key withUUID
.keyAltName
must be unique among all keys in the key vault.Use the
getKeyVault()
method with a partial index filter on documents withkeyAltNames
to automatically create a unique index on thekeyAltNames
field.This method is an alias for
addKeyAlternateName()
.