Net-SecurityCenter
view release on metacpan or search on metacpan
lib/Net/SecurityCenter/API/Policy.pm view on Meta::CPAN
my ( $self, %args ) = @_;
my $tmpl = {
id => $common_template->{'id'},
name => {},
description => {},
tags => {},
preferences => {},
families => {},
remove_prefs => {
remap => 'removePrefs'
}
};
my $params = sc_check_params( $tmpl, \%args );
my $policy_id = delete( $params->{'id'} );
my $policy = $self->client->patch( "/policy/$policy_id", $params );
return sc_normalize_hash($policy);
lib/Net/SecurityCenter/API/Policy.pm view on Meta::CPAN
=item * C<name>: Policy Name
=item * C<description>: Description
=item * C<tags>: Tags
=item * C<preferences>: Preferences (HASH of C<PREFERENCE => VALUE>)
=item * C<families>: Plugin Families
=item * C<remove_prefs>: ARRAY of preferences to remove from policy
=back
=head2 edit
Edit the policy associated with C<id> param.
Params:
=over 4
lib/Net/SecurityCenter/API/Policy.pm view on Meta::CPAN
=item * C<name>: Policy Name
=item * C<description>: Description
=item * C<tags>: Tags
=item * C<preferences>: Preferences (HASH of C<PREFERENCE => VALUE>)
=item * C<families>: Plugin Families
=item * C<remove_prefs>: ARRAY of preferences to remove from policy
=back
=head2 delete
Delete the policy associated with C<id> param.
Params:
=over 4
( run in 0.496 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )