]> git.proxmox.com Git - pve-client.git/blob - PVE/APIClient/Commands/lxc.pm
add code to print perl package dependencies
[pve-client.git] / PVE / APIClient / Commands / lxc.pm
1 package PVE::APIClient::Commands::lxc;
2
3 use strict;
4 use warnings;
5
6 use PVE::CLIHandler;
7
8 use base qw(PVE::CLIHandler);
9
10 __PACKAGE__->register_method ({
11 name => 'enter',
12 path => 'enter',
13 method => 'POST',
14 description => "Enter container console.",
15 parameters => {
16 additionalProperties => 0,
17 properties => {
18 vmid => {
19 description => "The container ID",
20 type => 'string',
21 },
22 },
23 },
24 returns => { type => 'null'},
25 code => sub {
26 my ($param) = @_;
27
28 die "implement me";
29
30 }});
31
32 __PACKAGE__->register_method ({
33 name => 'list',
34 path => 'list',
35 method => 'GET',
36 description => "List containers.",
37 parameters => {
38 additionalProperties => 0,
39 properties => {
40 remote => {
41 description => "The remote name.",
42 type => 'string',
43 },
44 },
45 },
46 returns => { type => 'null'},
47 code => sub {
48 my ($param) = @_;
49
50 die "implement me";
51
52 }});
53
54
55 our $cmddef = {
56 enter => [ __PACKAGE__, 'enter', ['vmid']],
57 list => [ __PACKAGE__, 'list', ['remote']],
58 };
59
60 1;