OSTIP_EXARI v0.1.0 Swagger.Client.Api.ApiDocsasteriskFormat View Source
API calls for all endpoints tagged ApiDocsasteriskFormat.
Link to this section Summary
Functions
Adds a log channel
Deletes a log channel
Delete a dynamic configuration object
Get the value of a global variable
Gets Asterisk system information
Get Asterisk module information
Retrieve a dynamic configuration object
Gets Asterisk log channel information
List Asterisk modules
Load an Asterisk module
Reload an Asterisk module
Rotates a log channel
Set the value of a global variable
Unload an Asterisk module
Create or update a dynamic configuration object
Link to this section Functions
add_log(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Adds a log channel.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- log_channel_name (String.t): The log channel to add
- configuration (String.t): levels of the log channel
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
delete_log(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Deletes a log channel.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- log_channel_name (String.t): Log channels name
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
delete_object(Tesla.Env.client(), String.t(), String.t(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Delete a dynamic configuration object.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- config_class (String.t): The configuration class containing dynamic configuration objects.
- object_type (String.t): The type of configuration object to delete.
- id (String.t): The unique identifier of the object to delete.
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
get_global_var(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Get the value of a global variable.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- variable (String.t): The variable to get
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
get_info(Tesla.Env.client(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Gets Asterisk system information.
Parameters
- connection (Swagger.Client.Connection): Connection to server
opts (KeywordList): [optional] Optional parameters
- :only ([String.t]): Filter information returned
Returns
{:ok, %{}} on success {:error, info} on failure
get_module(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Get Asterisk module information.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- module_name (String.t): Module's name
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
get_object(Tesla.Env.client(), String.t(), String.t(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Retrieve a dynamic configuration object.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- config_class (String.t): The configuration class containing dynamic configuration objects.
- object_type (String.t): The type of configuration object to retrieve.
- id (String.t): The unique identifier of the object to retrieve.
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
list_log_channels(Tesla.Env.client(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Gets Asterisk log channel information.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
list_modules(Tesla.Env.client(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
List Asterisk modules.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
load_module(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Load an Asterisk module.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- module_name (String.t): Module's name
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
reload_module(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Reload an Asterisk module.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- module_name (String.t): Module's name
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
rotate_log(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Rotates a log channel.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- log_channel_name (String.t): Log channel's name
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
set_global_var(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Set the value of a global variable.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- variable (String.t): The variable to set
opts (KeywordList): [optional] Optional parameters
- :value (String.t): The value to set the variable to
Returns
{:ok, %{}} on success {:error, info} on failure
unload_module(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Unload an Asterisk module.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- module_name (String.t): Module's name
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %{}} on success {:error, info} on failure
update_object(Tesla.Env.client(), String.t(), String.t(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Create or update a dynamic configuration object.
Parameters
- connection (Swagger.Client.Connection): Connection to server
- config_class (String.t): The configuration class containing dynamic configuration objects.
- object_type (String.t): The type of configuration object to create or update.
- id (String.t): The unique identifier of the object to create or update.
opts (KeywordList): [optional] Optional parameters
- :fields (Containers): The body object should have a value that is a list of ConfigTuples, which provide the fields to update. Ex. [ { "attribute": "directmedia", "value": "false" } ]
Returns
{:ok, %{}} on success {:error, info} on failure