Engines
Get all Engines
GET /api/engines
Returns all the Engines that are currently available in your Erizos Studio environment.
Response
The response is an array of Engines
Supports the list query parameters. GET /api/engines/info returns { "count": n } for the same filter.
Get Engine by ID
GET /api/engines/[ID]
Returns the Engine that corresponds to the Engine ID.
Request
| Parameter | Type | Description |
|---|---|---|
| ID | ID | Uuid, or the folder path and name of the Engine. A bare name only matches engines in the root folder |
Response
Engine Object
Add Engine
Adds a new engine to the outputs lists of the profile editor
POST /api/engines
Request Body
1 2 3 4 5 6 7 | |
| Parameter | Value | Description |
|---|---|---|
| _id | Uuid | The id of the engine |
| type | OutputType | The type of engine, can either be "OUTPUT" (default) or "SNAPSHOT" for an engine used to create preview snaphsots |
| name | String | Required. The name of the engine |
| system | System | Required. The system of the render engine. It must be the enum value, for example UE, VIZRT or CASPAR_CG |
| address | String | Required. The IP address or hostname to connect to the render engine |
| port | Integer | The port number used to connect to the render engine |
| path | String | The folder to place the engine in. Defaults to / |
| disabled | Boolean | When set, the engine is not used for output |
| data | Object | Additional metadata used to connect to the engine. The contents depend on the system, for example CasparCG takes {"channel": 1} |
| createdAt | Date | Date and time the engine was created |
| updatedAt | Date | Date and time the engine was last updated |
| connected | Boolean | If Erizos Studio can currently connect to the render engine |
Response
The created Engine object. Studio starts connecting to the engine straight away.
Update an Engine
PUT /api/engines/[ID]
Updates the engine details.
Request
| Parameter | Type | Description |
|---|---|---|
| ID | ID | Uuid, or the folder path and name of the Engine |
Request Body
1 2 3 4 5 6 7 | |
| Parameter | Value | Description |
|---|---|---|
| type | OutputType | The type of eninge, can either be "OUTPUT" (default) or "SNAPSHOT" for an engine used to create preview snaphsots |
| name | String | The name of the engine |
| system | System | The system of the render engine |
| address | String | The IP address or hostname to connect to the render engine |
| port | Integer | The port number used to connect to the render engine |
| path | String | The folder the engine lives in |
| disabled | Boolean | When set, the engine is not used for output |
Response
The updated Engine object.
Delete Engine by ID
DELETE /api/engines/[ID]
Deletes the Engine that corresponds to the Engine ID.
Request
| Parameter | Type | Description |
|---|---|---|
| ID | ID | Uuid, or the folder path and name of the Engine |
Note
Deleting an engine also removes it from every channel of every profile that used it.
Direct Engine Operations
The following routes act on a single engine, bypassing profiles and channels. They are useful for diagnostics and for integrations that address a renderer directly.
Send a Command to an Engine
POST /api/engines/[ID]/command
Sends a raw command to the engine's renderer. The body is passed to the renderer unchanged, so its shape depends on the engine's system. Requires the Profiles Take permission.
Request
| Parameter | Type | Description |
|---|---|---|
| ID | ID | Uuid, or the folder path and name of the Engine |
Clear an Engine
POST /api/engines/[ID]/clear
Performs the clear operation on the engine. An optional options body is forwarded to the renderer. Requires the Profiles Clear permission.
Cleanup an Engine
POST /api/engines/[ID]/cleanup
Performs the cleanup operation on the engine, and also asks the engine's Agent to clean up. An optional options body is forwarded to the renderer. Requires the Profiles Cleanup permission.
Take Out everything on an Engine
POST /api/engines/[ID]/out/all
Takes out every page currently on air on the engine, across all its layers and transition logic groups. The body is not used.
Cache Assets on an Engine
POST /api/engines/[ID]/cache/assets
Asks the engine's Agent to download and cache the listed assets.
Request Body
1 2 3 4 | |
Response
The list of assets the Agent cached.
Note
This route needs an Agent on the engine's machine. Without one the request fails with Agent is not running on machine '<address>'.
Cache a Payload on an Engine
POST /api/engines/[ID]/cache/payload
Sends a JSON payload to the engine's Agent to be cached locally, so that assets referenced inside it are resolved to local paths. The response is the payload as the Agent rewrote it, or the original payload when nothing changed. Needs an Agent on the engine's machine.
Set a Transition Logic Group State
POST /api/engines/[ID]/groups/state
Sets, or clears, the transition logic state of one group on the engine.
Request Body
1 2 3 4 5 | |
| Parameter | Type | Description |
|---|---|---|
| template | Uuid | The template the group belongs to |
| group | String | The name of the transition logic group |
| state | String | The state to set. Leave it out to take the group out instead |
Agents
Find Engines with an outdated Agent
GET /api/engines/agents/verify
Returns the ids of the engines whose Agent runs a different version from the Studio Server.
Response
1 2 3 | |
Upgrade Agents
POST /api/engines/agents/upgrade
Upgrades the Agents of the listed engines to the Studio Server's version.
*Requires Admin rights
Request Body
1 2 3 4 5 | |