Transports
Retrieve a collection of transports
Use the filter query parameter to retrieve just a subset of a collection.
Use the search query parameter to restrict the results of a request to match a search criterion.
Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.
Use the skip query parameter to set the number of items to skip at the start of a collection.
0Use the top query parameter to specify the page size of the result set.
100OK
Error
GET /api/transports HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 100,
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"protocol": "UDP",
"port": 80,
"verification": "DISABLE"
}
]
}Add a new transport.
The transport protocol:
Can be either:
UDP:TCP:TLS:
The port of transport.
A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. For TCP, port number 0 is reserved and cannot be used, while for UDP, the source port is optional and a value of zero means no port
80Indicates if PBX wishes (Optional) or requires (Mandatory) TLS clients to present a client certificate:
DISABLE: disable client certificate.OPTIONAL: client authentication optional.MANDATORY: force client authentication.
Created transport
Error
POST /api/transports HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"protocol": "UDP",
"port": 80,
"verification": "DISABLE"
}{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}Retrieve a transport by it's unique ID.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwOK
Error
GET /api/transports/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"protocol": "UDP",
"port": 80,
"verification": "DISABLE"
}Update a new transport.
The unique ID of transport.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwThe port of transport.
A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. For TCP, port number 0 is reserved and cannot be used, while for UDP, the source port is optional and a value of zero means no port
80Indicates if PBX wishes (Optional) or requires (Mandatory) TLS clients to present a client certificate:
DISABLE: disable client certificate.OPTIONAL: client authentication optional.MANDATORY: force client authentication.
OK
No content
Error
POST /api/transports/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"port": 80,
"verification": "DISABLE"
}No content