code: def get_role(self, key):
          
  
          json_resp = self.get_roles()
          for item in json_resp:
              if key in item["name"]:
                  return item["id"]
          raise CerberusClientException("Key '%s' not found" % key)
docs: Return id of named role.