Destroy media server
POST
/destroy
Destroy media server
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idstring
required
The ID of Media Server.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/media_server/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 123
}'
Responses
200
Successful operation
400
Invalid server ID supplied.
Sample Response
Retrieve media server
GET
/show
Retrieve media server
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idstring
required
The ID of Media Server.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/media_server/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
public_ipv6string
IPV6 address for Media Server. -
active_call_sessionsinteger
active concurrent sessions. -
private_ipv6string
IPV6 address for Media Server. -
cpu_usageinteger
cpu or memory usage. -
portinteger
Port for Media server. -
public_ipv4string
IPV4 address for Media Server. -
enabledboolean
The activate status or deactivated status. -
private_ipv4string
IPV4 address for Media Server. -
statusstring
OFFLINE or ONLINE -
memory_usageinteger
cpu or memory usage. -
namestring
The name of Media Server. -
max_concurrent_sessionsinteger
Max concurrent sessions.
Sample Response
{
"public_ipv6": "::1",
"enabled": true,
"private_ipv6": "::1",
"private_ipv4": "192.168.1.1",
"public_ipv4": "192.168.1.1",
"name": "server1"
}
Retrieve a collection of media servers
GET
/list
Retrieve a collection of media servers
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
optional
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/media_server/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesizeinteger
-
sort_bystring
-
serversarray
Show child attributes -
paginationinteger
-
countinteger
Sample Response
{
"pagesize": 10,
"sort_by": "DEFAULT",
"pagination": 8,
"count": 100
}
Create media server
POST
/create
Create media server
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
public_ipv4string
required
IPV4 address for Media Server. -
public_ipv6string
required
IPV6 address for Media Server. -
enabledboolean
required
The activate status or deactivated status. -
private_ipv4string
required
IPV4 address for Media Server. -
private_ipv6string
required
IPV6 address for Media Server. -
portinteger
required
Port for Media server. -
namestring
required
The name of Media Server. -
max_concurrent_sessionsinteger
required
Max concurrent sessions.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/media_server/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"public_ipv6": "::1",
"enabled": true,
"private_ipv4": "192.168.1.1",
"private_ipv6": "::1",
"public_ipv4": "192.168.1.1",
"name": "server1"
}'
Responses
200
Created media server
application/json
-
idstring
The ID of Media Server.
Sample Response
{
"id": 123
}
Update media server
POST
/update
Update media server
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idstring
required
The ID of Media Server. -
enabledboolean
required
The activate status or deactivated status. -
max_concurrent_sessionsinteger
required
Max concurrent sessions.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/media_server/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"id": 123,
"enabled": true
}'
Responses
200
Successful operation
Sample Response