'Creates host on array.'

def create_host(self, label, host_type, ports=None, group_id=None):

    path = '/storage-systems/{system-id}/hosts'
    data = {'name': label, 'hostType': host_type}
    data.setdefault('groupId', (group_id if group_id else None))
    data.setdefault('ports', (ports if ports else None))
    return self._invoke('POST', path, data)
