mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
* Organization oauth apps #960 * data change notifications (#403) * handle sponsorships during org merge (#942) * linting * fix migrations * fix network view no longer working for anonymous user * code quality pass * linting * poetry relock * poetry relock * missing migrations * linting * regenerate docs
700 B
700 B
Generated from api_key_views.py on 2022-05-10 13:14:00.817872
peeringdb_server.api_key_views
Views for organization api key management.
Functions
add_user_key
def add_user_key(*args, **kwds)
Create a new User API key.
Requires a name and a readonly boolean.
load_all_key_permissions
def load_all_key_permissions(org)
Returns dict of all users with all their permissions for the given org.
remove_user_key
def remove_user_key(*args, **kwds)
Revoke user api key.
save_key_permissions
def save_key_permissions(org, key, perms)
Save key permissions for the specified org and key.
Perms should be a dict of permissioning ids and permission levels.