Using Gateway
Use Gateway to build API-based integrations with the Tanium Core Platform. This service consolidates information from multiple Tanium modules into a unified view of information on the endpoints in the environment. Gateway intelligently routes requests to the services and sources that provide the most recent information and the most reliable mutations.
Gateway uses GraphQL to request data (queries) and to make changes (mutations). With GraphQL, you can compose queries in Gateway to retrieve the exact data that you want as well as filter the results to a set of endpoints.
Use Gateway to:
-
Query endpoints through the Tanium Server, or access data through Tanium Data Service (TDS)
-
Create, delete, and query actions
-
Query packages
-
Open a connection to an endpoint through Tanium Direct Connect and retrieve data from the endpoint
To view examples of available functions, see Reference: Gateway examples.
Create a persona limited to submitting only query requests
If you want to restrict a user's ability to modify information using Gateway, configure a role with read-only rights to certain Tanium Core Platform functionality, then create a persona and add the role to the persona. If a user with this persona active submits a mutation, the response contains an error because the persona does not have write access.
To create a custom role, see Configure a custom role. To create a persona, see Configure a persona.
Test a query in Tanium Console
To access the query explorer in Tanium Console and run a query, perform the following steps:
Gateway sends the query to the server and returns the response in the results pane.
For more information on the query explorer, see Query explorer.
Use the Documentation Explorer to view the schema
Gateway contains a schema reference that documents all queries, mutations, and objects that are available in Gateway. The schema reference is generated directly from the schema; refer to the schema reference in Gateway for the most up-to-date documentation.
To view the schema reference in the query explorer, click Docs to expand the Documentation Explorer pane of the query explorer.