Retrieve a collection of media servers

GET /list
Retrieve a collection of media servers
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • pagination

    integer

    required

    The pagination of paging.
  • pagesize

    integer

    required

    The size of paging.
  • sort_by

    string

    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
  • pagination

    integer

  • servers

    array

    Show child attributes
  • count

    integer

  • sort_by

    string

  • pagesize

    integer

Sample Response

                      
{
    "pagination": 8,
    "count": 100,
    "sort_by": "DEFAULT",
    "pagesize": 10
}
                      
                    

Update media server

POST /update
Update media server
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The name of Media Server.
  • max_concurrent_sessions

    integer

    required

    Max concurrent sessions.
  • enabled

    boolean

    required

    The activate status or deactivated status.

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

                      
                      
                    

Destroy media server

POST /destroy
Destroy media server
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The name 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

400
Invalid server ID supplied.
200
Successful operation

Sample Response

                      
                      
                    

Retrieve media server

GET /show
Retrieve media server
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    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_ipv6

    string

    IPV6 address for Media Server.
  • active_call_sessions

    integer

    active concurrent sessions.
  • port

    integer

    Port for Media server.
  • memory_usage

    integer

    cpu or memory usage.
  • public_ipv4

    string

    IPV4 address for Media Server.
  • status

    string

    OFFLINE or ONLINE
  • private_ipv6

    string

    IPV6 address for Media Server.
  • name

    string

    The name of Media Server.
  • private_ipv4

    string

    IPV4 address for Media Server.
  • enabled

    boolean

    The activate status or deactivated status.
  • max_concurrent_sessions

    integer

    Max concurrent sessions.
  • cpu_usage

    integer

    cpu or memory usage.

Sample Response

                      
{
    "public_ipv6": "::1",
    "enabled": true,
    "private_ipv4": "192.168.1.1",
    "public_ipv4": "192.168.1.1",
    "private_ipv6": "::1",
    "name": "server1"
}
                      
                    

Create media server

POST /create
Create media server
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • private_ipv4

    string

    required

    IPV4 address for Media Server.
  • public_ipv6

    string

    required

    IPV6 address for Media Server.
  • enabled

    boolean

    required

    The activate status or deactivated status.
  • port

    integer

    required

    Port for Media server.
  • public_ipv4

    string

    required

    IPV4 address for Media Server.
  • max_concurrent_sessions

    integer

    required

    Max concurrent sessions.
  • private_ipv6

    string

    required

    IPV6 address for Media Server.
  • name

    string

    required

    The name of Media Server.

    minLength: 64

    maxLength: 64

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",
    "public_ipv4": "192.168.1.1",
    "private_ipv6": "::1",
    "name": "server1"
}'
                      
                    

Responses

200
Created media server
application/json
  • id

    integer

    The name of Media Server.

Sample Response

                      
{
    "id": 123
}