docs: def _list_items(action, key, profile=None, subdomain=None, api_key=None):
      '''
      List items belonging to an API call.
  
      This method should be in utils.pagerduty.
      '''
      items = _query(
          profile=profile,
          subdomain=subdomain,
          api_key=api_key,
          action=action
      )
      ret = {}
      for item in items[action]:
          ret[item[key]] = item
      return ret