Mutation

assign_sites_to_agent_pool

Assign sites to an agent pool, so only agents in that pool will scan those sites.

Arguments

input: AssignSitesToAgentPoolInput!

The fields used to specify which agent pool should be used for scanning the site.


Input Fields

site_ids(): [ID!]
The list of unique identifiers of the sites.
agent_pool_id(): ID!
The unique identifier of the pool you wish to use to scan the site.

Return Fields

sites(): [Site]
The updated sites.

Example

Query
mutation AssignSitesToAgentPool($input: AssignSitesToAgentPoolInput!) {
  assign_sites_to_agent_pool(input: $input) {
    sites {
      id
      name
      agent_pool {
        id
        name
      }
    }
  }
}
Variables
{
  "input": {
    "agent_pool_id": "1",
    "site_ids": [
      "1"
    ]
  }
}
Result
{
  "data": {
    "assign_sites_to_agent_pool": {
      "sites": [
        {
          "id": "1",
          "name": "Example site",
          "agent_pool": {
            "id": "1",
            "name": "Production pool"
          }
        }
      ]
    }
  }
}