Mutation

authorize_agent

Confirms the authorization of a new agent machine for which an authorization request is currently pending. All new agent machines must be authorized before they can communicate with the Enterprise server and run scans.

Arguments

input: AuthorizeAgentInput!

The fields used to specify which new agent machine you want to authorize.


Input Fields

machine_id(ID!)
The unique identifier of the agent machine that you want to authorize.

Return Fields

agent(Agent)
The newly authorized agent machine.

Example

Query
mutation AuthorizeAgent($input: AuthorizeAgentInput!) {
  authorize_agent(input: $input) {
    agent {
      id
      name
      machine_id
      current_scan_count
      ip
      state
      enabled
      max_concurrent_scans
      error {
        code
        error
      }
    }
  }
}
Variables
{
  "input": {
    "machine_id": "313d80669b7918a2c22e8ffdeff607bc28879fdae50c1c2bb620147e72c473d7"
  }
}