Kernel::System::CloudService::Backend::Configuration
CloudService configuration backend.
Don't use the constructor directly, use the ObjectManager instead:
my $CloudServiceObject = $Kernel::OM->Get('Kernel::System::CloudService::Backend::Configuration');
add new CloudServices
returns id of new CloudService if successful or undef otherwise
my $ID = $CloudServiceObject->CloudServiceAdd( Name => 'some name', Config => $ConfigHashRef, ValidID => 1, UserID => 123, );
get CloudServices attributes
my $CloudService = $CloudServiceObject->CloudServiceGet( ID => 123, # ID or Name must be provided Name => 'MyCloudService', );
Returns:
$CloudService = { ID => 123, Name => 'some name', Config => $ConfigHashRef, ValidID => 123, CreateTime => '2011-02-08 15:08:00', ChangeTime => '2011-02-08 15:08:00', };
update CloudService attributes
returns 1 if successful or undef otherwise
my $Success = $CloudServiceObject->CloudServiceUpdate( ID => 123, Name => 'some name', Config => $ConfigHashRef, ValidID => 1, UserID => 123, );
delete a CloudService
returns 1 if successful or undef otherwise
my $Success = $CloudServiceObject->CloudServiceDelete( ID => 123, UserID => 123, );
get CloudService list
my $List = $CloudServiceObject->CloudServiceList(); or my $List = $CloudServiceObject->CloudServiceList( Valid => 0, # 0 | 1 (optional) (default 1) );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.