NAME
Net::SecurityCenter::API::Policy - Perl interface to Tenable.sc (SecurityCenter) Policy REST API
SYNOPSIS
use Net::SecurityCenter::REST;
use Net::SecurityCenter::API::Policy;
my $sc = Net::SecurityCenter::REST->new('sc.example.org');
$sc->login('secman', 'password');
my $api = Net::SecurityCenter::API::Policy->new($sc);
$sc->logout();
DESCRIPTION
This module provides Perl scripts easy way to interface the Policy 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
CONSTRUCTOR
Net::SecurityCenter::API::Policy->new ( $client )
Create a new instance of Net::SecurityCenter::API::Policy using Net::SecurityCenter::REST class.
METHODS
list
Get list of policies.
Params:
fields
: Fields array or comma-separated-value stringfilter
: Filter for:manageable
usable
raw
: Return RAW Tenable.sc output without sc_mergeusable
andmanageable
array
get
Gets the policy associated with id
param.
Params:
id
: Policy ID
create
Create a policy.
Params:
name
: Policy Namedescription
: Descriptiontags
: Tagspreferences
: Preferences (HASH ofPREFERENCE =
VALUE>)families
: Plugin Familiesremove_prefs
: ARRAY of preferences to remove from policy
edit
Edit the policy associated with id
param.
Params:
id
: Policy IDname
: Policy Namedescription
: Descriptiontags
: Tagspreferences
: Preferences (HASH ofPREFERENCE =
VALUE>)families
: Plugin Familiesremove_prefs
: ARRAY of preferences to remove from policy
delete
Delete the policy associated with id
param.
Params:
id
: Policy ID
copy
Copy the policy associated with id
param.
Params:
id
: Policy IDid
: Policy Name
download
Download the policy XML associated with id
param.
Params:
id
: Policy IDfilename
: Path of file (optional)
SUPPORT
Bugs / Feature Requests
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.
Source Code
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
AUTHOR
Giuseppe Di Terlizzi <gdt@cpan.org>
LICENSE AND COPYRIGHT
This software is copyright (c) 2018-2023 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.