This API command reference lists and describes the available resources for the Haivision Media Gateway/SRT Gateway REST API. This is a list of API endpoints that can be used to create and manage stream routes on your HMG/HSG.
Note
Version 4.2 added additional endpoints for the new website UI workflow. These endpoints are labeled as ‘v2’ in their page titles.
The workflow used in previous Gateway versions is still available using the REST API. These endpoints are grouped under the Legacy tab below.
Login and Device
REST API Endpoint | Method | Use to… |
|---|
/api/session
| | |
/api/devices
| | |
/api/devices/[Device ID]
| | |
/api/tags
| | |
Routes
REST API Endpoint | Method | Use to… |
|---|
/api/routes
| | |
/api/routes/[Route ID]
| | |
/api/routes/[Route ID]/actions
| | |
/api/system/preset
| | |
/api/routes/[Route ID]/thumbnail
| | |
Sources
REST API Endpoint | Method | Use to… |
|---|
/api/sources
| | |
/api/sources/[Source ID]
| | |
Destinations
REST API Endpoint | Method | Use to… |
|---|
/api/destinations
| | |
/api/destinations/[Destinations ID]
| | |
/api/routes/[Route ID]/destinations/[Destinations ID]/actions
| | |
Statistics
REST API Endpoint | Method | Use to… |
|---|
/api/statistics?routeID=[Route ID]
| | |
/api/statistics/srt?routeID=[Route ID]
| | |
/api/gateway/[Device ID]/statistics?routeID=[Route ID]&sourceID=[Source ID]
| | |
/api/gateway/[Device ID]/statistics?routeID=[Route ID]&destinationID=[Destination ID]
| | |
/api/gateway/[Device ID]/statistics/client?routeID=[Route ID]&destinationID=
[Destination ID]&clientAddress=[Client Address]&clientPort=[Client Port]
| | |
Legacy
REST API Endpoint | Method | Use to… |
|---|
/api/gateway/[Device ID]/routes
| | |
/api/gateway/[Device ID]/routes/[Route ID]
| | |
/api/gateway/[Device ID]/updates
| | |
/api/gateway/[Device ID]/commands
| | |
/api/gateway/[Device ID]/system/preset
| | |
/api/gateway/[Device ID]/statistics?routeID=[Route ID]
| | |
/api/gateway/[Device ID]/statistics/srt?routeID=[Route ID]
| | |