API Stability Long-Term

The rotateToken() GraphQL mutation may be used to rotate a token in LogScale.

For more information on access tokens of various types, see the Ingest Tokens documentation page.

Syntax

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

graphql
rotateToken(
     input: RotateTokenInputData!
   ): string!

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

Show:
graphql
mutation {
  rotateToken( input:
     { id: "abc123" }
  )
}

Given Datatypes

RotateTokenInputData has only one parameter that may be given. It's described in the table here:

Table: RotateTokenInputData

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 19, 2024
idstringyes Long-TermThe unique identifier of the token to rotate.