mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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
This commit is contained in:
@@ -300,6 +300,40 @@
|
||||
"path": "/asterisk/logging/{logChannelName}",
|
||||
"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.",
|
||||
@@ -609,7 +643,7 @@
|
||||
"required": true
|
||||
},
|
||||
"configuration": {
|
||||
"type": "List[string]",
|
||||
"type": "string",
|
||||
"description": "The various log levels",
|
||||
"required": true
|
||||
}
|
||||
|
Reference in New Issue
Block a user