timeout => {
description => "Timeout in seconds",
type => 'integer',
- minimum => 1
+ minimum => 1,
+ optional => 1,
},
},
},
timeout => {
description => "Timeout in seconds",
type => 'integer',
- minimum => 1
+ minimum => 1,
+ optional => 1,
},
},
},
code => sub {
my ($param) = @_;
- my $remote = PVE::Tools::extract_param($param, 'remote');
- my $vmid = PVE::Tools::extract_param($param, 'vmid');
+ my $remote = PVE::APIClient::Tools::extract_param($param, 'remote');
+ my $vmid = PVE::APIClient::Tools::extract_param($param, 'vmid');
my $config = PVE::APIClient::Config->load();
my $conn = PVE::APIClient::Config->remote_conn($config, $remote);