Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions pymongo/asynchronous/encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,12 +1176,11 @@ async def rewrap_many_data_key(

client_encryption.rewrap_many_data_key(
filter={"keyAltNames": "optional filter for which keys you want to update"},
provider="azure", # replace with your cloud provider
master_key={
"provider": "azure", # replace with your cloud provider
"master_key": {
# put the rest of your master_key options here
"key": "<your new key>"
},
# put the rest of your master_key options here
"keyVaultEndpoint": "<your key vault endpoint>",
"keyName": "<your new key name>",
},
)

Expand Down
9 changes: 4 additions & 5 deletions pymongo/synchronous/encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,12 +1169,11 @@ def rewrap_many_data_key(

client_encryption.rewrap_many_data_key(
filter={"keyAltNames": "optional filter for which keys you want to update"},
provider="azure", # replace with your cloud provider
master_key={
"provider": "azure", # replace with your cloud provider
"master_key": {
# put the rest of your master_key options here
"key": "<your new key>"
},
# put the rest of your master_key options here
"keyVaultEndpoint": "<your key vault endpoint>",
"keyName": "<your new key name>",
},
)

Expand Down
Loading