code: def create_role(self, role_name, role_type, host_id):
      
      return roles.create_role(self._get_resource_root(), self.name, role_type,
          role_name, host_id, self._get_cluster_name())
docs: Create a role.
  
      @param role_name: Role name
      @param role_type: Role type
      @param host_id: ID of the host to assign the role to
      @return: An ApiRole object