Mutation
mutation EnrollAgent($input: EnrollAgentInput!) {
enrollAgent(input: $input) {
agent {
id
name
hostname
version
osVersion
architecture
}
credential
}
}Variables
{
"input": {
"enrollmentToken": "string",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string",
"capabilities": [
"string"
]
}
}Response
{
"data": {
"enrollAgent": {
"agent": {
"id": "id",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string"
},
"credential": "string"
}
}
}Mutations
enrollAgent
Enrolls an agent and returns an enrolled agent.
MUTATION
enrollAgent(input: EnrollAgentInput!): EnrolledAgent!Arguments
input
required
Values for the requested operation.
Returns
agent
The agent associated with this enrolled agent.
credential
String!
Sensitive credential returned for the requested operation.
Mutation
mutation EnrollAgent($input: EnrollAgentInput!) {
enrollAgent(input: $input) {
agent {
id
name
hostname
version
osVersion
architecture
}
credential
}
}Variables
{
"input": {
"enrollmentToken": "string",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string",
"capabilities": [
"string"
]
}
}Response
{
"data": {
"enrollAgent": {
"agent": {
"id": "id",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string"
},
"credential": "string"
}
}
}