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 Manage users & permissions documentation page. You may also want to look at the Creating a Repository or View page for related information.

Syntax

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

graphql
createViewPermissionsToken(
      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

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
expireAtlong  When the permission token will expire.
ipFilterIdstring  The unique identifier of the IP filter.
namestringyes The name of the view permission token to create.
permissions[Permission]yes A list of permissions related to the view that are granted. See Permission.
viewIds[string]  The unique identifiers for the views associated with the permission token.