code: def get_by_hostname(self, hostname):
          
          resources = self._client.get_all()
  
          resources_filtered = [x for x in resources if x['hostname'] == hostname]
  
          if resources_filtered:
              return resources_filtered[0]
          else:
              return None
docs: Retrieve a storage system by its hostname.
  
          Works only in API500 onwards.
  
          Args:
              hostname: Storage system hostname.
  
          Returns:
              dict