register_standard_option('acl-propagate', {
description => "Allow to propagate (inherit) permissions.",
type => 'boolean',
register_standard_option('acl-propagate', {
description => "Allow to propagate (inherit) permissions.",
type => 'boolean',
optional => 1,
default => 1,
});
register_standard_option('acl-path', {
description => "Access control path",
optional => 1,
default => 1,
});
register_standard_option('acl-path', {
description => "Access control path",
properties => {
propagate => get_standard_option('acl-propagate'),
path => get_standard_option('acl-path'),
properties => {
propagate => get_standard_option('acl-propagate'),
path => get_standard_option('acl-path'),
- type => { type => 'string', title => 'Type', enum => ['user', 'group'] },
- ugid => { type => 'string', title => 'ID' },
- roleid => { type => 'string', title => 'Role' },
+ type => { type => 'string', enum => ['user', 'group'] },
+ ugid => { type => 'string' },
+ roleid => { type => 'string' },
register_standard_option('group-id', {
type => 'string',
format => 'pve-groupid',
register_standard_option('group-id', {
type => 'string',
format => 'pve-groupid',
completion => \&PVE::AccessControl::complete_group,
});
completion => \&PVE::AccessControl::complete_group,
});
register_standard_option('role-id', {
type => 'string',
format => 'pve-roleid',
register_standard_option('role-id', {
type => 'string',
format => 'pve-roleid',
- title => 'Role ID',
- print_width => 30
});
register_standard_option('role-privs', {
type => 'string' ,
format => 'pve-priv-list',
});
register_standard_option('role-privs', {
type => 'string' ,
format => 'pve-priv-list',
- optional => 1, title => 'Privileges',
});
__PACKAGE__->register_method ({
});
__PACKAGE__->register_method ({
properties => {
roleid => get_standard_option('role-id'),
privs => get_standard_option('role-privs'),
properties => {
roleid => get_standard_option('role-id'),
privs => get_standard_option('role-privs'),
- special => { type => 'boolean', optional => 1, default => 0, title => 'Built-In' },
+ special => { type => 'boolean', optional => 1, default => 0 },
},
},
links => [ { rel => 'child', href => "{roleid}" } ],
},
},
links => [ { rel => 'child', href => "{roleid}" } ],
use base qw(PVE::RESTHandler);
register_standard_option('user-enable', {
use base qw(PVE::RESTHandler);
register_standard_option('user-enable', {
description => "Enable the account (default). You can set this to '0' to disable the account",
type => 'boolean',
optional => 1,
description => "Enable the account (default). You can set this to '0' to disable the account",
type => 'boolean',
optional => 1,
}
PVE::JSONSchema::register_standard_option('userid', {
}
PVE::JSONSchema::register_standard_option('userid', {
- description => "User ID", title => "User ID",
+ description => "User ID",
type => 'string', format => 'pve-userid',
maxLength => 64,
});
type => 'string', format => 'pve-userid',
maxLength => 64,
});