From 12e6f5ac01cac88f1f2ddd60b6dbe3f8755c5ef8 Mon Sep 17 00:00:00 2001 From: Scott Emidy Date: Fri, 7 Aug 2015 14:20:29 -0500 Subject: ARI: Retrieve existing log channels An http request can be sent to get the existing Asterisk logs. The command "curl -v -u user:pass -X GET 'http://localhost:8088 /ari/asterisk/logging'" can be run in the terminal to access the newly implemented functionality. * Retrieve all existing log channels ASTERISK-25252 Change-Id: I7bb08b93e3b938c991f3f56cc5d188654768a808 --- rest-api/api-docs/asterisk.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rest-api') diff --git a/rest-api/api-docs/asterisk.json b/rest-api/api-docs/asterisk.json index fe361ad02..0db206227 100644 --- a/rest-api/api-docs/asterisk.json +++ b/rest-api/api-docs/asterisk.json @@ -296,6 +296,18 @@ } ] }, + { + "path": "/asterisk/logging", + "description": "Asterisk log channels", + "operations": [ + { + "httpMethod": "GET", + "summary": "Gets Asterisk log channel information.", + "nickname": "listLogChannels", + "responseClass": "List[LogChannel]" + } + ] + }, { "path": "/asterisk/logging/{logChannelName}", "description": "Asterisk log channel", -- cgit v1.2.3