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 unique identifier of the site.
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
agent_pool {
id
name
}
}
}
}
Variables
{
"input": {
"site_ids": [
"1204",
"1155"
],
"agent_pool_id": "10"
}
}