Retrieve transport
GET
/show
Retrieve transport by it's unique ID.
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
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
-
certificate_verification_methodstring
Indicates if PBX wishes (Optional) or requires (Mandatory) TLS clients to present a client certificate. -
portinteger
Transport port. API will be failed if the specified port is already in use. -
protocolstring
-
statusboolean
Status of transport: true (activated) or false (deactivated) -
private_key_filestring
Filename of private certificate for TLS or WSS transport protocol. -
root_certificate_filestring
Filename of root certificate for TLS or WSS protocol. -
password_for_private_key_filestring
Password of private certificate. -
certificate_filestring
Filename of certificate for TLS or WSS transport protocol. The certificate file MUST be PEM-encoded with X.509. -
idinteger
The unique ID of transport.
Sample Response
{
"id": 1234
}
List transports'status
POST
/status
Destroy transport
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
transportsarray
required
transport protocol array
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/transports/status \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
400
Invalid transport supplied
Sample Response
Destroy transport
POST
/destroy
Destroy transport
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
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
200
Successful operation
400
Invalid transport ID supplied
Sample Response
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_tokenstring
required
token to be passed as a header
Request body
application/json
-
portinteger
required
Transport port. API will be failed if the specified port is already in use. -
certificate_verification_methodstring
required
Indicates if PBX wishes (Optional) or requires (Mandatory) TLS clients to present a client certificate. -
protocolstring
required
-
private_key_filestring
required
Filename of private certificate for TLS or WSS transport protocol. -
root_certificate_filestring
required
Filename of root certificate for TLS or WSS protocol. -
password_for_private_key_filestring
required
Password of private certificate. -
certificate_filestring
required
Filename of certificate for TLS or WSS transport protocol. The certificate file MUST be PEM-encoded with X.509.
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
-
idinteger
The unique ID of transport.
Sample Response
{
"id": 1234
}
Retrieve a collection of transports
GET
/list
Retrieve a collection of transports
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/transports/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesizeinteger
-
transportsarray
Show child attributes -
countinteger
-
paginationinteger
-
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}