Mutation

update_agent_max_concurrent_scans

Updates the maximum number of concurrent scans that are allowed to run on a given agent machine.

Arguments

input: UpdateAgentMaxConcurrentScansInput!

The fields used to specify which agent machine you want to update, and the new number of concurrent scans that are allowed to run on it.


Input Fields

id(ID!)
The unique identifier of the agent machine.
max_concurrent_scans(Int!)
The maximum number of scans that are allowed to run on this machine at the same time.

Return Fields

agent(Agent)
The updated agent machine.

Example

Query
mutation UpdateAgentMaxConcurrentScans($input: UpdateAgentMaxConcurrentScansInput!) {
  update_agent_max_concurrent_scans(input: $input) {
    agent {
      id
      max_concurrent_scans
      name
      enabled
    }
  }
}
Variables
{
  "input": {
    "id": "4",
    "max_concurrent_scans": 10
  }
}