-sub remote_conn {
- my ($self, $remote) = @_;
-
- my $section = $self->lookup_remote($remote);
- my $conn = PVE::APIClient::LWP->new(
- username => $section->{username},
- password => $section->{password},
- host => $section->{host},
- port => $section->{port},
- cached_fingerprints => {
- $section->{fingerprint} => 1,
- }
- );
+sub properties {
+ return {
+ name => get_standard_option('pveclient-remote-name'),
+ host => {
+ description => "The host.",
+ type => 'string', format => 'address',
+ optional => 1,
+ },
+ username => {
+ description => "The username.",
+ type => 'string',
+ optional => 1,
+ },
+ password => {
+ description => "The users password.",
+ type => 'string',
+ optional => 1,
+ },
+ port => {
+ description => "The port.",
+ type => 'integer',
+ optional => 1,
+ default => 8006,
+ },
+ fingerprint => {
+ description => "Fingerprint.",
+ type => 'string',
+ optional => 1,
+ },
+ comment => {
+ description => "Description.",
+ type => 'string',
+ optional => 1,
+ maxLength => 4096,
+ },
+ };
+}