The REST API has a default maximum body size of 10KB, this can be changed by setting the environment variable MAX_BODY_SIZE in bytes.
The following endpoints are deprecated and will be removed in a future release.
Return supported models
[
{
"name" : " name" ,
"description" : " description" ,
"type" : " IntelDLDT" ,
"version" : 0
}
]
Return supported pipelines
[
{
"description" : " description" ,
"type" : " GStreamer" ,
"parameters" : {
"key" : {
"default" : " "
}
}
}
]
Return status of all pipeline instances.
[
{
"id" : 1 ,
"state" : " COMPLETED" ,
"avg_fps" : 8.932587737800183 ,
"start_time" : 1638179813.2005367 ,
"elapsed_time" : 72.43142008781433 ,
"message" : " " ,
"avg_pipeline_latency" : 0.4533823041311556
},
{
"id" : 2 ,
"state" : " RUNNING" ,
"avg_fps" : 6.366260838099841 ,
"start_time" : 1638179886.3203313 ,
"elapsed_time" : 16.493194580078125 ,
"message" : " " ,
"avg_pipeline_latency" : 0.6517487730298723
},
{
"id" : 3 ,
"state" : " ERROR" ,
"avg_fps" : 0 ,
"start_time" : null ,
"elapsed_time" : null ,
"message" : " Not Found (404), URL: https://github.com/intel-iot-devkit/sample.mp4, Redirect to: (NULL)"
}
]
GET
/pipelines/{name}/{version}
Return pipeline description.
Name
Type
In
Accepted values
name (required)
string
path
Any
Name
Type
In
Accepted values
version (required)
string
path
Any
{
"description" : " description" ,
"type" : " GStreamer" ,
"parameters" : {
"key" : {
"default" : " "
}
}
}
POST
/pipelines/{name}/{version}
Start new pipeline instance. Four sections are supported by default: source, destination, parameters, and tags.
These sections have special handling based on the default schema and/or the schema
defined in the pipeline.json file for the requested pipeline.
Name
Type
In
Accepted values
name (required)
string
path
Any
Name
Type
In
Accepted values
version (required)
string
path
Any
{
"source" : {
"type" : " uri" ,
"uri" : " file:///root/video-examples/example.mp4"
},
"destination" :{},
"parameters" : {},
"tags" : {}
}
DELETE
/pipelines/{instance_id}
Stop pipeline instance.
Name
Type
In
Accepted values
instance_id (required)
string
path
Any
DELETE
/pipelines/{name}/{version}/{instance_id}
Stop pipeline instance.
Name
Type
In
Accepted values
name (required)
string
path
Any
Name
Type
In
Accepted values
version (required)
string
path
Any
Name
Type
In
Accepted values
instance_id (required)
string
path
Any
GET
/pipelines/{name}/{version}/{instance_id}
Return pipeline instance summary.
Name
Type
In
Accepted values
name (required)
string
path
Any
Name
Type
In
Accepted values
version (required)
string
path
Any
Name
Type
In
Accepted values
instance_id (required)
string
path
Any
{
"request" : {
"destination" : {},
"source" : {},
"parameters" : {},
"tags" : {}
},
"id" : 0 ,
"type" : " type"
}
GET
/pipelines/{instance_id}
Return pipeline instance summary.
Name
Type
In
Accepted values
instance_id (required)
string
path
Any
{
"id" : 0 ,
"launch_command" : " " ,
"name" : " " ,
"request" : {
"destination" : {},
"source" : {},
"parameters" : {},
"tags" : {}
},
"type" : " type" ,
"version" : " "
}
GET
/pipelines/status/{instance_id}
Return pipeline instance status.
Name
Type
In
Accepted values
instance_id (required)
string
path
Any
{
"avg_fps" : 12.077234499118983 ,
"elapsed_time" : 12.999657154083252 ,
"id" : 1 ,
"name" : " object_detection" ,
"start_time" : 1640156425.2014737 ,
"state" : " RUNNING" ,
"message" : " " ,
"version" : " person_vehicle_bike"
}
GET
/pipelines/{name}/{version}/{instance_id}/status
Return pipeline instance status.
Name
Type
In
Accepted values
name (required)
string
path
Any
Name
Type
In
Accepted values
version (required)
string
path
Any
Name
Type
In
Accepted values
instance_id (required)
string
path
Any
{
"start_time" : 1 ,
"elapsed_time" : 5 ,
"id" : 0 ,
"state" : " RUNNING" ,
"message" : " " ,
"avg_fps" : 6.027456183070403
}