PBX API : GET /PBX/Ports/Status

To get a PBX open ports status, make an HTTP GET request with basic authorization, resource URI:

http(s)://<PBX>/api/v1/PBX/Ports/Status
Response:

 

TypeExample
Success{"type":"result","result":{"total":"7","records":[{"port":"15000","transport":"UDP","protocol":"RTP","status":"1","lastcheck":"2016-05-13 02:30:17"},{"port":"10000","transport":"UDP","protocol":"RTP","status":"1","lastcheck":"2016-05-13 02:30:17"},{"port":"5061","transport":"TCP","protocol":"SIP","status":"1","lastcheck":"2016-05-13 02:30:17"},{"port":"5060","transport":"TCP","protocol":"SIP","status":"1","lastcheck":"2016-05-13 02:30:17"},{"port":"5060","transport":"UDP","protocol":"SIP","status":"1","lastcheck":"2016-05-13 02:30:17"},{"port":"80","transport":"TCP","protocol":"HTTP","status":"1","lastcheck":"2016-05-13 02:30:17"},{"port":"443","transport":"TCP","protocol":"HTTP","status":"1","lastcheck":"2016-05-13 02:30:17"}]}}
CLI CURL

curl -X GET -u admin:wil01dix --url "http://10.100.1.208/api/v1/PBX/Ports/Status"