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!]!
   )

Returned Datatype

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

Table: EnrolledCollector

ParameterTypeRequired[a]DefaultDescription
idstringyes The unique identifier for the enrolled LogCollector.
configIdstringyes The unique identifier for the configuration used.
machineIdstringyes The unique machine identifier.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.