database
Get database statistics
Return collection, document, and storage-byte totals for one environment database.
Required permission: database.view.
get/v1/projects/{project_id}/database/{environment_id}/stats
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
project_id, string uuid required
ID of the project the API key belongs to.
environment_id, string uuid required
Environment ID from GET /environments.
Response
Successful Response
Database Stats Response required
total_collections, integer required
Number of collections in the environment.
total_documents, integer required
Documents across all collections.
total_size_bytes, integer required
Storage used by all collections, including indexes, in bytes.
Changes
No recorded changes to this operation across all 17 revisions of this API.