Hanzo AI
OpenapiPatrol

List stream

Mints a short-lived way in to one camera. The credential is kept in KMS, at the one place a camera's credential is kept — the org's own patrol namespace,…

GET /v1/patrol/camera/{name}/stream

Addresshttps://api.hanzo.ai/v1/patrol/camera/{name}/stream
MethodGET
Operationget_patrol_camera_by_name_stream
AuthAuthorization: Bearer $HANZO_API_KEY

Mints a short-lived way in to one camera.

The credential is kept in KMS, at the one place a camera's credential is kept — the org's own patrol namespace, named for the camera — and what comes back is minted from it rather than being it: the camera's address with the user and password removed, bounded by an expiry, and signed so that whatever opens the camera can tell a live ticket from a made-up one. The caller receives something that opens one camera for five minutes and says nothing about how.

A camera whose row points anywhere but its own place, and one with no credential registered, is 404.

Request

1 field.

FieldInTypeRequiredDescription
namepathstringyesName is the camera's document name, from the path.

Response

StatusBodyMeaning
200patrol.patrolStreamOutok
defaultproblem-detailsrefused

200 body — 3 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolStream
data.expiresbodystringExpires is when that address stops working.
data.urlbodystringURL is the address to open the stream at.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol camera stream list <name>

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page