This section describes Storm’s RESTful API regarding server basic functionality and information.
Request type | GET |
URL | /rest-api/applications |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
applications | List of all active applications |
Request type | GET |
URL | /rest-api/applications/${APPLICATION_NAME} |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
name | Application name |
type | Application type, possible values: live, edge, origin. |
videoStreams | Number of active (live) video streams. |
connections | Number of encoding tasks for this application (if enabled). |
transcodingTasks | Number of encoding tasks for this application (if enabled). |
download | Download speed for this application (all incoming streams). |
upload | Upload speed for this application (all viewer connections). |
startDate | Start date for this application in Unix time. |
Request type | GET |
URL | /rest-api/applications/${APPLICATION_NAME}/stream-list |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
streamCount | Total number of active streams |
streamName | Stream name |
viewersCount | Number of viewer connections |
sourceState | Current source state |
startTime | Stream start time in UNIX time format |
download | Download speed for this stream (generated by a source) |
upload | Upload speed for this stream (all viewer connections) |
Request type | GET |
URL | /rest-api/applications/${APPLICATION_NAME}/config |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
RTMPController | RTMP settings block. For specific field reference please check Live Application Configuration guide guide. |
SecureStream | Secure Stream settings block. For specific field reference please Live Application Configuration guide guide. |
MP4MuxerSettings | MP4 Muxer settings block. For specific field reference please check Live Application Configuration guide guide. |
DVRSettings | DVR settings block. For specific field reference please check Live Application Configuration guide guide. |
RecordingSettings | Recording settings block. For specific field reference please check Live Application Configuration guide guide. |
Please keep in mind that application configuration will differ for each type of application.
Request type | DELETE |
URL | /rest-api/applications/${APPLICATION_NAME} |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
applications | List of all active applications |
Request type | GET |
Request Data |
|
URL | /rest-api/applications |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
command | Repeats command from Request Data. |
applicationName | Name for new application. |
applicationType | Type of new application. Possible values: live, origin, edge. |
RTMPController | RTMP settings block. For specific field reference please check Live Application Configuration guide guide. |
SecureStream | Secure Stream settings block. For specific field reference please check Live Application Configuration guide guide. |
MP4MuxerSettings | MP4 Muxer settings block. For specific field reference please check Live Application Configuration guide guide. |
DVRSettings | DVR settings block. For specific field reference please check Live Application Configuration guide guide. |
DVRSettings | Recording settings block. For specific field reference please check Live Application Configuration guide guide. |
Request type | GET | |
URL | /rest-api/applications/${APPLICATION_NAME}/authorization | |
Answer | HTTP/1.1 200 OK Content-Type: application/json | |
|
Field explanation:
enabled | Informs whenever publishing authorization is enabled for this application. |
authorizationList | List of all authorization items. Items can be of “credentials” and “token” type. |
type | Type of authorization item. it can be of “credentials” and “token” type. |
username | Username for credentials authorization item. |
password | Password for credentials authorization item. |
token | Token string for token authorization item. |
expireTime | Time after which token expires expressed (unix timestamp). |
Request type | PUT |
Request Data |
|
URL | /rest-api/applications/${APPLICATION_NAME}/authorization |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
type | Type of authorization item. it can be of “credentials” and “token” type. |
username | Username for credentials authorization item. |
password | Password for credentials authorization item. |
token | Token string for token authorization item. |
expireTime | Time after which token expires expressed (unix timestamp). |
Request type | DELETE |
Request Data |
|
URL | /rest-api/applications/${APPLICATION_NAME}/authorization |
Answer | HTTP/1.1 200 OK Content-Type: application/json |
|
Field explanation:
type | Type of authorization item. it can be of “credentials” and “token” type. |
username | Username for credentials authorization item. |
password | Password for credentials authorization item. |
token | Token string for token authorization item. |