API Stability Short-Term

The assignLogCollectorsToConfiguration() GraphQL mutation is used to assign LogCollectors to a particular configuration.

Syntax

Below is the syntax for the assignLogCollectorsToConfiguration() mutation field:

graphql
assignLogCollectorsToConfiguration(
      configId: string,
      ids: [string!])
   ): [EnrolledCollector!]!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  assignLogCollectorsToConfiguration(configId: "123", ids: ["123". "456"] )
       { id, configId, machineId }
}

Returned Datatype

The returned datatype EnrolledCollector has a few of its own parameters. Below is a list of them:

Table: EnrolledCollector

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 24, 2024
configIdstring  Short-TermThe unique identifier for the configuration used.
idstringyes Short-TermThe unique identifier for the enrolled LogCollector.
machineIdstringyes Short-TermThe unique machine identifier.