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
name
max_concurrent_scans
}
}
}
Variables
{
"input": {
"id": "1",
"max_concurrent_scans": 4
}
}
Result
{
"data": {
"update_agent_max_concurrent_scans": {
"agent": {
"id": "1",
"name": "Example agent",
"max_concurrent_scans": 4
}
}
}
}