Perl interface to Tenable.sc (SecurityCenter) REST API
View the Project on GitHub giterlizzi/perl-Net-SecurityCenter
Net::SecurityCenter::API::Repository - Perl interface to Tenable.sc (SecurityCenter) Repository REST API
use Net::SecurityCenter::REST;
use Net::SecurityCenter::API::Repository;
my $sc = Net::SecurityCenter::REST->new('sc.example.org');
$sc->login('secman', 'password');
my $api = Net::SecurityCenter::API::Repository->new($sc);
$sc->logout();
This module provides Perl scripts easy way to interface the Repository REST API of Tenable.sc (SecurityCenter).
For more information about the Tenable.sc (SecurityCenter) REST API follow the online documentation:
https://docs.tenable.com/sccv/api/index.html
Create a new instance of Net::SecurityCenter::API::Repository using Net::SecurityCenter::REST class.
Get the list of repositories.
Params:
type
: Repository type (‘all’, ‘local’, ‘remote’, ‘offline’)fields
: List of fieldsGet the repository associated with id
.
Params:
id
: Repository IDfields
: List of fieldsGets the device information for the Repository associated with id
Params:
id
: Repository IDuuid
: Device UUIDip
: IP Addressdns_name
: DNS Namefields
: List of fieldsAllowed Fields:
ip
*uuid
*repositoryID
*repositories
repository
score
total
severityInfo
severityLow
severityMedium
severityHigh
severityCritical
macAddress
policyName
pluginSet
netbiosName
dnsName
osCPE
biosGUID
tpmID
mcafeeGUID
lastAuthRun
lastUnauthRun
severityAll
os
hasPassive
hasCompliance
lastScan
links
(*) always comes back
NOTE: This method has been DEPRECATED as of SecurityCenter 5.7.0
(see get_device_info
method or Net::SecurityCenter::API::DeviceInfo).
Please report any bugs or feature requests through the issue tracker at https://github.com/giterlizzi/perl-Net-SecurityCenter/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/giterlizzi/perl-Net-SecurityCenter
git clone https://github.com/giterlizzi/perl-Net-SecurityCenter.git
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.