NAME
Kernel::System::CloudService::Backend::Configuration
DESCRIPTION
CloudService configuration backend.
PUBLIC INTERFACE
new()
Don't use the constructor directly, use the ObjectManager instead:
my $CloudServiceObject = $Kernel::OM->Get('Kernel::System::CloudService::Backend::Configuration');
CloudServiceAdd()
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,
);
CloudServiceGet()
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',
};
CloudServiceUpdate()
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,
);
CloudServiceDelete()
delete a CloudService
returns 1 if successful or undef otherwise
my $Success = $CloudServiceObject->CloudServiceDelete(
ID => 123,
UserID => 123,
);
CloudServiceList()
get CloudService list
my $List = $CloudServiceObject->CloudServiceList();
or
my $List = $CloudServiceObject->CloudServiceList(
Valid => 0, # 0 | 1 (optional) (default 1)
);