.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_CLIENT_ENCRYPTION_REWRAP_MANY_DATAKEY" "3" "Feb 25, 2024" "1.26.0" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX bool mongoc_client_encryption_rewrap_many_datakey ( mongoc_client_encryption_t *client_encryption, const bson_t *filter, const char *provider, const bson_t *master_key, mongoc_client_encryption_rewrap_many_datakey_result_t *result, bson_error_t *error); .EE .UNINDENT .UNINDENT .sp Rewraps zero or more data keys in the key vault collection that match the provided \fBfilter\fP\&. .sp A \fBNULL\fP argument for \fBfilter\fP is equivalent to being given an empty document (match all). .sp If \fBprovider\fP is \fBNULL\fP, rewraps matching data keys with their current KMS provider and master key. .sp If \fBprovider\fP is not \fBNULL\fP, rewraps matching data keys with the new KMS provider as described by \fBmaster_key\fP\&. The \fBmaster_key\fP document must conform to the \fI\%Client Side Encryption specification\fP\&. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBclient_encryption\fP: A \fI\%mongoc_client_encryption_t\fP\&. .IP \(bu 2 \fBfilter\fP: The filter to use when finding data keys to rewrap in the key vault collection. .IP \(bu 2 \fBprovider\fP: The new KMS provider to use to encrypt the data keys, or \fBNULL\fP to use the current KMS provider(s). .IP \(bu 2 \fBmaster_key\fP: The master key fields corresponding to the new KMS provider when \fBprovider\fP is not \fBNULL\fP\&. .IP \(bu 2 \fBresult\fP: An optional \fI\%mongoc_client_encryption_rewrap_many_datakey_result_t\fP\&. .IP \(bu 2 \fBerror\fP: A \fI\%bson_error_t\fP set on failure. .UNINDENT .SH RETURNS .sp Returns \fBtrue\fP if successful. Returns \fBfalse\fP and sets \fBerror\fP otherwise. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%mongoc_client_encryption_rewrap_many_datakey_result_t\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .