Deployment Instance
A model viewset that uses different serializers for the list and detail views.
GET /api/v2/deployments/268/?format=api
{ "id": 268, "name": "Sakaerat 2 (dam)", "details": "https://api.beluga.insectai.org/api/v2/deployments/268/?format=api", "image": null, "events": [ { "id": 5444, "name": "Friday, Aug 30-31 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5444/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5449, "name": "Monday, Sep 2-3 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5449/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5453, "name": "Wednesday, Sep 4-5 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5453/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5457, "name": "Friday, Sep 6-7 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5457/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5462, "name": "Monday, Sep 9-10 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5462/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5466, "name": "Wednesday, Sep 11-12 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5466/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5473, "name": "Friday, Sep 13-14 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5473/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5478, "name": "Monday, Sep 16-17 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5478/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5483, "name": "Wednesday, Sep 18-19 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5483/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5487, "name": "Friday, Sep 20-21 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5487/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5492, "name": "Monday, Sep 23-24 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5492/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5498, "name": "Wednesday, Sep 25-26 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5498/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5502, "name": "Friday, Sep 27-28 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5502/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5507, "name": "Monday, Sep 30-1 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5513, "name": "Wednesday, Oct 2-3 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5513/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5518, "name": "Friday, Oct 4-5 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5518/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5524, "name": "Monday, Oct 7-8 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5524/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5530, "name": "Wednesday, Oct 9-10 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5530/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5534, "name": "Friday, Oct 11-12 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5534/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5538, "name": "Monday, Oct 14-15 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5538/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5543, "name": "Wednesday, Oct 16-17 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5543/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5548, "name": "Friday, Oct 18-19 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5548/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5553, "name": "Monday, Oct 21-22 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5553/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5558, "name": "Wednesday, Oct 23-24 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5558/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5561, "name": "Friday, Oct 25-26 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5561/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5566, "name": "Monday, Oct 28-29 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5566/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5571, "name": "Wednesday, Oct 30-31 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5571/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5576, "name": "Friday, Nov 1-2 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5576/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5580, "name": "Monday, Nov 4-5 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5580/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5584, "name": "Wednesday, Nov 6-7 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5584/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5587, "name": "Friday, Nov 8-9 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5587/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5590, "name": "Monday, Nov 11-12 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5590/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5593, "name": "Wednesday, Nov 13-14 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5593/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5596, "name": "Friday, Nov 15-16 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5596/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5599, "name": "Monday, Nov 18-19 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5599/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5602, "name": "Wednesday, Nov 20-21 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5602/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5605, "name": "Friday, Nov 22-23 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5605/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5608, "name": "Monday, Nov 25-26 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5608/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5611, "name": "Wednesday, Nov 27-28 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5611/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5615, "name": "Friday, Nov 29-30 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5615/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5617, "name": "Monday, Dec 2-3 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5617/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] } ], "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=268", "events_count": 41, "captures_count": 140127, "occurrences_count": 0, "taxa_count": 0, "project": { "id": 91, "name": "Thailand Labelling Project", "image": "https://object-arbutus.cloud.computecanada.ca/ami-media-staging/uploads/projects/Media.jpg", "details": "https://api.beluga.insectai.org/api/v2/projects/91/?format=api", "user_permissions": [] }, "created_at": "2025-01-21T12:13:51.252890", "updated_at": "2025-10-08T21:19:53.956406", "latitude": 14.4973, "longitude": 101.91551, "first_date": "2024-08-30", "last_date": "2024-12-03", "device": { "id": 94, "name": "Default device", "details": "https://api.beluga.insectai.org/api/v2/deployments/devices/94/?format=api", "user_permissions": [] }, "research_site": { "id": 88, "name": "Default site", "details": "https://api.beluga.insectai.org/api/v2/deployments/sites/88/?format=api", "user_permissions": [] }, "jobs": [ { "id": 1130, "details": "https://api.beluga.insectai.org/api/v2/jobs/1130/?format=api", "status": "SUCCESS", "job_type": { "name": "Data storage sync", "key": "data_storage_sync" }, "created_at": "2025-01-21T12:14:00.181042", "updated_at": "2025-01-21T14:17:41.290116", "user_permissions": [] } ], "data_source": { "id": 42, "name": "Thailand Data", "details": "https://api.beluga.insectai.org/api/v2/storage/42/?format=api", "user_permissions": [], "uri": "s3://tha/dep000078/snapshot_images/" }, "data_source_uri": "s3://tha/dep000078/snapshot_images/", "data_source_total_files": 140127, "data_source_total_size": 358462940055, "data_source_total_size_display": "333.8 GB", "data_source_last_checked": "2025-01-21T14:17:32.894463", "data_source_subdir": "dep000078/snapshot_images", "data_source_regex": null, "description": "", "example_captures": [ { "id": 23477881, "details": "https://api.beluga.insectai.org/api/v2/captures/23477881/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930234130-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T143215Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=0837c43229941d9a9098f0e5c57ce58a3af467f9262266df766df8285798863d", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:41:30", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477878, "details": "https://api.beluga.insectai.org/api/v2/captures/23477878/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930234100-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153922Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=9536c4e4a5103771271f1322c8a8e32d2c0510145ecc15fbd9154f4637c5816c", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:41:00", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477874, "details": "https://api.beluga.insectai.org/api/v2/captures/23477874/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930234020-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153922Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=f4e5f29fedf8087aa90ce71207490be314b9b7358c35795a9d7c818912befee6", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:40:20", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477953, "details": "https://api.beluga.insectai.org/api/v2/captures/23477953/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930235330-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153923Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=7f1ee89f4249c5868a415eb9bd6d4c82570cf01ac72aec0e419fa0ea5017aa34", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:53:30", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477859, "details": "https://api.beluga.insectai.org/api/v2/captures/23477859/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930233750-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153923Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=380e0fa94892e5ebe98fbfe39a82259f8b9d43e57e3d58dafe23f5f9fae5e3c0", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:37:50", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477858, "details": "https://api.beluga.insectai.org/api/v2/captures/23477858/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930233740-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153923Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=fff36fd016c95f572b1c15ec6783bd9bbdf0dc35c158ad6b1a339060d1075504", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:37:40", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477887, "details": "https://api.beluga.insectai.org/api/v2/captures/23477887/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930234230-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153923Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2eeab9463002edd38874d9076e362352dd93f53177fe9d70ea4f715d63a8b4b1", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:42:30", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477923, "details": "https://api.beluga.insectai.org/api/v2/captures/23477923/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930234830-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153923Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=9ad534521a654acb76efd91b2af636cd709b15d0568f574151f5107b21fb0b0c", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:48:30", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477873, "details": "https://api.beluga.insectai.org/api/v2/captures/23477873/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930234010-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153923Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b24293305329a2bd9751bbc4003b8fdb286627323709e266fb770b17739cc64e", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:40:10", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 23477924, "details": "https://api.beluga.insectai.org/api/v2/captures/23477924/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000078/snapshot_images/20240930234840-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153923Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=fe7d485ac39191188995ecaac88e8934490d67a8a4d559176f3801ba3579bcd6", "width": 4096, "height": 2160, "timestamp": "2024-09-30T23:48:40", "event": { "id": 5507, "details": "https://api.beluga.insectai.org/api/v2/events/5507/?format=api", "user_permissions": [] }, "user_permissions": [] } ], "manually_uploaded_captures": [], "user_permissions": [] }