]>
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
;
11 use base
qw(PVE::RESTHandler);
13 __PACKAGE__-
>register_method ({
14 subclass
=> "PVE::API2::Hardware::PCI",
18 __PACKAGE__-
>register_method ({
22 description
=> "Index of hardware types",
27 additionalProperties
=> 0,
29 node
=> get_standard_option
('pve-node'),
36 properties
=> { type
=> { type
=> 'string'} },
38 links
=> [ { rel
=> 'child', href
=> "{type}" } ],
45 # TODO: move usb scan here (6.0 api change)