WebService::HashiCorp::Vault::Sys - Perl API for HashiCorp's Vault (System)
version 0.002
use WebService::HashiCorp::Vault; my $vault = WebService::HashiCorp::Vault->new(%args); my $sys = $vault->sys(); my $health = $sys->health();
The /sys functions in the Vault REST api.
my $audit = $sys->audit();
Returns the 'audit' of the vault from API location /sys/audit
The result is a hash reference
TODO: implement PUT and DELETE audit with this function
my $auth = $sys->auth();
Returns the 'auth' of the vault from API location /sys/auth
TODO: implement POST and DELETE auth with this function
my $generate-root = $sys->generate-root();
Returns the 'generate-root/attempt' of the vault from API location /sys/generate-root/attempt
TODO: implement PUT and DELETE auth with this function
my $health = $sys->health();
Returns the 'health' of the vault from API location /sys/health
my $init = $sys->init();
Returns the 'init' of the vault from API location /sys/init
TODO: implement PUT
my $key_status = $sys->key_status();
Returns the 'key-status' of the vault from API location /sys/key-status
my $leader = $sys->init();
Returns the 'leader' of the vault from API location /sys/init
my $mounts = $sys->mounts();
Returns the 'mounts' of the vault from API location /sys/mounts
TODO: implement making mounts with this function
my $policy = $sys->policy();
Returns the 'policy' of the vault from API location /sys/policy
TODO: implement making policy with this function
my $rekey_init = $sys->rekey_init();
Returns the 'rekey/init' of the vault from API location /sys/rekey/init
TODO: implement PUT and DELETE
my $rekey_backup = $sys->rekey_backup();
Returns the 'rekey/backup' of the vault from API location /sys/rekey/backup
TODO: implement DELETE
my $seal_status = $sys->seal_status();
Returns the 'seal-status' of the vault from API location /sys/seal-status
Dean Hamstead <dean@bytefoundry.com.au>
This software is copyright (c) 2017 by Dean Hamstad.
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 WebService::HashiCorp::Vault, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::HashiCorp::Vault
CPAN shell
perl -MCPAN -e shell install WebService::HashiCorp::Vault
For more information on module installation, please visit the detailed CPAN module installation guide.