Parameters
| Parameter | Type | Description |
|---|---|---|
ids | const std::vector<std::string>& | IDs to retrieve. (For a single item, provide a std::vector with one element.) |
include | std::vector<cyborg::ItemFields> | List of item fields to return. Can include kVector, kContents, and kMetadata. |
key | KeyContext | Key context for the operation. A bare 32-byte index key (the index_key) implicitly converts to a KeyContext. For an RBAC user, pass cyborg::KeyContext{user_kek, user_id} (read permission required). |
Returns
std::vector<cyborg::Item>: Decrypted items with requested fields.
Exceptions
std::runtime_error
std::runtime_error
- Throws if the items could not be retrieved or decrypted.
- Throws if the supplied key context lacks read permission.