The updateLicenseKey() GraphQL mutation is used to update the license key for a LogScale cluster. This operation requires root permissions if the cluster has existing license.

For more information on registering with LogScale Cloud, see the Starting with LogScale Cloud configuration page.

Syntax

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

graphql
updateLicenseKey(
     license: string!
   ): License!

Returned Datatypes

The returned datatype License has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: License

ParameterTypeRequiredDefaultDescription
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 17, 2024
expiresAtdatetimeyes The time at which the license expires.
issuedAtdatetimeyes The time at which the license was issued.