InBox CMDBInventorySync - API
Version 6.0.0
Date of criation 05/04/2020
Instalation
bin/otrs.Console.pl Admin::Package::Install /path/to/InBox\ CMDBInventorySync-6.0.0.opm
API CMDBInventorySync
General API
Zabbix API
General API
create an object
my $CMDBInventory = $Kernel::OM->Get('Kernel::System::CMDBInventory');
ListIntegration
Returns a ticket hash of tasks according to the project ID
my @AllIntegrations = $CMDBInventory->ListIntegration();
Zabbix API
create an object
my $ZabbixInventory = $Kernel::OM->Get('Kernel::System::ZabbixInventory');
AddIntegration
Adds an integration
my $Success = $ZabbixInventory->AddIntegration(
Name => "Zabbix integration",
Object => "Zabbix",
ValidID => 1,
Config => $YAMLString,
UserID => 1,
);
UpdateIntegration
Perform the integration update
my $Success = $ZabbixInventory->AddIntegration(
IntegrationID => 123,
Name => "New Zabbix Integration",
Object => "Zabbix",
ValidID => 1,
Config => $YAMLString,
UserID => 2,
);
GetIntegration
Returns the integration data
my %IntegrationData = $ZabbixInventory->GetIntegration(
IntegrationID => $IntegrationID,
);
GetAllIntegration
Returns all integration
my %IntegrationData = $ZabbixInventory->GetAllIntegration(
ValidID => 1, # optional
);