2 "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
3 "_author": "David M. Lee, II <dlee@digium.com>",
4 "_svn_revision": "$Revision$",
6 "swaggerVersion": "1.1",
7 "basePath": "http://localhost:8088/ari",
8 "resourcePath": "/api-docs/asterisk.{format}",
11 "path": "/asterisk/config/dynamic/{configClass}/{objectType}/{id}",
12 "description": "Asterisk dynamic configuration",
16 "summary": "Retrieve a dynamic configuration object.",
17 "nickname": "getObject",
18 "responseClass": "List[ConfigTuple]",
21 "name": "configClass",
22 "description": "The configuration class containing dynamic configuration objects.",
25 "allowMultiple": false,
30 "description": "The type of configuration object to retrieve.",
33 "allowMultiple": false,
38 "description": "The unique identifier of the object to retrieve.",
41 "allowMultiple": false,
48 "reason": "{configClass|objectType|id} not found"
54 "summary": "Create or update a dynamic configuration object.",
55 "nickname": "updateObject",
56 "responseClass": "List[ConfigTuple]",
59 "name": "configClass",
60 "description": "The configuration class containing dynamic configuration objects.",
63 "allowMultiple": false,
68 "description": "The type of configuration object to create or update.",
71 "allowMultiple": false,
76 "description": "The unique identifier of the object to create or update.",
79 "allowMultiple": false,
84 "description": "The body object should have a value that is a list of ConfigTuples, which provide the fields to update. Ex. [ { \"attribute\": \"directmedia\", \"value\": \"false\" } ]",
87 "dataType": "containers",
88 "allowMultiple": false
94 "reason": "Bad request body"
98 "reason": "Could not create or update object"
102 "reason": "{configClass|objectType} not found"
107 "httpMethod": "DELETE",
108 "summary": "Delete a dynamic configuration object.",
109 "nickname": "deleteObject",
110 "responseClass": "void",
113 "name": "configClass",
114 "description": "The configuration class containing dynamic configuration objects.",
117 "allowMultiple": false,
121 "name": "objectType",
122 "description": "The type of configuration object to delete.",
125 "allowMultiple": false,
130 "description": "The unique identifier of the object to delete.",
133 "allowMultiple": false,
140 "reason": "Could not delete object"
144 "reason": "{configClass|objectType|id} not found"
151 "path": "/asterisk/info",
152 "description": "Asterisk system information (similar to core show settings)",
156 "summary": "Gets Asterisk system information.",
157 "nickname": "getInfo",
158 "responseClass": "AsteriskInfo",
162 "description": "Filter information returned",
163 "paramType": "query",
165 "allowMultiple": true,
166 "dataType": "string",
182 "path": "/asterisk/ping",
183 "description": "Asterisk ping",
187 "summary": "Response pong message.",
189 "responseClass": "AsteriskPing"
194 "path": "/asterisk/modules",
195 "description": "Asterisk modules",
199 "summary": "List Asterisk modules.",
200 "nickname": "listModules",
201 "responseClass": "List[Module]"
206 "path": "/asterisk/modules/{moduleName}",
207 "description": "Asterisk module",
211 "summary": "Get Asterisk module information.",
212 "nickname": "getModule",
213 "responseClass": "Module",
216 "name": "moduleName",
217 "description": "Module's name",
220 "allowMultiple": false,
227 "reason": "Module could not be found in running modules."
231 "reason": "Module information could not be retrieved."
236 "httpMethod": "POST",
237 "summary": "Load an Asterisk module.",
238 "nickname": "loadModule",
239 "responseClass": "void",
242 "name": "moduleName",
243 "description": "Module's name",
246 "allowMultiple": false,
253 "reason": "Module could not be loaded."
258 "httpMethod": "DELETE",
259 "summary": "Unload an Asterisk module.",
260 "nickname": "unloadModule",
261 "responseClass": "void",
264 "name": "moduleName",
265 "description": "Module's name",
268 "allowMultiple": false,
275 "reason": "Module not found in running modules."
279 "reason": "Module could not be unloaded."
285 "summary": "Reload an Asterisk module.",
286 "nickname": "reloadModule",
287 "responseClass": "void",
290 "name": "moduleName",
291 "description": "Module's name",
294 "allowMultiple": false,
301 "reason": "Module not found in running modules."
305 "reason": "Module could not be reloaded."
312 "path": "/asterisk/logging",
313 "description": "Asterisk log channels",
317 "summary": "Gets Asterisk log channel information.",
318 "nickname": "listLogChannels",
319 "responseClass": "List[LogChannel]"
324 "path": "/asterisk/logging/{logChannelName}",
325 "description": "Asterisk log channel",
328 "httpMethod": "POST",
329 "summary": "Adds a log channel.",
330 "nickname": "addLog",
331 "responseClass": "void",
334 "name": "logChannelName",
335 "description": "The log channel to add",
338 "allowMultiple": false,
342 "name": "configuration",
343 "description": "levels of the log channel",
344 "paramType": "query",
346 "allowMultiple": false,
353 "reason": "Bad request body"
357 "reason": "Log channel could not be created."
362 "httpMethod": "DELETE",
363 "summary": "Deletes a log channel.",
364 "nickname": "deleteLog",
365 "responseClass": "void",
368 "name": "logChannelName",
369 "description": "Log channels name",
372 "allowMultiple": false,
379 "reason": "Log channel does not exist."
386 "path": "/asterisk/logging/{logChannelName}/rotate",
387 "description": "Asterisk log channel",
391 "summary": "Rotates a log channel.",
392 "nickname": "rotateLog",
393 "responseClass": "void",
396 "name": "logChannelName",
397 "description": "Log channel's name",
400 "allowMultiple": false,
407 "reason": "Log channel does not exist."
414 "path": "/asterisk/variable",
415 "description": "Global variables",
419 "summary": "Get the value of a global variable.",
420 "nickname": "getGlobalVar",
421 "responseClass": "Variable",
425 "description": "The variable to get",
426 "paramType": "query",
428 "allowMultiple": false,
435 "reason": "Missing variable parameter."
440 "httpMethod": "POST",
441 "summary": "Set the value of a global variable.",
442 "nickname": "setGlobalVar",
443 "responseClass": "void",
447 "description": "The variable to set",
448 "paramType": "query",
450 "allowMultiple": false,
455 "description": "The value to set the variable to",
456 "paramType": "query",
458 "allowMultiple": false,
465 "reason": "Missing variable parameter."
475 "description": "Info about how Asterisk was built",
480 "description": "OS Asterisk was built on."
485 "description": "Kernel version Asterisk was built on."
490 "description": "Compile time options, or empty string if default."
495 "description": "Machine architecture (x86_64, i686, ppc, etc.)"
500 "description": "Date and time when Asterisk was built."
505 "description": "Username that build Asterisk"
511 "description": "Info about Asterisk",
516 "description": "Asterisk version."
527 "description": "Effective user/group id",
532 "description": "Effective user id."
537 "description": "Effective group id."
543 "description": "Info about Asterisk configuration",
548 "description": "Asterisk system name."
550 "default_language": {
553 "description": "Default language for media playback."
558 "description": "Maximum number of simultaneous channels."
563 "description": "Maximum number of open file handles (files, sockets)."
568 "description": "Maximum load avg on system."
573 "description": "Effective user/group id for running Asterisk."
579 "description": "Info about Asterisk status",
584 "description": "Time when Asterisk was started."
586 "last_reload_time": {
589 "description": "Time when Asterisk was last reloaded."
594 "id": "AsteriskInfo",
595 "description": "Asterisk system information",
600 "description": "Info about how Asterisk was built"
604 "type": "SystemInfo",
605 "description": "Info about the system running Asterisk"
609 "type": "ConfigInfo",
610 "description": "Info about Asterisk configuration"
614 "type": "StatusInfo",
615 "description": "Info about Asterisk status"
620 "id": "AsteriskPing",
621 "description": "Asterisk ping information",
626 "description": "Asterisk id info"
631 "description": "Always string value is pong"
636 "description": "The timestamp string of request received time"
642 "description": "Details of an Asterisk module",
646 "description": "The name of this module",
651 "description": "The description of this module",
656 "description": "The number of times this module is being used",
661 "description": "The running status of this module",
666 "description": "The support state of this module",
673 "description": "Details of an Asterisk log channel",
677 "description": "The log channel path",
682 "description": "Types of logs for the log channel",
687 "description": "Whether or not a log type is enabled",
692 "description": "The various log levels",
699 "description": "The value of a channel variable",
704 "description": "The value of the variable requested"
710 "description": "A key/value pair that makes up part of a configuration object.",
715 "description": "A configuration object attribute."
720 "description": "The value for the attribute."