diff options
author | Scott Emidy <jemidy@digium.com> | 2015-08-07 11:14:06 -0500 |
---|---|---|
committer | Scott Emidy <jemidy@digium.com> | 2015-08-07 11:18:13 -0500 |
commit | b91ca7ba49ce74152139309fd0ae1a66df695cc0 (patch) | |
tree | 9d96113e70f17b03115ca14de207cba74ff61dc5 /rest-api | |
parent | ecd4cde521d0b5fc43312aed500e1bcff181209c (diff) |
ARI: Creating log channels
An http request can be sent to create a log channel
in Asterisk.
The command "curl -v -u user:pass -X POST
'http://localhost:088/ari/asterisk/logging/mylog?
configuration=notice,warning'" can be run in the terminal
to access the newly implemented functionality for ARI.
* Ability to create log channels using ARI
ASTERISK-25252
Change-Id: I9a20e5c75716dfbb6b62fd3474faf55be20bd782
Diffstat (limited to 'rest-api')
-rw-r--r-- | rest-api/api-docs/asterisk.json | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/rest-api/api-docs/asterisk.json b/rest-api/api-docs/asterisk.json index 53f690d47..fe361ad02 100644 --- a/rest-api/api-docs/asterisk.json +++ b/rest-api/api-docs/asterisk.json @@ -301,6 +301,40 @@ "description": "Asterisk log channel", "operations": [ { + "httpMethod": "POST", + "summary": "Adds a log channel.", + "nickname": "addLog", + "responseClass": "void", + "parameters": [ + { + "name": "logChannelName", + "description": "The log channel to add", + "paramType": "path", + "required": true, + "allowMultiple": false, + "dataType": "string" + }, + { + "name": "configuration", + "description": "levels of the log channel", + "paramType": "query", + "required": true, + "allowMultiple": false, + "dataType": "string" + } + ], + "errorResponses": [ + { + "code": 400, + "reason": "Bad request body" + }, + { + "code": 409, + "reason": "Log channel could not be created." + } + ] + }, + { "httpMethod": "DELETE", "summary": "Deletes a log channel.", "nickname": "deleteLog", @@ -609,7 +643,7 @@ "required": true }, "configuration": { - "type": "List[string]", + "type": "string", "description": "The various log levels", "required": true } |