NAME
Net::Checkpoint::Management::v1 - Checkpoint Management API version 1.x client library
VERSION
version 0.004001
SYNOPSIS
use strict;
use warnings;
use Net::Checkpoint::Management::v1;
my $cpmgmt = Net::Checkpoint::Management::v1->new(
server => 'https://cpmgmt.example.com',
user => 'username',
passwd => '$password',
clientattrs => { timeout => 30 },
);
$cpmgmt->login;
# OR
$cpmgmt = Net::Checkpoint::Management::v1->new(
server => 'https://cpmgmt.example.com',
api_key => '$api-key',
clientattrs => { timeout => 30 },
);
$cpmgmt->login;
DESCRIPTION
This module is a client library for the Checkpoint Management API version 1.x. Currently it is developed and tested against version R81.20.
ATTRIBUTES
This module is using Role::REST::Client under the hood and all its attributes can be set too.
user
Sets the username used by the "login" method.
passwd
Sets the password used by the "login" method.
api_key
Sets the API key used by the "login" method.
api_versions
Returns a list of all available API versions which gets populated on the first call. Only works on API version 1.1 and higher.
api_version
The API version used by all methods. Is automatically set to the highest version available by the "login" method.
METHODS
create_packages
Creates a package, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_packages
Lists packages, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_packages
Gets a package, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_packages
Updates a package, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_packages
Deletes a package, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_accessrules
Creates an accessrule, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_accessrules
Lists accessrules, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_accessrules
Gets an accessrule, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_accessrules
Updates an accessrule, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_accessrules
Deletes an accessrule, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_networks
Creates a network, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_networks
Lists networks, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_networks
Gets a network, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_networks
Updates a network, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_networks
Deletes a network, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_hosts
Creates a host, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_hosts
Lists hosts, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_hosts
Gets a host, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_hosts
Updates a host, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_hosts
Deletes a host, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_address_ranges
Creates an address_range, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_address_ranges
Lists address_ranges, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_address_ranges
Gets an address_range, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_address_ranges
Updates an address_range, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_address_ranges
Deletes an address_range, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_dns_domains
Creates a dns_domain, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_dns_domains
Lists dns_domains, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_dns_domains
Gets a dns_domain, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_dns_domains
Updates a dns_domain, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_dns_domains
Deletes a dns_domain, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_groups
Creates a group, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_groups
Lists groups, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_groups
Gets a group, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_groups
Updates a group, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_groups
Deletes a group, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_access_roles
Creates an access_role, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_access_roles
Lists access_roles, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_access_roles
Gets an access_role, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_access_roles
Updates an access_role, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_access_roles
Deletes an access_role, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_services_tcp
Creates a service_tcp, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_services_tcp
Lists services_tcp, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_services_tcp
Gets a service_tcp, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_services_tcp
Updates a service_tcp, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_services_tcp
Deletes a service_tcp, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_services_udp
Creates a service_udp, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_services_udp
Lists services_udp, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_services_udp
Gets a service_udp, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_services_udp
Updates a service_udp, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_services_udp
Deletes a service_udp, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_services_icmp
Creates a service_icmp, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_services_icmp
Lists services_icmp, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_services_icmp
Gets a service_icmp, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_services_icmp
Updates a service_icmp, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_services_icmp
Deletes a service_icmp, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_services_icmpv6
Creates a service_icmpv6, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_services_icmpv6
Lists services_icmpv6, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_services_icmpv6
Gets a service_icmpv6, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_services_icmpv6
Updates a service_icmpv6, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_services_icmpv6
Deletes a service_icmpv6, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_services_other
Creates a service_other, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_services_other
Lists services_other, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_services_other
Gets a service_other, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_services_other
Updates a service_other, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_services_other
Deletes a service_other, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
create_service_groups
Creates a service_group, see "create_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_service_groups
Lists service_groups, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_service_groups
Gets a service_group, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_service_groups
Updates a service_group, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
delete_service_groups
Deletes a service_group, see "delete_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_sessions
Lists sessions, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_sessions
Gets a session, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
update_sessions
Updates a session, see "update_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
list_tasks
Lists tasks, see "list_$object" in Net::Checkpoint::Management::v1::Role::ObjectMethods
get_tasks
Gets a task, see "get_$singular" in Net::Checkpoint::Management::v1::Role::ObjectMethods
login
Logs into the Checkpoint Manager API using version 1.
If both the "api_key", "user" and "passwd" are set, the "api_key" is used.
Takes an optional hashref of login parameters like read-only or domain.
logout
Logs out of the Checkpoint Manager API using version 1.
publish
Publishes all previously submitted changes. Returns the task id on success.
discard
Discards all previously submitted changes. Returns a hashref containing the operation status message and the number of discarded changes.
verify_policy
Verifies the policy of the given package.
Takes a policy name.
Returns the task id on success.
install_policy
Installs the policy of the given package onto the given target(s).
Takes a policy name, target(s) and an optional hashref of additional parameters. The target(s) can be a single name or uid or a list of names or uids.
Returns the task id on success.
wait_for_task
Takes a task id and checks its status every second until it isn't 'in progress' any more and return the status. Takes an optional callback coderef which is called for every check with the task as argument.
where_used
Takes a Checkpoint object in form of a hashref as returned by the various APIs and optional query parameters.
Prefers the object uid over its name for the query.
Returns the unmodified response on success.
AUTHOR
Alexander Hartmaier <abraxxa@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2019 by Alexander Hartmaier.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.