code: def get_agent_pool(self, pool_id, properties=None, action_filter=None):
          
          route_values = {}
          if pool_id is not None:
              route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int')
          query_parameters = {}
          if properties is not None:
              properties = ",".join(properties)
              query_parameters['properties'] = self._serialize.query('properties', properties, 'str')
          if action_filter is not None:
              query_parameters['actionFilter'] = self._serialize.query('action_filter', action_filter, 'str')
          response = self._send(http_method='GET',
                                location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be',
                                version='5.1-preview.1',
                                route_values=route_values,
                                query_parameters=query_parameters)
          return self._deserialize('TaskAgentPool', response)
docs: GetAgentPool.
          [Preview API] Get information about an agent pool.
          :param int pool_id: An agent pool ID
          :param [str] properties: Agent pool properties (comma-separated)
          :param str action_filter: Filter by whether the calling user has use or manage permissions
          :rtype: :class:`<TaskAgentPool> <azure.devops.v5_1.task-agent.models.TaskAgentPool>`