def del_admin(self, admin_id):
""" Delete a specified admin account.
Args:
admin_id: ID string or email of the admin to be deleted.
Returns:
deleted: The request object of the deleted admin, or None if the
passed admin ID doesn't exist.
"""
exists = self.__admin_exists(admin_id)
if not exists:
return None
elif not admin_id.isdigit():
admin_id = exists["id"]
url = self.url+"/"+admin_id
return requests.delete(url, headers=self.headers)
meraki_admins.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录