The createViewPermissionsToken() GraphQL mutation field will create a view permission token to use with LogScale. The permissions will take effect across all of the views.

For more information on access tokens of various types, see the Ingest Tokens documentation page. For information on user authorization, see the Managing Users & Permissions documentation page. You may also want to look at the Creating a Repository or View page for related information.


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

      input: CreateViewPermissionsTokenInput!
   ): string!

Given Datatypes

For the given datatype, CreateViewPermissionsTokenInput, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: CreateViewPermissionsTokenInput

namestringyes The name of the view permission token to create.
expireAtlong  When the permission token will expire.
viewIds[string]  The unique identifiers for the views associated with the permission token.
permissions[Permission]yes A list of permissions related to the view that are granted (see Permission Table).

[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.