We probably don't need this stuff in the actionsmap anymore ...

This commit is contained in:
Alexandre Aubin 2019-05-10 02:16:31 +02:00
parent f010f49528
commit afdfb13d68

View file

@ -77,9 +77,6 @@ user:
list:
action_help: List users
api: GET /users
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
--fields:
help: fields to fetch
@ -89,9 +86,6 @@ user:
create:
action_help: Create user
api: POST /users
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: The unique username to create
@ -148,9 +142,6 @@ user:
delete:
action_help: Delete user
api: DELETE /users/<username>
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: Username to delete
@ -164,9 +155,6 @@ user:
update:
action_help: Update user informations
api: PUT /users/<username>
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: Username to update
@ -219,9 +207,6 @@ user:
info:
action_help: Get user information
api: GET /users/<username>
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
username:
help: Username or email to get information
@ -235,9 +220,6 @@ user:
allow:
action_help: Allow the user to uses ssh
api: POST /users/ssh/enable
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: Username of the user
@ -248,9 +230,6 @@ user:
disallow:
action_help: Disallow the user to uses ssh
api: POST /users/ssh/disable
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: Username of the user
@ -261,9 +240,6 @@ user:
list-keys:
action_help: Show user's authorized ssh keys
api: GET /users/ssh/keys
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: Username of the user
@ -274,9 +250,6 @@ user:
add-key:
action_help: Add a new authorized ssh key for this user
api: POST /users/ssh/key
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: Username of the user
@ -292,9 +265,6 @@ user:
remove-key:
action_help: Remove an authorized ssh key for this user
api: DELETE /users/ssh/key
configuration:
authenticate: all
authenticator: as-root
arguments:
username:
help: Username of the user
@ -315,17 +285,11 @@ domain:
list:
action_help: List domains
api: GET /domains
configuration:
authenticate: all
authenticator: ldap-anonymous
### domain_add()
add:
action_help: Create a custom domain
api: POST /domains
configuration:
authenticate: all
authenticator: as-root
arguments:
domain:
help: Domain name to add
@ -342,9 +306,6 @@ domain:
remove:
action_help: Delete domains
api: DELETE /domains/<domain>
configuration:
authenticate: all
authenticator: as-root
arguments:
domain:
help: Domain to delete
@ -355,9 +316,6 @@ domain:
dns-conf:
action_help: Generate DNS configuration for a domain
api: GET /domains/<domain>/dns
configuration:
authenticate:
- api
arguments:
domain:
help: Target domain
@ -373,9 +331,6 @@ domain:
cert-status:
action_help: List status of current certificates (all by default).
api: GET /domains/cert-status/<domain_list>
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
domain_list:
help: Domains to check
@ -388,9 +343,6 @@ domain:
cert-install:
action_help: Install Let's Encrypt certificates for given domains (all by default).
api: POST /domains/cert-install/<domain_list>
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
domain_list:
help: Domains for which to install the certificates
@ -412,9 +364,6 @@ domain:
cert-renew:
action_help: Renew the Let's Encrypt certificates for given domains (all by default).
api: POST /domains/cert-renew/<domain_list>
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
domain_list:
help: Domains for which to renew the certificates
@ -436,9 +385,6 @@ domain:
url-available:
action_help: Check availability of a web path
api: GET /domain/urlavailable
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
domain:
help: The domain for the web path (e.g. your.domain.tld)
@ -559,9 +505,6 @@ app:
install:
action_help: Install apps
api: POST /apps
configuration:
authenticate: all
authenticator: as-root
arguments:
app:
help: Name, local path or git URL of the app to install
@ -584,9 +527,6 @@ app:
remove:
action_help: Remove app
api: DELETE /apps/<app>
configuration:
authenticate: all
authenticator: as-root
arguments:
app:
help: App(s) to delete
@ -595,9 +535,6 @@ app:
upgrade:
action_help: Upgrade app
api: PUT /upgrade/apps
configuration:
authenticate: all
authenticator: as-root
arguments:
app:
help: App(s) to upgrade (default all)
@ -613,9 +550,6 @@ app:
change-url:
action_help: Change app's URL
api: PUT /apps/<app>/changeurl
configuration:
authenticate: all
authenticator: as-root
arguments:
app:
help: Target app instance name
@ -668,9 +602,6 @@ app:
action_help: Check availability of a web path
api: GET /tools/checkurl
deprecated: True
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
url:
help: Url to check
@ -682,9 +613,6 @@ app:
register-url:
action_help: Book/register a web path for a given app
api: PUT /tools/registerurl
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
app:
help: App which will use the web path
@ -724,9 +652,6 @@ app:
makedefault:
action_help: Redirect domain root to an app
api: PUT /apps/<app>/default
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
app:
help: App name to put on domain root
@ -738,17 +663,11 @@ app:
ssowatconf:
action_help: Regenerate SSOwat configuration file
api: PUT /ssowatconf
configuration:
authenticate: all
authenticator: ldap-anonymous
### app_change_label()
change-label:
action_help: Change app label
api: PUT /apps/<app>/label
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
app:
help: App ID
@ -759,9 +678,6 @@ app:
addaccess:
action_help: Grant access right to users (everyone by default)
api: PUT /access
configuration:
authenticate: all
authenticator: as-root
arguments:
apps:
nargs: "+"
@ -773,9 +689,6 @@ app:
removeaccess:
action_help: Revoke access right to users (everyone by default)
api: DELETE /access
configuration:
authenticate: all
authenticator: as-root
arguments:
apps:
nargs: "+"
@ -787,9 +700,6 @@ app:
clearaccess:
action_help: Reset access rights for the app
api: POST /access
configuration:
authenticate: all
authenticator: as-root
arguments:
apps:
nargs: "+"
@ -887,9 +797,6 @@ backup:
restore:
action_help: Restore from a local backup archive. If neither --apps or --system are given, this will restore all apps and all system parts in the archive. If only --apps if given, this will only restore apps and no system parts. Similarly, if only --system is given, this will only restore system parts and no apps.
api: POST /backup/restore/<name>
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
name:
help: Name of the local backup archive
@ -1498,9 +1405,6 @@ tools:
adminpw:
action_help: Change password of admin and root users
api: PUT /adminpw
configuration:
authenticate: all
authenticator: as-root
arguments:
-n:
full: --new-password
@ -1516,9 +1420,6 @@ tools:
api:
- GET /domains/main
- PUT /domains/main
configuration:
authenticate: all
authenticator: as-root
arguments:
-n:
full: --new-domain
@ -1571,9 +1472,6 @@ tools:
upgrade:
action_help: YunoHost upgrade
api: PUT /upgrade
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
--ignore-apps:
help: Ignore apps upgrade
@ -1586,9 +1484,6 @@ tools:
diagnosis:
action_help: YunoHost diagnosis
api: GET /diagnosis
configuration:
authenticate: all
authenticator: ldap-anonymous
arguments:
-p:
full: --private
@ -1607,9 +1502,6 @@ tools:
### tools_shell()
shell:
configuration:
authenticate: all
authenticator: as-root
action_help: Launch a development shell
arguments:
-c: