Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rawleyfowler/api-vultr
A LWP::UserAgent interface to the Vultr api
https://github.com/rawleyfowler/api-vultr
Last synced: 13 days ago
JSON representation
A LWP::UserAgent interface to the Vultr api
- Host: GitHub
- URL: https://github.com/rawleyfowler/api-vultr
- Owner: rawleyfowler
- License: artistic-2.0
- Created: 2023-09-07T15:05:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-17T21:27:34.000Z (12 months ago)
- Last Synced: 2024-10-11T02:44:54.899Z (about 1 month ago)
- Language: Perl
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# API::Vultr
A simple Perl interface to the [Vultr](https://www.vultr.com) API, using [LWP::UserAgent](https://github.com/libwww-perl/libwww-perl).
## Example
Please read the `POD` associated with `API::Vultr`, and the [Vultr API](https://vultr.com/api) to get a better understanding of all of the
available methods.```perl
use API::Vultr;
use Data::Dumper qw(Dumper);my $vultr_api = API::Vultr->new(api_key => $ENV{VULTR_API_KEY});
my $create_response = $vultr_api->create_instance(
region => 'ewr',
plan => 'vc2-6c-16gb',
label => 'My Instance',
os_id => 215,
user_data => 'QmFzZTY4EVsw32WfsGGHsjKJI',
backups => 'enabled',
hostname => 'hostname'
);if ($create_response->is_success) {
print Dumper($create_response->decoded_content);
}
else {
die $create_response->status_line;
}
```## License
This project is licensed under the Artistic 2.0 license. Please read the `LICENSE` file at the root of the
project for more information on what that means.