The createReadonlyToken() GraphQL mutation may be used to create a new sharable link to a LogScale dashboard.

For more information on access tokens of various types, see the Ingest Tokens documentation page. For information on user authorization, see the Manage users & permissions documentation page.

Syntax

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

graphql
createReadonlyToken(
      id: string!
      name: string!
      ipFilterId: string,
      queryOwnershipType: QueryOwnershipType
   ): DashboardLink!

The queryOwnershipType is for giving the ownership of the queries run by this shared dashboard. If value is User, ownership wil be based the calling user.

Returned Datatypes

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