module DppmRestApi::CLI
Included Modules
Extended Modules
Defined in:
cli.crInstance Method Summary
-
#add_group(id, name, permissions, data_dir)
Adds a group with the given values
-
#add_route(id, access, path, data_dir)
Allow the group with the given id to access the given request path at the given access level.
-
#add_user(name, groups, data_dir) : String
Add a user.
- #delete_group(id, data_dir)
- #delete_users(user_id, data_dir)
-
#edit_access(id, path, access, data_dir)
Edits the given group's access level on the given path
- #edit_group_query(id, key, add_glob, remove_glob, path, data_dir)
- #edit_users(user_id, new_name, add_groups, remove_groups, data_dir)
- #rekey_users(user_id, data_dir) : String
- #run_server(config, host, port, data_dir, webui_folder)
-
#show_users(data_dir, match_name, match_groups, api_key) : Array(DppmRestApi::Config::User)
Returns thes information about the selected users.
Macro Summary
-
required(*args)
All variables are received by a method as a
String | Nil
. - run
Instance methods inherited from module DppmRestApi::Config::Helpers
selected_users(match_name, match_groups, api_key, from users_list) : Array(DppmRestApi::Config::User)selected_users(match_name, match_groups, api_key, from users_list, &block : DppmRestApi::Config::User -> DppmRestApi::Config::User?) selected_users, split_numbers(number_list : String) : Set(Int32)
split_numbers(number_list, &) split_numbers
Instance Method Detail
Allow the group with the given id to access the given request path at the given access level.
Add a user. The user's API key will be output to output_file
, or STDOUT
if not specified. If the key is output to STDOUT, the user is also given
the chance to cancel the process after being shown their API key.
Edits the given group's access level on the given path
Returns thes information about the selected users.
Macro Detail
All variables are received by a method as a String | Nil
. This macro
converts an argument, by name, to its String
value, or raises an
error instructing the user to include the variable value.