get_camera
get_camera
Section titled “get_camera”Fetch a single camera’s full record by ID.
Side effects: None (read-only).
Returns the full camera record (same shape as one entry from
list_cameras) including current recording mode, motion sensitivity,
privacy-mask state, and the most recent lastMotion timestamp.
Example
Section titled “Example”get_camera(camera_id="65f...", controller="default")Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
camera_id | string | yes | — | The Protect id (or _id) from list_cameras. |
controller | string | no | ”default” | Name of the UniFi controller to target. Defaults to "default". |