def api_exists(name, description=None, region=None, key=None, keyid=None, profile=None):
 apis = _find_apis_by_name(name, description=description, region=region, key=key, keyid=keyid, profile=profile)
 return {'exists': bool(apis.get('restapi'))}

def api_exists ( name , description = None , region = None , key = None , keyid = None , profile = None ) : apis = _find_apis_by_name ( name , description = description , region = region , key = key , keyid = keyid , profile = profile ) return { 'exists' : bool ( apis . get ( 'restapi' ) ) }
check to see if the given rest api name and optionlly description exists .