Retrieve a collection of transports

GET /list
Retrieve a collection of transports
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/transports/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • pagination

    integer

  • count

    integer

  • transports

    array

    Show child attributes
  • sort_by

    string

  • pagesize

    integer

Sample Response

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

Destroy transport

POST /destroy
Destroy transport
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 unique ID of transport.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/transports/destroy \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "id": 1234
}'
                      
                    

Responses

400
Invalid transport ID supplied
200
Successful operation

Sample Response

                      
                      
                    

Retrieve transport

GET /show
Retrieve transport by it's unique ID.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    required

    The unique ID of the transport.

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/transports/show \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • id

    integer

    The unique ID of transport.
  • certificate_file

    string

    Filename of certificate for TLS or WSS transport protocol. The certificate file MUST be PEM-encoded with X.509.
  • password_for_private_key_file

    string

    Password of private certificate.
  • port

    integer

    Transport port. API will be failed if the specified port is already in use.
  • private_key_file

    string

    Filename of private certificate for TLS or WSS transport protocol.
  • status

    string

    Status of transport: activated or deactivated
  • protocol

    string

  • certificate_verification_method

    string

    Indicates if PBX wishes (Optional) or requires (Mandatory) TLS clients to present a client certificate.
  • root_certificate_file

    string

    Filename of root certificate for TLS or WSS protocol.

Sample Response

                      
{
    "id": 1234
}
                      
                    

Create transport

POST /create
Add a new transport. Please make sure you have at least one transport created before creating a new transport.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • certificate_file

    string

    required

    Filename of certificate for TLS or WSS transport protocol. The certificate file MUST be PEM-encoded with X.509.
  • password_for_private_key_file

    string

    required

    Password of private certificate.
  • port

    integer

    required

    Transport port. API will be failed if the specified port is already in use.
  • private_key_file

    string

    required

    Filename of private certificate for TLS or WSS transport protocol.
  • protocol

    string

    required

  • certificate_verification_method

    string

    required

    Indicates if PBX wishes (Optional) or requires (Mandatory) TLS clients to present a client certificate.
  • root_certificate_file

    string

    required

    Filename of root certificate for TLS or WSS protocol.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/transports/create \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Created transport
application/json
  • id

    integer

    The unique ID of transport.

Sample Response

                      
{
    "id": 1234
}