]>
Commit | Line | Data |
---|---|---|
2c3a6c0a DM |
1 | TODO: pve-access-control |
2 | ------------------------ | |
3 | ||
4 | Seth?: Implement API Class to manage the domains.cfg file | |
5 | (AuthDomains.pm) | |
6 | ||
7 | ||
8 | pveum api: | |
9 | ||
10 | Is it worth to emulate the useradd/usermod interface? We initially | |
11 | done that because we thought users are common with that. | |
12 | ||
13 | But now it would be possible to expose a 'REST' like interface - like | |
14 | the one we use with pvesh. | |
15 | ||
16 | pveum (get|set|create|delete) <path> [OPTIONS] | |
17 | ||
18 | useradd: pveum create users/<username> [OPTIONS] | |
19 | usermod: pveum set users/<username> [OPTIONS] | |
20 | userdel: pveum delete users/<username> | |
21 | list: pveum get users | |
22 | data: pveum get users/<username> | |
23 | ||
24 | groupadd: pveum create groups/<groupname> [OPTIONS] | |
25 | groupmod: pveum set groups/<groupname> [OPTIONS] | |
26 | groupdel: pveum delete groups/<groupname> | |
27 | list: pveum get groups | |
28 | data: pveum get groups/<groupname> | |
29 | ||
30 | roleadd: pveum create roles/<rolename> [OPTIONS] | |
31 | rolemod: pveum set roles/<rolename> [OPTIONS] | |
32 | roledel: pveum delete roles/<rolename> | |
33 | list: pveum get roles | |
34 | data: pveum get roles/<rolename> | |
35 | ||
36 | ... | |
37 |