Net::Silverpeak::Orchestrator - Silverpeak Orchestrator REST API client library
version 0.011000
use strict; use warnings; use Net::Silverpeak::Orchestrator; my $orchestrator = Net::Silverpeak::Orchestrator->new( server => 'https://orchestrator.example.com', user => 'username', passwd => '$password', clientattrs => { timeout => 30 }, ); $orchestrator->login; # OR $orchestrator = Net::Silverpeak::Orchestrator->new( server => 'https://orchestrator.example.com', api_key => '$api-key', clientattrs => { timeout => 30 }, );
This module is a client library for the Silverpeak Orchestrator REST API. Currently it is developed and tested against version 9.3.3.
The REST API endpoints have changed with version 9.3 and since version 0.011 this module handles both.
Returns true if successfully logged in.
Logs into the Silverpeak Orchestrator. Only required when using username and password, not for api key.
Logs out of the Silverpeak Orchestrator. Only possible when using username and password, not for api key.
Returns the Silverpeak Orchestrator version.
Returns an arrayref of template groups.
Returns a template group by name.
Takes a template group name and a hashref with its config.
Returns true on success.
Throws an exception on error.
Takes a template group name and an arrayref of template names.
Takes a template group name and a hashref of template configs.
Takes a template group name.
Returns true if segmentation is enabled, else false.
Returns a hashref of firewall zones indexed by VRF id and firewall zone id.
Returns a hashref of VRFs indexed by their id.
Takes the source and destination vrf ids.
Returns a hashref containing all settings and security policies of a vrf.
Returns an arrayref of appliances.
Returns an appliance by id.
Takes an appliance id.
Returns a hashref with additional infos about the appliance like its location.
Returns a hashref of HA groups indexed by their id.
Returns a hashref containing the deployment data.
Takes an interface id.
Returns a hashref containing the interface state.
Returns a hashref containing the interface labels indexed by LAN/WAN and their id.
Returns a hashref of template to appliances associations.
Returns an arrayref of appliance IDs a templategroup is assigned to.
Returns an arrayref of address groups.
Returns an arrayref of address group names.
Returns an address group by name.
Takes an address group name and a hashref of address group config.
Takes an address group name.
Returns an arrayref of service groups.
Returns an arrayref of service group names.
Returns a service group by name.
Takes a service group name and a hashref of service group config.
Takes a service group name.
Returns an arrayref of domain name applications for a resource key which defaults to 'userDefined'.
Takes a domain name application domain, not name, and a hashref of its config.
Takes a domain name, not application name.
Returns a hashref of application groups indexed by their name for a resource key which defaults to 'userDefined'.
Takes a application group name, and a hashref of its config.
Because there is no API endpoint for creating or editing a single application group, this method has to load all application groups using list_application_groups, modify and then save them.
Takes an application group name.
Because there is no API endpoint for deleting a single application group, this method has to load all application groups using list_application_groups, remove the requested application group and then save them.
Orchestrator versions before version 9.0.4 respond with a http 500 error on every request using an api key that has no expiration date set. The only workaround is to set an expiration date for it.
Alexander Hartmaier <abraxxa@cpan.org>
This software is copyright (c) 2024 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::Silverpeak::Orchestrator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Silverpeak::Orchestrator
CPAN shell
perl -MCPAN -e shell install Net::Silverpeak::Orchestrator
For more information on module installation, please visit the detailed CPAN module installation guide.