docs: def fetch_api_by_name(api_name):
      """ Fetch an api record by its name """
      api_records = console.get_rest_apis()['items']
      matches = filter(lambda x: x['name'] == api_name, api_records)
      if not matches:
          return None
      return matches[0]