[pve-devel] [PATCH storage 2/2] add API for ZFS management
Dietmar Maurer
dietmar at proxmox.com
Wed Aug 8 08:47:30 CEST 2018
There is also a bug in the schema definition:
pvesh verifyapi
400 internal error - unable to verify schema
properties.devices.type: value 'string-list' does not have a value in the
enumeration 'string, object, coderef, array, boolean, number, integer, null,
any'
> +
> +__PACKAGE__->register_method ({
> + name => 'create',
> + path => '',
> + method => 'POST',
> + proxyto => 'node',
> + protected => 1,
> + permissions => {
> + check => ['perm', '/', ['Sys.Modify', 'Datastore.Allocate']],
> + },
> + description => "Create an LVM thinpool",
> + parameters => {
> + additionalProperties => 0,
> + properties => {
> + node => get_standard_option('pve-node'),
> + name => get_standard_option('pve-storage-id'),
> + raidlevel => {
> + type => 'string',
> + description => 'The RAID level to use, for single disk, use raid1.',
> + enum => ['mirror', 'raid10', 'raidz', 'raidz2', 'raidz3'],
> + },
> + devices => {
> + type => 'string-list',
type => 'string', format => 'string-list'
(already fixed)
> + description => 'The block device you want to create the thinpool on',
> + },
More information about the pve-devel
mailing list