'Checks the availability of a cluster API.
Returns True if the specified cluster API exists and may be called by
the current user.  This method should only be used for Data ONTAP 8.1,
and only getter APIs may be tested because the API is actually called
to perform the check.'

def _check_cluster_api_legacy(self, api):

    if (not re.match('.*-get$|.*-get-iter$|.*-list-info$', api)):
        raise ValueError(_('Non-getter    API    passed    to    API    test    method.'))
    try:
        self.send_request(api, enable_tunneling=False)
    except netapp_api.NaApiError as ex:
        if (ex.code in (netapp_api.EAPIPRIVILEGE, netapp_api.EAPINOTFOUND)):
            return False
    return True
