Query

agent_pools

Returns a list of agent pools, which can be used to control which agents are used to scan particular sites.

Returns

[AgentPool]

Example

Query
query GetAgentPools {
  agent_pools {
    id
    name
    description
    agents {
      id
      name
    }
  }
}
Variables
{}
Result
{
  "data": {
    "agent_pools": [
      {
        "id": "-1",
        "name": "Default pool",
        "description": "By default, all scanning machines will belong to this pool unless you reassign them.",
        "agents": [
          {
            "id": "2",
            "name": "Second example agent"
          }
        ]
      },
      {
        "id": "1",
        "name": "Production pool",
        "description": "Agents that scan our production sites",
        "agents": [
          {
            "id": "1",
            "name": "Example agent"
          }
        ]
      }
    ]
  }
}