---
name: "mongoc_client_encryption_get_keys"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_encryption_get_keys"
---

# mongoc\_client\_encryption\_get\_keys(3)

## SYNOPSIS

```
mongoc_cursor_t *
mongoc_client_encryption_get_keys (mongoc_client_encryption_t *client_encryption,
                                   bson_error_t *error);
```

Get all the key documents in the key vault collection.

## PARAMETERS

- •

  **client\_encryption**: A *mongoc\_client\_encryption\_t*.

- •

  **error**: Optional. *bson\_error\_t*.

## RETURNS

Returns the result of the internal find command if successful. Returns **NULL** and sets **error** otherwise.

**SEE ALSO:**

```
mongoc_client_encryption_t
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
