]>
git.proxmox.com Git - pve-manager.git/blob - PVE/API2/Capabilities.pm
1 package PVE
::API2
::Capabilities
;
6 use PVE
::JSONSchema
qw(get_standard_option);
9 use PVE
::API2
::Qemu
::Machine
;
11 use base
qw(PVE::RESTHandler);
13 __PACKAGE__-
>register_method ({
14 subclass
=> "PVE::API2::Qemu::CPU",
18 __PACKAGE__-
>register_method ({
19 subclass
=> "PVE::API2::Qemu::Machine",
20 path
=> 'qemu/machines',
24 __PACKAGE__-
>register_method ({
28 permissions
=> { user
=> 'all' },
29 description
=> "Node capabilities index.",
31 additionalProperties
=> 0,
33 node
=> get_standard_option
('pve-node'),
42 links
=> [ { rel
=> 'child', href
=> "{name}" } ],
56 __PACKAGE__-
>register_method ({
57 name
=> 'qemu_caps_index',
60 permissions
=> { user
=> 'all' },
61 description
=> "QEMU capabilities index.",
63 additionalProperties
=> 0,
65 node
=> get_standard_option
('pve-node'),
74 links
=> [ { rel
=> 'child', href
=> "{name}" } ],
81 { name
=> 'machines' },