Net::Cisco::FMC::v1::Role::ObjectMethods - Role for Cisco Firepower Management Center (FMC) API version 1 method generation
version 0.003001
package Net::Cisco::FMC::v1; use Moo; use Net::Cisco::FMC::v1::Role::ObjectMethods; Net::Cisco::FMC::v1::Role::ObjectMethods->apply([ { path => 'object', object => 'portobjectgroups', singular => 'portobjectgroup', }, { path => 'object', object => 'protocolportobjects', singular => 'protocolportobject', } ]); 1;
This role adds methods for the REST methods of a specific object named.
Takes a hashref of attributes.
Returns the created object as hashref.
Throws an exception on error.
Takes optional query parameters.
Returns a hashref with a single key 'items' that has a list of hashrefs similar to the FMC API.
As the API only allows fetching 1000 objects at a time it works around that by making multiple API calls.
Takes an object id and optional query parameters.
Returns the object as hashref.
Takes an object and a hashref of attributes.
Returns the updated object as hashref.
Takes an object id.
Returns true on success.
Takes query parameters.
Returns the object as hashref on success.
As there is no API for searching by all attributes this method emulates this by fetching all objects using the list_$object method and performing the search on the client.
Alexander Hartmaier <abraxxa@cpan.org>
This software is copyright (c) 2018 - 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.
To install Net::Cisco::FMC::v1, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Cisco::FMC::v1
CPAN shell
perl -MCPAN -e shell install Net::Cisco::FMC::v1
For more information on module installation, please visit the detailed CPAN module installation guide.