]>
git.proxmox.com Git - pve-storage.git/blob - PVE/API2/Storage/Scan.pm
1 package PVE
::API2
::Storage
::Scan
;
8 use PVE
::Storage
::LVMPlugin
;
9 use HTTP
::Status
qw(:constants);
10 use PVE
::JSONSchema
qw(get_standard_option);
14 use base
qw(PVE::RESTHandler);
16 __PACKAGE__-
>register_method ({
20 description
=> "Index of available scan methods",
25 additionalProperties
=> 0,
27 node
=> get_standard_option
('pve-node'),
34 properties
=> { method => { type
=> 'string'} },
36 links
=> [ { rel
=> 'child', href
=> "{method}" } ],
43 { method => 'iscsi' },
45 { method => 'glusterfs' },
54 __PACKAGE__-
>register_method ({
58 description
=> "List local USB devices.",
62 check
=> ['perm', '/', ['Sys.Modify']],
65 additionalProperties
=> 0,
67 node
=> get_standard_option
('pve-node'),
75 busnum
=> { type
=> 'integer'},
76 devnum
=> { type
=> 'integer'},
77 port
=> { type
=> 'integer'},
78 usbpath
=> { type
=> 'string', optional
=> 1},
79 level
=> { type
=> 'integer'},
80 class => { type
=> 'integer'},
81 vendid
=> { type
=> 'string'},
82 prodid
=> { type
=> 'string'},
83 speed
=> { type
=> 'string'},
85 product
=> { type
=> 'string', optional
=> 1 },
86 serial
=> { type
=> 'string', optional
=> 1 },
87 manufacturer
=> { type
=> 'string', optional
=> 1 },
94 return PVE
::Storage
::scan_usb
();