def _find_apis_by_name(name, description=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  apis = _multi_call(conn.get_rest_apis, 'items')
  if name:
   apis = _filter_apis(name, apis)
  if (description is not None):
   apis = _filter_apis_desc(description, apis)
  return {'restapi': [_convert_datetime_str(api) for api in apis]}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def _find_apis_by_name ( name , description = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) apis = _multi_call ( conn . get_rest_apis , 'items' ) if name : apis = _filter_apis ( name , apis ) if ( description is not None ) : apis = _filter_apis_desc ( description , apis ) return { 'restapi' : [ _convert_datetime_str ( api ) for api in apis ] } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
get and return list of matching rest api information by the given name and desc .