meraki_admins.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:Provision-API-Python-Lib 作者: apierson27 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号