API-Vultr
view release on metacpan or search on metacpan
lib/API/Vultr.pm view on Meta::CPAN
croak qq{Expected list of ids, instead got undef.}
unless @ids;
return $self->_request(
'post',
$self->_make_uri('/instances/reboot'),
{ instance_ids => [@ids] }
);
}
sub start_instances {
my ( $self, @ids ) = @_;
croak qq{Expected list of ids, instead got undef.}
unless @ids;
return $self->_request(
'post',
$self->_make_uri('/instances/start'),
{ instance_ids => [@ids] }
);
}
sub get_instance_bandwidth {
my ( $self, $id, %query ) = @_;
croak qq{Expected scalar id as second argument, instead got $id.}
unless defined $id;
lib/API/Vultr.pm view on Meta::CPAN
Halt a list of instances by their ids.
L<Vultr API Reference|https://www.vultr.com/api/#tag/instances/operation/halt-instances>
=head2 reboot_instances
Reboot a list of instances by their ids.
L<Vultr API Reference|https://www.vultr.com/api/#tag/instances/operation/reboot-instances>
=head2 start_instances
Reboot a list of instances by their ids.
L<Vultr API Reference|https://www.vultr.com/api/#tag/instances/operation/start-instances>
=head2 get_instance_bandwidth
Get the remaining bandwidth of a given instance.
L<Vultr API Reference|https://www.vultr.com/api/#tag/instances/operation/get-instance-bandwidth>
=head2 get_instance_neighbours
Get a list of instances in the same location as the specified instance.
( run in 0.536 second using v1.01-cache-2.11-cpan-0d8aa00de5b )