]>
git.proxmox.com Git - pve-manager.git/blob - PVE/API2/Hardware.pm
1 package PVE
::API2
::Hardware
;
6 use PVE
::JSONSchema
qw(get_standard_option);
9 use PVE
::API2
::Hardware
::PCI
;
10 use PVE
::API2
::Hardware
::USB
;
12 use base
qw(PVE::RESTHandler);
14 __PACKAGE__-
>register_method ({
15 subclass
=> "PVE::API2::Hardware::PCI",
19 __PACKAGE__-
>register_method ({
20 subclass
=> "PVE::API2::Hardware::USB",
24 __PACKAGE__-
>register_method ({
28 description
=> "Index of hardware types",
33 additionalProperties
=> 0,
35 node
=> get_standard_option
('pve-node'),
42 properties
=> { type
=> { type
=> 'string'} },
44 links
=> [ { rel
=> 'child', href
=> "{type}" } ],