X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FAPIClient%2FCommands%2Flxc.pm;h=601f86f208faaf16597ddcf9620c0df5352bb910;hp=b30e09f04dc5dc3d8f962e00b8a14d7685ebea8f;hb=c9138c03bcb92d01e8c7d9f195ac2f9b4d5458b3;hpb=83a7ab4c1080c407fe9c225c96d30e3456c94c2f diff --git a/PVE/APIClient/Commands/lxc.pm b/PVE/APIClient/Commands/lxc.pm index b30e09f..601f86f 100644 --- a/PVE/APIClient/Commands/lxc.pm +++ b/PVE/APIClient/Commands/lxc.pm @@ -11,12 +11,11 @@ use MIME::Base64; use Digest::SHA; use HTTP::Response; -use PVE::Tools; -use PVE::JSONSchema qw(get_standard_option); -use PVE::CLIHandler; -use PVE::PTY; +use PVE::APIClient::JSONSchema qw(get_standard_option); +use PVE::APIClient::CLIHandler; +use PVE::APIClient::PTY; -use base qw(PVE::CLIHandler); +use base qw(PVE::APIClient::CLIHandler); use PVE::APIClient::Config; my $CRLF = "\x0D\x0A"; @@ -168,10 +167,7 @@ __PACKAGE__->register_method ({ additionalProperties => 0, properties => { remote => get_standard_option('pveclient-remote-name'), - vmid => { - description => "The container ID", - type => 'string', - }, + vmid => get_standard_option('pve-vmid') }, }, returns => { type => 'null'}, @@ -419,29 +415,8 @@ __PACKAGE__->register_method ({ return undef; }}); -__PACKAGE__->register_method ({ - name => 'list', - path => 'list', - method => 'GET', - description => "List containers.", - parameters => { - additionalProperties => 0, - properties => { - remote => get_standard_option('pveclient-remote-name'), - }, - }, - returns => { type => 'null'}, - code => sub { - my ($param) = @_; - - die "implement me"; - - }}); - - our $cmddef = { enter => [ __PACKAGE__, 'enter', ['remote', 'vmid']], - list => [ __PACKAGE__, 'list', ['remote']], }; 1;