use IO::Socket::SSL;
use MIME::Base64;
use Digest::SHA;
+use HTTP::Response;
use PVE::Tools;
use PVE::JSONSchema qw(get_standard_option);
code => sub {
my ($param) = @_;
- my $conn = PVE::APIClient::Config::get_remote_connection($param->{remote});
+ my $config = PVE::APIClient::Config->load();
+ my $conn = PVE::APIClient::Config->remote_conn($config, $param->{remote});
# Get the real node from the resources endpoint
my $resource_list = $conn->get("api2/json/cluster/resources", { type => 'vm'});