The createOrganizationPermissionsToken() GraphQL mutation field is used to create an organization permissions token for organizational-level access.

For more information on organization settings, see the Organization Settings documentation page. You may also want to look at the Managing Users & Permissions page for related information. For information on access tokens of various types, see the Ingest Tokens documentation page.

hosted-logscale-organization-settings

Syntax

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

graphql
createOrganizationPermissionsToken(
      input: CreateOrganizationPermissionTokenInput!
   ): string!

Given Datatypes

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

Table: CreateOrganizationPermissionTokenInput

ParameterTypeRequired[a]DefaultDescription
namestringyes The name of the organization token.
expireAtlong  When the organization permission token will expire.
ipFilterIdstring  The unique identifier for the related IP filter.
permissions[OrganizationPermission]yes A list of permissions for the organization (see OrganizationPermission 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.