Reference: Gateway examples
Use the following request examples to learn about the functionality and syntax of queries and mutations in Gateway. For information about integrating with the Insomnia API client, downloading request examples in Insomnia JSON format, and generating code examples from the request examples using Insomnia, see Reference: Integration with Insomnia API Client.
System examples
The following requests retrieve data about your Tanium instance.
Get server time
(query.now)
The following query retrieves the local time from Tanium Cloud.
query exampleGetServerTime {
now
}
Example response:
{
"data": {
"now": "2021-11-08T19:22:03Z"
}
}
Get current user information
(query.currentUserContext)
The following query retrieves information about the user submitting the request, including the selected persona and the personas available to that user. If the response contains a null value for the persona ID, the current user has the default persona selected.
query exampleGetCurrentUser {
currentUserContext {
user {
id
username
displayName
}
persona {
id
name
}
availablePersonas {
id
name
}
}
}
Example response:
{
"data": {
"currentUserContext": {
"user": {
"id": "123",
"username": "example_user",
"displayName": "Example user"
},
"persona": {
"id": "234",
"name": "example_persona"
},
"availablePersonas": [
{
"id": "234",
"name": "example_persona"
},
{
"id": "345",
"name": "example_persona_2"
}
]
}
}
}
General examples
The following queries retrieve data from the endpoints in your environment.
Get endpoints
(query.endpoints(source))
The following query retrieves known endpoints from Tanium Cloud.
query exampleGetEndpoints($count: Int, $time: Int) {
endpoints(source: {ts: {expectedCount: $count, stableWaitTime: $time}}) {
edges {
node {
computerID
name
serialNumber
ipAddress
}
}
}
}
Include the count and time variables in the Variables panel or in your variables dictionary:
{
"count": 1,
"time": 10
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "937672696",
"name": "ubuntu-test",
"serialNumber": "Not Specified",
"ipAddress": "10.168.20.30"
}
},
{
"node": {
"computerID": "1867570226",
"name": "CentOS-test-1",
"serialNumber": "Not Specified",
"ipAddress": "10.168.20.40"
}
},
{
"node": {
"computerID": "2711217959",
"name": "CentOS-test-2",
"serialNumber": "Not Specified",
"ipAddress": "10.168.20.50"
}
}
]
}
}
}
Get endpoints with their owning organization
(query.endpoints.edges.node.organization)
If your environment uses multiple customer organizations, the following query retrieves endpoints along with the customer organization that owns each one, and filters the results to a single organization. The organization field is null for endpoints with no established organization identity.
query exampleGetEndpointsWithOrganization($first: Int, $orgId: String!) {
endpoints(
first: $first
filter: { path: "organization.id", op: EQ, value: $orgId }
) {
edges {
node {
id
name
ipAddress
organization {
id
name
}
}
}
}
}
Include the pagination and organization filter variables in the Variables panel or in your variables dictionary:
{
"first": 5,
"orgId": "1"
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": "937672696",
"name": "ubuntu-test",
"ipAddress": "10.168.20.30",
"organization": {
"id": "1",
"name": "Org 1"
}
}
}
]
}
}
}
To discover which organization id values you are authorized to filter on, see List the organizations you are authorized to query.
List the organizations you are authorized to query
(query.taniumPlatformOrganizations)
If your environment uses multiple customer organizations, the following query retrieves the customer organizations that you are authorized to query. A session scoped to the Global organization can see every organization. A session scoped to a single organization sees only that organization.
query exampleListAuthorizedOrganizations($first: Int) {
taniumPlatformOrganizations(first: $first) {
edges {
node {
id
name
}
}
totalRecords
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 20
}
Example response:
{
"data": {
"taniumPlatformOrganizations": {
"edges": [
{
"node": {
"id": "1",
"name": "Org 1"
}
},
{
"node": {
"id": "2",
"name": "Org 2"
}
}
],
"totalRecords": 2
}
}
}
The id values this query returns are the same values the endpoints query accepts when filtering on organization.id. For an example, see Get endpoints with their owning organization.
Get endpoints and update sensor maximum age
(query.endpoints (source.ts.maxAge))
The following query retrieves endpoints from Tanium Cloud and returns results from the Installed Applications and Running Applications sensors. Because maxAge is defined for the Tanium Server source, it applies to all sensors (Installed Applications, Running Applications) and sensor-related fields (computerID, name, serialNumber, and ipAddress) in the request. If any cached sensor data is older than 300 seconds, the relevant sensor reevaluates to retrieve fresh data.
query exampleGetEndpoints($count: Int, $time: Int, $maxAge: Int) {
endpoints(source: {ts: {expectedCount: $count, stableWaitTime: $time, maxAge: $maxAge}}) {
edges {
node {
computerID
name
serialNumber
ipAddress
sensorReadings(sensors: [{name: "Installed Applications"}, {name: "Running Applications"}]) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Include the count, time, and maximum age variables in the Variables panel or in your variables dictionary:
{
"count": 1,
"time": 10,
"maxAge": 300
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "0123456789",
"name": "example_host",
"serialNumber": "1234567890",
"ipAddress": "192.168.0.10",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"example_application",
"example_application_2"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.2.3",
"2.3.4"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Name",
"values": [
"N/A on Linux"
],
"sensor": {
"name": "Running Applications"
}
},
{
"name": "Version",
"values": [
""
],
"sensor": {
"name": "Running Applications"
}
}
]
}
}
},
{
"node": {
"computerID": "2345678901",
"name": "example_host_2",
"serialNumber": "5678901234",
"ipAddress": "192.168.0.20",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"Mozilla Firefox (AArch64 en-US)",
"Notepad++ (64-bit x64)"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"121.0",
"8.5.1"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Name",
"values": [
"Microsoft Teams",
"Microsoft Edge"
],
"sensor": {
"name": "Running Applications"
}
},
{
"name": "Version",
"values": [
"24004.1403.2634.2418",
"121.0.2277.128"
],
"sensor": {
"name": "Running Applications"
}
}
]
}
}
}
]
}
}
}
Get endpoints IDs from Tanium Data Service
(query.endpoints)
The following query retrieves all endpoint IDs from Tanium Data Service.
query exampleGetTDSEndpointIDs {
endpoints {
edges {
node {
id
}
}
}
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": "12345"
}
},
{
"node": {
"id": "54321"
}
},
{
"node": {
"id": "21212"
}
}
]
}
}
}
Get endpoints with filter excluding errors
(query.endpoints (source.ts.excludeErrors | source.tds.excludeErrors))
Retrieved endpoints might contain error messages as field values. You can exclude endpoints retrieved from either the ts or tds data source from the response if they contain common error messages within returned fields. The following query retrieves the first 2 endpoints from Tanium Data Service, and does not exclude endpoints with common error values in returned fields.
query exampleExcludeEndpointsErrors($first: Int, $excludeErrors: Boolean!) {
endpoints(first: $first, source: {tds: {excludeErrors: $excludeErrors}}) {
edges {
node {
name
ipAddress
manufacturer
model
}
}
}
}
Include the pagination and excludeErrors variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"excludeErrors": false
}
Example response containing an endpoint with a common error value in the manufacturer and model fields:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-1",
"ipAddress": "192.0.2.10",
"manufacturer": "VMware, Inc.",
"model": "VMware Virtual Platform"
}
},
{
"node": {
"name": "example-host-2",
"ipAddress": "192.0.2.20",
"manufacturer": "TSE-Error: Unknown - dmidecode unavailable",
"model": "TSE-Error: Unknown - dmidecode unavailable"
}
}
]
}
}
}
If you update the excludeErrors variable definition to true, the query response excludes endpoints with common error values in the returned fields:
{
"first": 2,
"excludeErrors": true
}
Example response containing no endpoints with a common error value in the manufacturer and model fields:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-1",
"ipAddress": "192.0.2.10",
"manufacturer": "VMware, Inc.",
"model": "VMware Virtual Platform"
}
},
{
"node": {
"name": "example-host-3",
"ipAddress": "192.0.2.30",
"manufacturer": "Apple",
"model": "MacPro6,1"
}
}
]
}
}
}
Get endpoints with filter excluding [no results]
(query.endpoints (source.ts.excludeNoResults | source.tds.excludeNoResults))
Retrieved endpoints might contain [no results] as field values. You can exclude endpoints retrieved from either the ts or tds data source from the response if they contain [no results] in returned fields. The following query retrieves the first 2 endpoints from Tanium Data Service, and does not exclude endpoints with [no results] in returned fields.
query exampleExcludeEndpointsNoResults($first: Int, $excludeNoResults: Boolean!) {
endpoints(first: $first, source: {tds: {excludeNoResults: $excludeNoResults}}) {
edges {
node {
name
ipAddress
macAddresses
}
}
}
}
Include the pagination and excludeErrors variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"excludeNoResults": false
}
Example response containing an endpoint with [no results] in the macAddresses field:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-1",
"ipAddress": "192.0.2.10",
"macAddresses": [
"00:00:5E:00:53:10"
]
}
},
{
"node": {
"name": "example-host-2",
"ipAddress": "192.0.2.20",
"macAddresses": [
"[no results]"
]
}
}
]
}
}
}
If you update the excludeNoResults variable definition to true, the query response excludes endpoints with [no results] in the returned fields:
{
"first": 2,
"excludeNoResults": true
}
Example response containing no endpoints with [no results] in the macAddresses field:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-1",
"ipAddress": "192.0.2.10",
"macAddresses": [
"00:00:5E:00:53:10"
]
}
},
{
"node": {
"name": "example-host-3",
"ipAddress": "192.0.2.30",
"macAddresses": [
"00:00:5E:00:53:30"
]
}
}
]
}
}
}
Get endpoints using aliases
(query.endpoints(source))
The following query retrieves known endpoints using aliases to rename the information returned and prevent data collision due to overlapping field names. The tds alias retrieves the id and name of known endpoints from Tanium Data Service. The ts alias retrieves the IPv6 address value of known endpoints from Tanium as a Service and the sensor name.
query exampleGetEndpointsAliases($time: Int) {
tds: endpoints {
edges {
node {
id
name
}
}
}
ts: endpoints(source: {ts: {stableWaitTime: $time}}) {
edges {
node {
sensorReadings(sensors: [{name: "IPv6 Address"}]) {
columns {
name
values
}
}
}
}
}
}
Include the time and sensor name variables in the Variables panel or in your variables dictionary:
{
"time": 10
}
Example response:
{
"data": {
"tds": {
"edges": [
{
"node": {
"id": "12345",
"name": "example-name"
}
},
{
"node": {
"id": "54321",
"name": "example-name-2"
}
}
]
},
"ts": {
"edges": [
{
"node": {
"sensorReadings": {
"columns": [
{
"name": "IPv6 Address",
"values": [
"2001:db8::3"
]
}
]
}
}
},
{
"node": {
"sensorReadings": {
"columns": [
{
"name": "IPv6 Address",
"values": [
"2001:db8::2"
]
}
]
}
}
}
]
}
}
}
Get endpoints using multiple sensors
(query.endpoints.edges.node.sensorReadings)
The following query retrieves known endpoints using multiple sensors. The request specifies the sensor name as one of the fields returned in the request, to identify the sensor that reported the information.
query exampleGetEndpointsApplications {
endpoints {
edges {
node {
computerID
sensorReadings(sensors: [{name: "Installed Applications"}, {name: "Running Applications"}]) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "987654321",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"Tanium Client 7.8.1.3126"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"7.8.1.3126"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Silent Uninstall String",
"values": [
"\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\uninst.exe\""
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Uninstallable",
"values": [
"Is Uninstallable"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Name",
"values": [
"Tanium Client"
],
"sensor": {
"name": "Running Applications"
}
},
{
"name": "Version",
"values": [
"7.8.1.3126"
],
"sensor": {
"name": "Running Applications"
}
},
{
"name": "Process Name",
"values": [
"TaniumClient.exe"
],
"sensor": {
"name": "Running Applications"
}
}
]
}
}
}
]
}
}
}
Get rich endpoint data
(query.endpoints(first))
The following query demonstrates using nested fields to retrieve categorized endpoint data.
query exampleGetRichEndpointData($first: Int) {
endpoints(first: $first) {
edges {
node {
name
computerID
ipAddress
isVirtual
chassisType
systemUUID
domainName
os {
name
platform
generation
}
processor {
architecture
cacheSize
consumption
cpu
family
manufacturer
speed
}
lastLoggedInUser
}
}
pageInfo {
startCursor
endCursor
hasNextPage
}
}
}
Include the first pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "Test-01",
"computerID": "1234567890",
"ipAddress": "192.0.2.10",
"isVirtual": false,
"chassisType": "TSE-Error: Unknown - dmidecode unavailable",
"systemUUID": "TSE-Error: Unknown - dmidecode unavailable",
"domainName": "(none)",
"os": {
"name": "Red Hat Enterprise Linux Server release 5.11 (Tikanga)",
"platform": "Linux",
"generation": "Red Hat Enterprise Linux 5"
},
"processor": {
"architecture": "x86_64",
"cacheSize": "16384 KB",
"consumption": "9.9 %",
"cpu": "Intel Core Processor (Haswell, no TSX, IBRS)",
"family": "6",
"manufacturer": "GenuineIntel",
"speed": "2600 Mhz"
},
"lastLoggedInUser": "reboot"
}
},
{
"node": {
"name": "Test-02",
"computerID": "3216549870",
"ipAddress": "192.0.2.20",
"isVirtual": true,
"chassisType": "Virtual",
"systemUUID": "[no results]",
"domainName": "(none)",
"os": {
"name": "CentOS Linux release 8.4.2105",
"platform": "Linux",
"generation": "CentOS 8"
},
"processor": {
"architecture": "x86_64",
"cacheSize": "35840 KB",
"consumption": "18.6 %",
"cpu": "Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz",
"family": "6",
"manufacturer": "GenuineIntel",
"speed": "2400 Mhz"
},
"lastLoggedInUser": "tester-5"
}
}
],
"pageInfo": {
"startCursor": "NTc2NTM4MDow",
"endCursor": "NTc2NTM4MDoxOQ==",
"hasNextPage": true
}
}
}
}
Get a set of endpoints
(query.endpoints(filter).edges.node.sensorReadings)
The following query retrieves a set of endpoints. The query demonstrates the use of the sensorReadings field and contains a filter argument to retrieve endpoints whose names contain the letter t. The results are paginated to 3 records.
query exampleGetEndpointNamesWithT($first: Int, $filterOp: FieldFilterOp!, $path: String, $value: String) {
endpoints(first: $first, filter: {op: $filterOp, path: $path, value: $value}) {
edges {
node {
name
ipAddress
sensorReadings(sensors: [{name: "EID Last Seen"}]) {
columns {
name
values
}
}
}
}
}
}
Include the filter-related and sensor name variables in the Variables panel or in your variables dictionary:
{
"first": 3,
"filterOp": "MATCHES",
"path": "name",
"value": "t.*"
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "test-1",
"ipAddress": "192.0.2.10",
"sensorReadings": {
"columns": [
{
"name": "EID Last Seen",
"values": [
"Mon, 08 Nov 2021 21:29:28 +0000"
]
}
]
}
}
},
{
"node": {
"name": "test-2",
"ipAddress": "192.0.2.20",
"sensorReadings": {
"columns": [
{
"name": "EID Last Seen",
"values": [
"Mon, 08 Nov 2021 21:29:28 +0000"
]
}
]
}
}
},
{
"node": {
"name": "test-3",
"ipAddress": "192.0.2.30",
"sensorReadings": {
"columns": [
{
"name": "EID Last Seen",
"values": [
"Mon, 08 Nov 2021 21:17:17 +0000"
]
}
]
}
}
}
]
}
}
}
Get a set of endpoints and update sensor maximum age
(query.endpoints(filter).edges.node.sensorReadings)
The following query retrieves a set of endpoints. The query demonstrates the use of the sensorReadings field and contains a filter argument to retrieve endpoints whose names contain the letter t, and returns the total memory on each endpoint. The results are paginated to 3 records. Because maxAge is defined for the Total Memory sensor, the sensor reevaluates if the cached Total Memory sensor results are older than 300 seconds. This maxAge setting does not affect other response fields (name and ipAddress) that are not associated with the Total Memory sensor.
query exampleGetEndpointNamesWithTSMaxAge($first: Int, $filterOp: FieldFilterOp!, $path: String, $value: String, $maxAge: Int) {
endpoints(
first: $first
source: {ts: {stableWaitTime: 10}}
filter: {op: $filterOp, path: $path, value: $value}
) {
edges {
node {
name
ipAddress
sensorReadings(sensors: [{name: "Total Memory", maxAge: $maxAge}]) {
columns {
name
values
}
}
}
}
}
}
Include the filter-related and sensor name variables in the Variables panel or in your variables dictionary:
{
"first": 3,
"filterOp": "MATCHES",
"path": "name",
"value": "t.*",
"maxAge": 300
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "t_example_host",
"ipAddress": "192.0.2.10",
"sensorReadings": {
"columns": [
{
"name": "Total Memory",
"values": [
"4000 MB"
]
}
]
}
}
},
{
"node": {
"name": "t_example_host_2",
"ipAddress": "192.0.2.20",
"sensorReadings": {
"columns": [
{
"name": "Total Memory",
"values": [
"3900 MB"
]
}
]
}
}
},
{
"node": {
"name": "t_example_host_3",
"ipAddress": "192.0.2.30",
"sensorReadings": {
"columns": [
{
"name": "Total Memory",
"values": [
"3800 MB"
]
}
]
}
}
}
]
}
}
}
Similarly, if you define multiple sensors, the maxAge setting only affects sensors for which it is defined. The following query adds the Operating System sensor to the prior query, but does not define a maxAge setting for that sensor. The Total Memory sensor reevaluates if the cached Total Memory sensor results are older than the maxAge setting (300 seconds). The Operating System sensor reevaluates based on the Operating System sensor default maximum age setting (1 day), and not the maxAge setting for the Total Memory sensor.
query exampleGetEndpointNamesWithTS1MaxAge($first: Int, $filterOp: FieldFilterOp!, $path: String, $value: String, $maxAge: Int) {
endpoints(
first: $first
source: {ts: {stableWaitTime: 10}}
filter: {op: $filterOp, path: $path, value: $value}
) {
edges {
node {
name
ipAddress
sensorReadings(sensors: [{name: "Total Memory", maxAge: $maxAge}, {name: "Operating System"}]) {
columns {
name
values
}
}
}
}
}
}
Include the filter-related and sensor name variables in the Variables panel or in your variables dictionary:
{
"first": 3,
"filterOp": "MATCHES",
"path": "name",
"value": "t.*",
"maxAge": 300
}
Unregistered sensor query
(query.endpoints.edges.node.sensorReadings)
The following query retrieves the operating system platform from all endpoints.
query exampleGetEndpointsUnregisteredSensor {
endpoints {
edges {
node {
id
name
sensorReadings(sensors: [{name: "OS Platform"}]) {
columns {
name
values
}
}
}
}
}
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": "12345",
"name": "Test-01",
"sensorReadings": {
"columns": [
{
"name": "OS Platform",
"values": [
"Linux"
]
}
]
}
}
},
{
"node": {
"id": "54321",
"name": "Test-03",
"sensorReadings": {
"columns": [
{
"name": "OS Platform",
"values": [
"Linux"
]
}
]
}
}
}
]
}
}
}
(1.1 - Experimental (Active Development)) Get mobile devices
(query.endpoints (source.ts.scope))
The following query retrieves a mobile device.
query exampleGetMobileDevices($first: Int!) {
endpoints(
first: $first
source: {ts: {scope: ALL_TS_SOURCED_ENTITIES}}
filter: {path: "entityType", op: EQ, value: "Mobile Device"}
) {
edges {
node {
id
namespace
entityType
entityProviderType
isEndpoint
entityProviderName
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": "3273300",
"namespace": "",
"entityType": "Mobile Device",
"entityProviderType": "Microsoft Intune",
"isEndpoint": true,
"entityProviderName": "Example Entity"
}
}
]
}
}
}
Get mobile devices from Tanium Data Service
(query.endpoints (source.tds.scope))
The following query retrieves a mobile device from Tanium Data Service.
query exampleGetMobileDevicesTDS($first: Int!) {
endpoints(
first: $first
source: {tds: {scope: ALL_TS_SOURCED_ENTITIES}}
filter: {path: "entityType", op: EQ, value: "Mobile Device"}
) {
edges {
node {
id
namespace
entityType
entityProviderType
isEndpoint
entityProviderName
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": "3573598",
"namespace": "Microsoft Intune-Mobile Device",
"entityType": "Mobile Device",
"entityProviderType": "Microsoft Intune",
"isEndpoint": true,
"entityProviderName": "Example Entity"
}
}
]
}
}
}
Unregistered parameterized sensor query
(query.endpoints.edges.node.sensorReadings)
The following query checks to see if each endpoint contains the C:\Windows\py.exe file.
query exampleGetEndpointsParams($paramName1: String!, $paramValue1: String!) {
endpoints(source: {ts: {}}) {
edges {
node {
name
id
sensorReadings(
sensors: [{name: "File Exists", params: [{name: $paramName1, value: $paramValue1}]}]
) {
columns {
sensor {
name
params {
name
value
}
}
values
}
}
}
}
}
}
Include the sensor name and parameter variables in the Variables panel or in your variables dictionary:
{
"paramName1": "file",
"paramValue1": "C:\\Windows\\py.exe"
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "Test-01",
"id": "12345",
"sensorReadings": {
"columns": [
{
"sensor": {
"name": "File Exists",
"params": [
{
"name": "file",
"value": "C:\\Windows\\py.exe"
}
]
},
"values": [
"File does not exist"
]
}
]
}
}
},
{
"node": {
"name": "[no results]",
"id": "54225",
"sensorReadings": {
"columns": [
{
"sensor": {
"name": "File Exists",
"params": [
{
"name": "file",
"value": "C:\\Windows\\py.exe"
}
]
},
"values": [
"[no results]"
]
}
]
}
}
},
{
"node": {
"name": "[no results]",
"id": "65456",
"sensorReadings": {
"columns": [
{
"sensor": {
"name": "File Exists",
"params": [
{
"name": "file",
"value": "C:\\Windows\\py.exe"
}
]
},
"values": [
"[no results]"
]
}
]
}
}
}
]
}
}
}
Get selected columns from sensor query (query.endpoints.edges.node.sensorReadings.columns)
Get selected columns from a sensor query
The following query retrieves the first 2 endpoint results, and returns only the Name and Silent Uninstall String columns from the Installed Applications sensor.
query exampleGetEndpointsApplicationsColumns ($first: Int) {
endpoints (first: $first) {
edges {
node {
computerID
sensorReadings(sensors: [{name: "Installed Applications", columns: ["Name", "Silent Uninstall String"]}]) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "987654321",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"Tanium Client 7.8.1.3126"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Silent Uninstall String",
"values": [
"\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\uninst.exe\""
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
}
]
}
}
}
Filter sensor query results (query.endpoints.edges.node.sensorReadings (sensors.filter))
Filter the results from a sensor query
The following query retrieves the first 2 endpoint results, and returns the application Name and Version columns for only the endpoints that have the tar application installed, based on the results from the Installed Applications sensor.
query exampleGetEndpointsInstalledTar($first: Int) {
endpoints(first: $first) {
edges {
node {
computerID
sensorReadings(
sensors: [{name: "Installed Applications", filter: {column: "Name", op: EQ, value: "tar", restrictOwner: false}}]
) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "1234567890",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.34"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
},
{
"node": {
"computerID": "2345678901",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.33"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
}
]
}
}
}
Filter sensor query results from a filtered set of endpoints
The following query retrieves the first 2 endpoints that are a member of the All Linux computer group, and returns the application Name and Version columns for only the endpoints that have the tar application installed, based on the results from the Installed Applications sensor.
query exampleGetLinuxEndpointsInstalledTar ($first: Int){
endpoints(first: $first, filter: {memberOf: {name: "All Linux"}}) {
edges {
node {
computerID
sensorReadings(
sensors: [{name: "Installed Applications", filter: {column: "Name", op: EQ, value: "Tar", restrictOwner: false}}]
) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "3456789012",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.32"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
},
{
"node": {
"computerID": "4567890123",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.30"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
}
]
}
}
}
Apply multi-column filter to sensor query results
The following query retrieves the first 2 endpoints, and returns the application Name and Version columns for only the endpoints that have the tar application version 1.30 installed, based on the results from the Installed Applications sensor.
query exampleGetEndpointsInstalledTar13($first: Int) {
endpoints(first: $first) {
edges {
node {
computerID
sensorReadings(
sensors: [{name: "Installed Applications", filter: {restrictOwner: false, filters: [{column: "Name", op: EQ, value: "Tar"}, {column: "Version", op: EQ, value: "1.30"}]}}]
) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "4567890123",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.30"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
},
{
"node": {
"computerID": "5678901234",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.30"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
}
]
}
}
}
Apply multi-column filter to sensor query results for filtered endpoints
The following query retrieves the first two endpoints that are members of the All Linux computer group, filtering out endpoints that return [no results], and returns the application Name and Version columns for only the endpoints that have the tar application version 1.30 installed, based on the results from the Installed Applications sensor.
query exampleGetLinuxEndpointsInstalledTar130($first: Int, $excludeNoResults: Boolean!) {
endpoints(
first: $first
source: {ts: {excludeNoResults: $excludeNoResults}}
filter: {memberOf: {name: "All Linux"}}
) {
edges {
node {
computerID
sensorReadings(
sensors: [{name: "Installed Applications", filter: {restrictOwner: false, filters: [{column: "Name", op: EQ, value: "Tar"}, {column: "Version", op: EQ, value: "1.30"}]}}]
) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary, and set excludeNoResults to true to filter out endpoints that return [no results]:
{
"first": 2,
"excludeNoResults": true
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "6789012345",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.30"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
},
{
"node": {
"computerID": "7890123456",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.30"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
}
]
}
}
}
Filter sensor query results with restrictOwner option
You can control which rows are returned by a sensor when you filter the sensor in the sensorReadings field. Use the restrictOwner option to control whether the filter in sensorReadings also decides which endpoints are returned.
-
restrictOwner: false: Filter only the sensor rows. All endpoints that you request still appear, although some endpoints might return [no results]. Use this option when you want to retrieve all endpoints, but only those endpoints that match rows for that sensor.
-
restrictOwner: true: Filter both endpoints and sensor rows. Only endpoints with at least one matching row are returned. Use this option when you want only endpoints that have a match.
The following query uses restrictOwner: false to retrieve all endpoints and then filters those endpoints. The query is paginated to return the first two results.
query exampleGetEndpointsInstalledTarRestrictOwnerFalse{
endpoints(first: 2) {
edges {
node {
computerID
sensorReadings(
sensors: [{
name: "Installed Applications",
filter: { column: "Name", op: EQ, value: "tar", restrictOwner: false }
}]
) {
columns { name values sensor { name } }
}
}
}
}
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "2680890512",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"tar"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"1.34"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Silent Uninstall String",
"values": [
"nothing"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Uninstallable",
"values": [
"Not Uninstallable"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
},
{
"node": {
"computerID": "3752377178",
"sensorReadings": {
"columns": [
{
"name": "Name",
"values": [
"[no results]"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"[no results]"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Silent Uninstall String",
"values": [
"[no results]"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Uninstallable",
"values": [
"[no results]"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
}
]
}
}
}
The following query uses restrictOwner: true to retrieve only endpoints that match the filter. The query is paginated to return the first two results.
query exampleGetEndpointsInstalledTarRestrictOwnerTrue {
endpoints(first: 2) {
edges {
node {
computerID
sensorReadings(
sensors: [{name: "Installed Applications", filter: {column: "Name", op: EQ, value: "tar", restrictOwner: true}}]
) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Endpoint cursor query
(query.endpoints.pageInfo)
The following query retrieves cursors for endpoint records. You can use these cursors to retrieve specific endpoint records on a page. For more information about cursors, see Pagination.
query exampleGetEndpointCursors {
endpoints {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
Example response:
{
"data": {
"endpoints": {
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": true,
"startCursor": "NTc2NTM4MDow",
"endCursor": "NTc2NTM4MDoxOQ=="
}
}
}
}
Paginated query
(query.endpoints(after, first))
The following query retrieves the first five endpoint records after the given cursor. For more information about cursors, see Pagination.
query exampleGetFirstFiveEndpoints($cursor: Cursor, $first: Int) {
endpoints(after: $cursor, first: $first) {
edges {
node {
name
id
ipAddress
}
}
pageInfo {
hasNextPage
startCursor
endCursor
}
}
}
Include the pagination-related variables in the Variables panel or in your variables dictionary:
{
"cursor": "NTc2NTM4MDow",
"first": 5
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "Test-06",
"id": "6172",
"ipAddress": "192.0.2.10"
}
},
{
"node": {
"name": "Test-07",
"id": "87654",
"ipAddress": "192.0.2.20"
}
},
{
"node": {
"name": "Test-14",
"id": "43584",
"ipAddress": "192.0.2.30"
}
},
{
"node": {
"name": "Test-03",
"id": "37233",
"ipAddress": "[no results]"
}
},
{
"node": {
"name": "Test-55",
"id": "12139",
"ipAddress": "[no results]"
}
}
],
"pageInfo": {
"hasNextPage": true,
"startCursor": "NTc2NTM4MDow",
"endCursor": "NTc2NTM4MDoxOQ=="
}
}
}
}
Get refreshed collection of endpoints (query.endpoints.collectionInfo.startCursor, query.endpoints(refresh))
Retrieve collection start cursor
The following query retrieves an endpoint that is slow to respond, with collectionInfo.startCursor included in the response to use for refreshing the request. For more information about how to refresh a collection, see Refreshing collections.
query exampleGetSlowEndpoint($first: Int, $path: String, $value: String, $expectedCount: Int) {
endpoints(
first: $first
filter: {path: $path, value: $value}
source: {ts: {expectedCount: $expectedCount}}
) {
edges {
node {
id
}
}
collectionInfo {
startCursor
success
active
}
}
}
Add the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"first": 1,
"path": "name",
"value": "slow-endpoint",
"expectedCount": 1
}
Example response for an ongoing collection with a startCursor value:
{
"data": {
"endpoints": {
"edges": [],
"collectionInfo": {
"startCursor": "4t2cB0ZGNPqy4J4P7O7opwz/24/5zgPi6OinDAA=:0",
"success": false,
"active": true
}
}
}
}
Refresh collection using starting cursor
The following query refreshes the collection using the returned startCursor value:
query exampleGetEndpointRefresh($refresh: Cursor, $first: Int, $path: String, $value: String, $expectedCount: Int) {
endpoints(
refresh: $refresh
first: $first
filter: {path: $path, value: $value}
source: {ts: {expectedCount: $expectedCount}}
) {
edges {
node {
id
}
}
collectionInfo {
startCursor
success
active
}
}
}
Add the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"refresh": "4t2cB0ZGNPqy4J4P7O7opwz/24/5zgPi6OinDAA=:0",
"first": 1,
"path": "name",
"value": "slow-endpoint",
"expectedCount": 1
}
Example response with a completed collection:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": 1
}
}
],
"collectionInfo": {
"startCursor": "4t2cB0ZGNPqy4J4P7O7opwz/24/5zgPi6OinDAA=:0",
"success": true,
"active": true
}
}
}
}
Software characteristics query with filter
(query.endpoints.edges.node.deployedSoftwarePackages)
The following query retrieves endpoints that contain software installed by Deploy, where the package ID is 123.
query exampleGetEndpointsPackage123($value1: String, $value2: String) {
endpoints {
edges {
node {
ipAddress
isVirtual
domainName
os {
generation
}
lastLoggedInUser
deployedSoftwarePackages(
filter: {filters: [{op: EQ, path: "id", value: $value1}, {op: EQ, path: "applicability", value: $value2}]}
) {
id
}
}
}
}
}
Include the value variables in the Variables panel or in your variables dictionary:
{
"value1": "123",
"value2": "Installed"
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"ipAddress": "192.0.2.10",
"isVirtual": true,
"domainName": "(none)",
"os": {
"generation": "Debian 9"
},
"lastLoggedInUser": "[no results]",
"deployedSoftwarePackages": [
{
"id": "123"
}
]
}
},
{
"node": {
"ipAddress": "192.0.2.20",
"isVirtual": true,
"domainName": "(none)",
"os": {
"generation": "CentOS 7"
},
"lastLoggedInUser": "admin",
"deployedSoftwarePackages": [
{
"id": "123"
}
]
}
},
{
"node": {
"ipAddress": "192.0.2.30",
"isVirtual": true,
"domainName": "(none)",
"os": {
"generation": "Ubuntu 20.04"
},
"lastLoggedInUser": "admin",
"deployedSoftwarePackages": [
{
"id": "123"
}
]
}
}
]
}
}
}
Get applications installed on endpoint
(query.endpoints.edges.node.installedApplications)
The following query retrieves the applications installed on the first 2 endpoints, the application version, the program used to uninstall the application, and whether you can uninstall the application using Tanium.
query exampleGetInstalledApplications($first: Int) {
endpoints(first: $first) {
edges {
node {
id
name
installedApplications {
name
silentUninstallString
uninstallable
version
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": "12345",
"name": "example-host",
"installedApplications": [
{
"name": "Notepad++ (64-bit x64)",
"silentUninstallString": "\"C:\\Program Files\\Notepad++\\uninstall.exe\"",
"uninstallable": false,
"version": "8.4.2"
},
{
"name": "Microsoft Edge",
"silentUninstallString": "\"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\103.0.1264.49\\Installer\\setup.exe\" --uninstall --msedge --channel=stable --system-level --verbose-logging",
"uninstallable": false,
"version": "103.0.1264.62"
},
{
"name": "Tanium Client 7.8.1.3126",
"silentUninstallString": "\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\uninst.exe\"",
"uninstallable": false,
"version": "7.8.1.3126"
}
]
}
},
{
"node": {
"id": "23456",
"name": "example-host-2",
"installedApplications": [
{
"name": "Google Chrome",
"silentUninstallString": "MsiExec.exe /X{6C53E336-8514-3BA8-8852-427A9FB5DC91}",
"uninstallable": true,
"version": "103.0.5060.114"
},
{
"name": "Tanium Client 7.8.1.3126",
"silentUninstallString": "\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\uninst.exe\"",
"uninstallable": false,
"version": "7.8.1.3126"
}
]
}
}
]
}
}
}
Get Microsoft Sentinel endpoint information
(query.endpoints.edges.node.sentinel)
The following query retrieves Microsoft Sentinel information for the first 2 endpoints, including Windows Defender and System Center Configuration Manager (SCCM) client details.
query exampleGetSentinelInfo($first: Int) {
endpoints(first: $first) {
edges {
node {
id
name
sentinel {
sccmClient {
health
reason
}
windowsDefender {
antiSpywareEnabled
antivirusEnabled
antivirusSignatureUpdateAge
clientVersion
healthy
installed
processEnabled
processStartType
quickScanAge
}
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"id": "12345",
"name": "Example_host",
"sentinel": {
"sccmClient": {
"health": "Healthy",
"reason": ""
},
"windowsDefender": {
"antiSpywareEnabled": "True",
"antivirusEnabled": "True",
"antivirusSignatureUpdateAge": "0",
"clientVersion": "1.1.19500.2",
"healthy": "true",
"installed": "True",
"processEnabled": "True",
"processStartType": "Normal",
"quickScanAge": "1"
}
}
}
},
{
"node": {
"id": "23456",
"name": "Example_host_2",
"sentinel": {
"sccmClient": {
"health": "Needs Attention",
"reason": "SCCM Not Installed"
},
"windowsDefender": {
"antiSpywareEnabled": "True",
"antivirusEnabled": "True",
"antivirusSignatureUpdateAge": "1",
"clientVersion": "1.1.19500.2",
"healthy": "true",
"installed": "True",
"processEnabled": "True",
"processStartType": "Normal",
"quickScanAge": "0"
}
}
}
}
]
}
}
}
(1.0 - Experimental (Early Development)) Get endpoint counts
(query.endpointCounts)
Get the count of endpoints
You can retrieve the count of endpoints that match sensor column values. Each node returned in the response can contain sensor columns and associated values for that sensor result row, and the count of endpoints matching those values. For multi-column sensors, you can return all column values.
This query only supports the Tanium Server (ts) source. If you define the Tanium Data Service (tds) source, the response returns an error.
The following query retrieves endpoint counts from Tanium Cloud based on the Installed Applications multi-column sensor values.
query exampleCountEndpointAllSensorColumns($stableWaitTime: Int, $sensorName: String!) {
endpointCounts(
input: {source: {ts: {stableWaitTime: $stableWaitTime}}, sensors: [{name: $sensorName}]}
) {
edges {
node {
count
columns {
columnName
sensor {
name
}
values
}
}
}
}
}
Include the wait time and sensor name variables in the Variables panel or in your variables dictionary:
{
"stableWaitTime": 60,
"sensorName": "Installed Applications"
}
Example response:
{
"data": {
"endpointCounts": {
"edges": [
{
"node": {
"count": 3,
"columns": [
{
"columnName": "Name",
"sensor": {
"name": "Installed Applications"
},
"values": [
"curl",
"libcurl3-gnutls:amd64",
"libcurl4:amd64"
]
},
{
"columnName": "Version",
"sensor": {
"name": "Installed Applications"
},
"values": [
"8.6.0",
"16.04",
"8.6.0-3"
]
},
{
"columnName": "Silent Uninstall String",
"sensor": {
"name": "Installed Applications"
},
"values": [
"nothing",
"nothing",
"nothing"
]
},
{
"columnName": "Uninstallable",
"sensor": {
"name": "Installed Applications"
},
"values": [
"Not Uninstallable",
"Not Uninstallable",
"Not Uninstallable"
]
}
]
}
},
{
"node": {
"count": 2,
"columns": [
{
"columnName": "Name",
"sensor": {
"name": "Installed Applications"
},
"values": [
"Notepad++ (64-bit x64)"
]
},
{
"columnName": "Version",
"sensor": {
"name": "Installed Applications"
},
"values": [
"8.5.1"
]
},
{
"columnName": "Silent Uninstall String",
"sensor": {
"name": "Installed Applications"
},
"values": [
"\"C:\\Program Files\\Notepad++\\uninstall.exe\""
]
},
{
"columnName": "Uninstallable",
"sensor": {
"name": "Installed Applications"
},
"values": [
"Not Uninstallable"
]
}
]
}
}
]
}
}
}
Get the count of endpoints by entity type
The following query retrieves endpoint counts from Tanium Cloud based on the entity type.
query getEndpointTypeCounts {
endpointCounts(
input: {source: {ts: {scope: ALL_TS_SOURCED_ENTITIES}}, sensors: [{name: "Entity Type"}]}
) {
edges {
node {
columns {
columnName
values
}
count
}
}
}
}
Example response:
{
"data": {
"endpointCounts": {
"edges": [
{
"node": {
"columns": [
{
"columnName": "Entity Type",
"values": [
"Computer"
]
}
],
"count": 162
}
},
{
"node": {
"columns": [
{
"columnName": "Entity Type",
"values": [
"Mobile Device"
]
}
],
"count": 8
}
}
]
}
}
}
The following query retrieves endpoint counts from Tanium Cloud based on the Installed Applications multi-column sensor, but filters to return only endpoints with libcurl installed.
query exampleCountEndpointSelectSensorColumn($first: Int!, $stableWaitTime: Int, $sensorName: String!, $columnName: String, $op: SensorValueFilterOp!, $columnValue: String) {
endpointCounts(
input: {source: {ts: {stableWaitTime: $stableWaitTime}}, sensors: [{name: $sensorName, filter: {column: $columnName, op: $op, value: $columnValue}}]}
) {
edges {
node {
count
columns {
columnName
sensor {
name
}
values
}
}
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"stableWaitTime": 60,
"sensorName": "Installed Applications",
"columnName": "Name",
"op": "EQ",
"columnValue": "libcurl"
}
Example response:
{
"data": {
"endpointCounts": {
"edges": [
{
"node": {
"count": 7,
"columns": [
{
"columnName": "Name",
"sensor": {
"name": "Installed Applications"
},
"values": [
"libcurl"
]
},
{
"columnName": "Version",
"sensor": {
"name": "Installed Applications"
},
"values": [
"7.61.1"
]
},
{
"columnName": "Silent Uninstall String",
"sensor": {
"name": "Installed Applications"
},
"values": [
"nothing"
]
},
{
"columnName": "Uninstallable",
"sensor": {
"name": "Installed Applications"
},
"values": [
"Not Uninstallable"
]
}
]
}
},
{
"node": {
"count": 3,
"columns": [
{
"columnName": "Name",
"sensor": {
"name": "Installed Applications"
},
"values": [
"libcurl"
]
},
{
"columnName": "Version",
"sensor": {
"name": "Installed Applications"
},
"values": [
"7.76.1"
]
},
{
"columnName": "Silent Uninstall String",
"sensor": {
"name": "Installed Applications"
},
"values": [
"nothing"
]
},
{
"columnName": "Uninstallable",
"sensor": {
"name": "Installed Applications"
},
"values": [
"Not Uninstallable"
]
}
]
}
}
]
}
}
}
The following query retrieves endpoint counts from Tanium Cloud based on the Custom Tag Exists single column sensor, and passes the tag parameter value the-tag to check for endpoints assigned that custom tag.
query exampleCountEndpointParamSensor($first: Int!, $stableWaitTime: Int, $sensorName: String!, $paramName: String!, $paramValue: String!) {
endpointCounts(
input: {source: {ts: {stableWaitTime: $stableWaitTime}}, sensors: [{name: $sensorName, params: [{name: $paramName, value: $paramValue}]}]}
) {
edges {
node {
count
columns {
columnName
sensor {
name
}
values
}
}
}
}
}
Include the time, sensor, and parameter variables in the Variables panel or in your variables dictionary:
{
"stableWaitTime": 60,
"sensorName": "Custom Tag Exists",
"paramName": "tag",
"paramValue": "the-tag"
}
Example response:
{
"data": {
"endpointCounts": {
"edges": [
{
"node": {
"count": 10,
"columns": [
{
"columnName": "Custom Tag Exists",
"sensor": {
"name": "Custom Tag Exists"
},
"values": [
"False"
]
}
]
}
},
{
"node": {
"count": 2,
"columns": [
{
"columnName": "Custom Tag Exists",
"sensor": {
"name": "Custom Tag Exists"
},
"values": [
"True"
]
}
]
}
}
]
}
}
}
(1.0 - Experimental (Early Development)) Get refreshed collection of endpoint counts using one sensor
(query.endpointCounts.collectionInfo.startCursor, query.endpointCounts(refresh))
Retrieve and refresh endpoint count collection start cursor using one sensor
The following query retrieves an endpoint count that is slow to respond, with collectionInfo.startCursor included in the response to use for refreshing the request. For more information about how to refresh a collection, see Refreshing collections.
query exampleGetSlowEndpointCount($first: Int!, $stableWaitTime: Int, $sensorName: String!) {
endpointCounts(
input: {first: $first, source: {ts: {stableWaitTime: $stableWaitTime}}, sensors: [{name: $sensorName}]}
) {
edges {
node {
count
columns {
columnName
sensor {
name
}
values
}
}
}
collectionInfo {
startCursor
success
active
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
Add the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"first": 1,
"stableWaitTime": 60,
"sensorName": "Installed Applications"
}
Example response for an ongoing collection with a startCursor value:
{
"data": {
"endpoints": {
"edges": [],
"collectionInfo": {
"startCursor": "OEtXWEZYSnVicks4K09rTTJMR0s0d3pJcUlyakRPQ29pdU1NQUE9PTow",
"success": false,
"active": true
},
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": false,
"startCursor": "OEtXWEZYSnVicks4K09rTTJMR0s0d3pJcUlyakRPQ29pdU1NQUE9PTow",
"endCursor": "OEtXWEZYSnVicks4K09rTTJMR0s0d3pJcUlyakRPQ29pdU1NQUE9PTow"
}
}
}
}
The following query refreshes the endpoint count collection using the returned startCursor value:
query exampleRefreshSlowEndpointCount($refresh: Cursor, $first: Int!, $stableWaitTime: Int, $sensorName: String!) {
endpointCounts(
input: {refresh: $refresh, first: $first, source: {ts: {stableWaitTime: $stableWaitTime}}, sensors: [{name: $sensorName}]}
) {
edges {
node {
count
columns {
columnName
sensor {
name
}
values
}
}
}
collectionInfo {
startCursor
success
active
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
Add the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"refresh": "OEtXWEZYSnVicks4K09rTTJMR0s0d3pJcUlyakRPQ29pdU1NQUE9PTow",
"first": 1,
"stableWaitTime": 60,
"sensorName": "Installed Applications"
}
Example response with a completed collection:
{
"data": {
"endpointCounts": {
"edges": [
{
"node": {
"count": 1,
"columns": [
{
"columnName": "Name",
"sensor": {
"name": "Installed Applications"
},
"values": [
"Cygwin Bash Prompt Here (x86_64)",
"Tanium Client 7.6.1.6062"
]
},
{
"columnName": "Version",
"sensor": {
"name": "Installed Applications"
},
"values": [
"N/A",
"7.6.1.6062"
]
},
{
"columnName": "Silent Uninstall String",
"sensor": {
"name": "Installed Applications"
},
"values": [
"C:\\cygwin64\\bin\\sh -c \"PATH=/bin /bin/chere -u -s bash\"",
"\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\uninst.exe\""
]
},
{
"columnName": "Uninstallable",
"sensor": {
"name": "Installed Applications"
},
"values": [
"Not Uninstallable",
"Not Uninstallable"
]
}
]
}
}
],
"collectionInfo": {
"startCursor": "OEtXWEZYSnljcm1nb3JjRTJMR0s0d3kwcTRyakRPeXJpdU1NQUE9PTow",
"success": false,
"active": true
},
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": false,
"startCursor": "OEtXWEZYSnVicks4K09rTTJMR0s0d3pJcUlyakRPQ29pdU1NQUE9PTow",
"endCursor": "OEtXWEZYSnVicks4K09rTTJMR0s0d3pJcUlyakRPQ29pdU1NQUE9PTow"
}
}
}
}
(1.0 - Experimental (Early Development)) Get refreshed collection of endpoint counts using multiple sensors
(query.endpointCounts.collectionInfo.startCursor, query.endpointCounts(refresh))
Retrieve and refresh endpoint count collection start cursor using multiple sensors
The following query retrieves an endpoint count that is slow to respond, based on the Operating System Generation and RAM sensors, with collectionInfo.startCursor included in the response to use for refreshing the request. For more information about how to refresh a collection, see Refreshing collections.
query exampleGetSlowEndpointCount2($first: Int!, $stableWaitTime: Int, $sensorName1: String!, $sensorName2: String!) {
endpointCounts(
input: {first: $first, source: {ts: {stableWaitTime: $stableWaitTime}}, sensors: [{name: $sensorName1}, {name: $sensorName2}]}
) {
edges {
node {
count
columns {
columnName
sensor {
name
}
values
}
}
}
collectionInfo {
startCursor
success
active
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
Add the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"first": 1,
"stableWaitTime": 60,
"sensorName1": "Operating System Generation",
"sensorName2": "RAM"
}
Example response for an ongoing collection with a startCursor value:
{
"data": {
"endpoints": {
"edges": [],
"collectionInfo": {
"startCursor": "NkJNRUJBVFlqODZiQ1pMbStPVU01dHo0NVF5ZTNmamxEQUE9OjA=",
"success": false,
"active": true
},
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": false,
"startCursor": "NkJNRUJBVFlqODZiQ1pMbStPVU01dHo0NVF5ZTNmamxEQUE9OjA=",
"endCursor": "NkJNRUJBVFlqODZiQ1pMbStPVU01dHo0NVF5ZTNmamxEQUE9OjA="
}
}
}
}
Refresh endpoint count collection using starting cursor
The following query refreshes the endpoint count collection using the returned startCursor value:
query exampleRefreshSlowEndpointCount2($refresh: Cursor, $first: Int!, $stableWaitTime: Int, $sensorName1: String!, $sensorName2: String!) {
endpointCounts(
input: {refresh: $refresh, first: $first, source: {ts: {stableWaitTime: $stableWaitTime}}, sensors: [{name: $sensorName1}, {name: $sensorName2}]}
) {
edges {
node {
count
columns {
columnName
sensor {
name
}
values
}
}
}
collectionInfo {
startCursor
success
active
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
Add the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"refresh": "NkJNRUJBVFlqODZiQ1pMbStPVU01dHo0NVF5ZTNmamxEQUE9OjA=",
"first": 1,
"stableWaitTime": 60,
"sensorName1": "Operating System Generation",
"sensorName2": "RAM"
}
Example response with a completed collection:
{
"data": {
"endpointCounts": {
"edges": [
{
"node": {
"count": 1,
"columns": [
{
"columnName": "Operating System Generation",
"sensor": {
"name": "Operating System Generation"
},
"values": [
"Windows 10"
]
},
{
"columnName": "RAM",
"sensor": {
"name": "RAM"
},
"values": [
"4096 MB"
]
}
]
}
}
],
"collectionInfo": {
"startCursor": "NkJNRUJBVFlqODZiQ1pMbStPVU01dHo0NVF5ZTNmamxEQUE9OjA=",
"success": false,
"active": true
},
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": false,
"startCursor": "NkJNRUJBVFlqODZiQ1pMbStPVU01dHo0NVF5ZTNmamxEQUE9OjA=",
"endCursor": "NkJNRUJBVFlqODZiQ1pMbStPVU01dHo0NVF5ZTNmamxEQUE9OjA="
}
}
}
}
(1.1 - Experimental (Release Candidate)) Sort returned endpoints
(query.endpoints(sort))
You can sort endpoints in the response based on either a single field or a single sensor column. The following query retrieves the first three endpoints from Tanium Cloud and sorts them in ascending order based on the computerID value.
query exampleSortEndpointsByField($count: Int, $time: Int, $sort: EndpointFieldSort!, $first: Int) {
endpoints(source: {ts: {expectedCount: $count, stableWaitTime: $time}}, sort:[$sort], first: $first) {
edges {
node {
computerID
name
serialNumber
ipAddress
}
}
}
}
Include the count, time, sort, and pagination variables in the Variables panel or in your variables dictionary:
{
"count": 1,
"time": 10,
"sort": {"path": "computerID", "order": "asc"},
"first": 3
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "1234567890",
"name": "ubuntu-test",
"serialNumber": "Not Specified",
"ipAddress": "10.168.20.30"
}
},
{
"node": {
"computerID": "2345678901",
"name": "CentOS-test-1",
"serialNumber": "Not Specified",
"ipAddress": "10.168.20.40"
}
},
{
"node": {
"computerID": "3456789012",
"name": "CentOS-test-2",
"serialNumber": "Not Specified",
"ipAddress": "10.168.20.50"
}
}
]
}
}
}
The following query retrieves the first three endpoints from Tanium Cloud and sorts them in descending order based on the CPU Consumption single column sensor.
query exampleSortEndpointsSingleColumnSensor($count: Int, $time: Int, $sort: EndpointFieldSort!, $first: Int) {
endpoints(source: {ts: {expectedCount: $count, stableWaitTime: $time}}, sort: [$sort], first: $first) {
edges {
node {
computerID
name
serialNumber
ipAddress
processor {
cpu
consumption
highConsumption
}
}
}
}
}
Include the count, time, sort, and pagination variables in the Variables panel or in your variables dictionary:
{
"count": 1,
"time": 10,
"sort": {
"sensor": {
"name": "CPU Consumption"
},
"order": "desc"
},
"first": 3
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "1234567890",
"name": "example-host-1",
"serialNumber": "12345678-90ab-cdef-1234-567890abcdef",
"ipAddress": "192.0.2.10",
"processor": {
"cpu": "AWS Graviton2",
"consumption": "95 %",
"highConsumption": "N/A on Linux"
}
}
},
{
"node": {
"computerID": "2345678901",
"name": "example-host-3",
"serialNumber": "fedcba09-8765-4321-fedc-ba0987654321",
"ipAddress": "192.0.2.30",
"processor": {
"cpu": "Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz",
"consumption": "85 %",
"highConsumption": "N/A on Mac"
}
}
},
{
"node": {
"computerID": "3456789012",
"name": "example-host-2",
"serialNumber": "1234567890",
"ipAddress": "192.0.2.20",
"processor": {
"cpu": "Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz",
"consumption": "66 %",
"highConsumption": "75 %"
}
}
}
]
}
}
}
The following query retrieves the first three endpoints from Tanium Cloud and sorts them in ascending order based on the multi-column Disk Free Space Status sensor, Available Space (%) column, with a low parameter value of 15.
query exampleSortEndpointsMultiColumnSensor($count: Int, $time: Int, $sort: EndpointFieldSort!, $first: Int) {
endpoints(source: {ts: {expectedCount: $count, stableWaitTime: $time}}, sort: [$sort], first: $first) {
edges {
node {
computerID
name
serialNumber
ipAddress
disks {
name
free
total
usedSpace
usedPercentage
}
}
}
}
}
Include the count, time, sort, and pagination variables in the Variables panel or in your variables dictionary:
{
"count": 1,
"time": 10,
"sort": {
"sensor": {
"name": "Disk Free Space Status", "column": "Available Space (%)", "params":{"name":"low", "value":"15"}
},
"order": "asc"
},
"first": 3
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "1234567890",
"name": "example-host-3",
"serialNumber": "12345678-90ab-cdef-1234-567890abcdef",
"ipAddress": "192.0.2.30",
"disks": [
{
"name": "C",
"free": "1 GB",
"total": "30 GB",
"usedSpace": "28 GB",
"usedPercentage": "93%"
}
]
}
},
{
"node": {
"computerID": "2345678901",
"name": "example-host-2",
"serialNumber": "fedcba09-8765-4321-fedc-ba0987654321",
"ipAddress": "192.0.2.20",
"disks": [
{
"name": "/",
"free": "562M",
"total": "7.6G",
"usedSpace": "7.1G",
"usedPercentage": "93%"
},
{
"name": "/boot/efi",
"free": "92M",
"total": "98M",
"usedSpace": "6.3M",
"usedPercentage": "7%"
}
]
}
},
{
"node": {
"computerID": "3456789012",
"name": "example-host-1",
"serialNumber": "1234567890",
"ipAddress": "192.0.2.10",
"disks": [
{
"name": "C",
"free": "13 GB",
"total": "59 GB",
"usedSpace": "45 GB",
"usedPercentage": "77%"
}
]
}
}
]
}
}
}
(1.1 - Experimental (Active Development)) Get endpoints using single sensor
(query.endpoints.edges.node.sensorReading)
The following query retrieves known endpoints using a single sensor. The request specifies the sensor name as one of the fields returned in the request, to identify the sensor that reported the information.
query exampleGetEndpointsApplications {
endpoints {
edges {
node {
computerID
sensorReading(sensor: {name: "Installed Applications", columns: ["Name"]}) {
columns {
name
values
sensor {
name
}
}
}
}
}
}
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "987654321",
"sensorReading": {
"columns": [
{
"name": "Name",
"values": [
"Tanium Client 7.8.1.3126"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Version",
"values": [
"7.8.1.3126"
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Silent Uninstall String",
"values": [
"\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\uninst.exe\""
],
"sensor": {
"name": "Installed Applications"
}
},
{
"name": "Uninstallable",
"values": [
"Is Uninstallable"
],
"sensor": {
"name": "Installed Applications"
}
}
]
}
}
}
]
}
}
}
(1.2 - Experimental (Release Candidate)) Get endpoints using single sensor and converting result data type
(query.endpoints.edges.node.sensorReading)
The following query retrieves known endpoints using a single sensor, Tanium Reboot Days Ago, then converts the numeric sensor result data type in the response to float data type values. Note that you can return the raw string values (values), numeric sensor result data types as float values (floatValues), or integer sensor result data types as integers (intValues).
query exampleGetEndpointsApplications2 {
endpoints {
edges {
node {
computerID
sensorReading(sensor: {name: "Tanium Reboot Days Ago"}) {
floatValues
}
}
}
}
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "987654321",
"sensorReading": {
"floatValues": [5]
}
}
}
]
}
}
}
(1.2 - Experimental (Release Candidate)) Get question ID
(query.endpoints.collectionInfo.question.id)
When you submit an endpoints GraphQL query request using the Tanium Server (ts) data source, a Tanium question is issued to gather the endpoint data. You can retrieve the corresponding question ID in a GraphQL query response. The following query retrieves endpoint information for the first two endpoints, including computer ID, name, IP address, and serial number, and also retrieves the Tanium question ID used to gather this information.
query exampleGetQuestionID($first: Int, $count: Int, $time: Int) {
endpoints(
first: $first
source: {ts: {expectedCount: $count, stableWaitTime: $time}}
) {
edges {
node {
computerID
name
serialNumber
ipAddress
}
}
collectionInfo {
question {
id
}
}
}
}
Include the count, time, and pagination variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"count": 2,
"time": 10
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"computerID": "0987654321",
"name": "example_endpoint",
"serialNumber": "1234567890",
"ipAddress": "192.0.2.10"
}
},
{
"node": {
"computerID": "2345678901",
"name": "example_endpoint_2",
"serialNumber": "6789012345",
"ipAddress": "192.0.2.20"
}
}
],
"collectionInfo": {
"question": {
"id": "21018950"
}
}
}
}
}
Action examples
The following queries and mutations create actions, retrieve action details, stop actions, approve scheduled actions, and delete actions.
Approve a scheduled action
(mutation.scheduledActionApprove)
The following mutation approves the scheduled action that matches the action ID.
mutation exampleApproveScheduledAction($id: ID!) {
scheduledActionApprove(ref: {id: $id}) {
approved
id
error {
message
}
}
}
Include the scheduled action ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"scheduledActionApprove": {
"approved": true,
"id": "12345",
"error": null
}
}
}
Create action
(mutation.actionCreate)
- Use mutation.actionCreate to deploy a one-time action for either a custom package or for a Tanium package that is not supported by mutation.actionPerform. For examples, see Create action.
- Use mutation.scheduledActionCreate to deploy a recurring action for either a custom package or a Tanium package that is not supported by mutation.actionPerform. For examples, see Create scheduled action.
- For all other uses cases, use mutation.actionPerform, which can deploy any type of package. This includes if you want to deploy a predefined package, especially if you deploy the package to both Windows and non-Windows endpoints. For examples, see Perform an action operation.
The following mutation creates an action, referencing a package that does not require parameters and target computer group, and setting distribute over time and expiration details.
mutation exampleCreateTaniumAction($comment: String, $distributeSeconds: Int, $expireSeconds: Int, $name: String, $packageID: ID, $startTime: Time, $actionGroupID: ID, $targetGroupID: ID) {
actionCreate(
input: {comment: $comment, name: $name, package: {id: $packageID}, targets: {actionGroup: {id: $actionGroupID}, targetGroup: {id: $targetGroupID}}, schedule: { distributeSeconds: $distributeSeconds, expireSeconds: $expireSeconds, startTime: $startTime}}
) {
action {
id
}
error {
message
}
}
}
Include the action creation variables in the Variables panel or in your variables dictionary:
{
"comment": "Example created action",
"distributeSeconds": 60,
"expireSeconds": 900,
"name": "Example created action",
"packageID": 12345,
"startTime": "2026-02-12T00:00:00+00:00",
"targetGroupID": 67890,
"actionGroupID": 12345
}
Example response:
{
"data": {
"actionCreate": {
"action": {
"id": "123456789"
},
"error": null
}
}
}
If your package requires parameters, pass params as part of the actionCreate (input.package) argument.
mutation exampleCreateTaniumActionWithParameters($comment: String, $distributeSeconds: Int, $expireSeconds: Int, $name: String, $packageID: ID, $param1: String!, $param2: String!, $startTime: Time, $actionGroupID: ID, $targetGroupID: ID) {
actionCreate(
input: {comment: $comment, name: $name, package: {id: $packageID, params: [$param1, $param2]}, targets: {actionGroup: {id: $actionGroupID}, targetGroup: {id: $targetGroupID}}, schedule: { distributeSeconds: $distributeSeconds, expireSeconds: $expireSeconds, startTime: $startTime}}
) {
action {
id
}
error {
message
}
}
}
Include the action creation variables in the Variables panel or in your variables dictionary:
{
"comment": "Example created action",
"distributeSeconds": 60,
"expireSeconds": 1200,
"name": "Example created action",
"packageID": 12345,
"param1": "example_value_1",
"param2": "example_value_2",
"startTime": "2026-02-12T00:00:00+00:00",
"targetGroupID": 67890,
"actionGroupID": 12345
}
The following example shows how to tag metadata through mutation.actionCreate.
mutation exampleActionCreateWithMetadata($input: ActionCreateInput!) {
actionCreate(input: $input) {
action {
id
name
targets {
actionGroup {
id
name
}
targetGroup {
id
name
}
}
package {
id
name
}
metadata {
name
value
}
}
error {
message
}
}
}
Include the action operation variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "One-time tag action",
"package": {
"name": "Custom Tagging - Add Tags (Non-Windows)",
"params": ["tagA tagB"]
},
"targets": { "targetGroup": { "name": "All Linux" } },
"metadata": [
{ "name": "Metadata A", "value": "Value A" },
{ "name": "Metadata B", "value": "Value B" }
]
}
}
Example response:
{
"data": {
"actionCreate": {
"action": {
"id": "278",
"name": "One-time tag action",
"targets": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"targetGroup": {
"id": "1382",
"name": ""
}
},
"package": {
"id": "253",
"name": "Custom Tagging - Add Tags (Non-Windows)"
},
"metadata": [
{
"name": "Metadata A",
"value": "Value A"
},
{
"name": "Metadata B",
"value": "Value B"
}
]
},
"error": null
}
}
}
Create scheduled action
(mutation.scheduledActionCreate)
- Use mutation.actionCreate to deploy a one-time action for either a custom package or for a Tanium package that is not supported by mutation.actionPerform. For examples, see Create action.
- Use mutation.scheduledActionCreate to deploy a recurring action for either a custom package or a Tanium package that is not supported by mutation.actionPerform. For examples, see Create scheduled action.
- For all other uses cases, use mutation.actionPerform, which can deploy any type of package. This includes if you want to deploy a predefined package, especially if you deploy the package to both Windows and non-Windows endpoints. For examples, see Perform an action operation.
The following query creates a scheduled action, referencing a package without parameters and target computer group, and setting start and end time, distribute over time, and expiration details.
mutation exampleCreateScheduledAction($comment: String, $distributeSeconds: Int, $endTime: Time, $expireSeconds: Int, $name: String, $packageID: ID, $reissueSeconds: Int!, $startTime: Time, $actionGroupID: ID, $targetGroupID: ID, $metadata: [MetadataInput!]) {
scheduledActionCreate(
input: {comment: $comment, schedule: {distributeSeconds: $distributeSeconds, endTime: $endTime, expireSeconds: $expireSeconds, reissueSeconds: $reissueSeconds, startTime: $startTime}, name: $name, package: {id: $packageID}, targets: {actionGroup: {id: $actionGroupID}, targetGroup: {id: $targetGroupID}}, metadata: $metadata}
) {
scheduledAction {
approved
approver {
persona {
id
}
user {
id
}
}
comment
creator {
persona {
id
}
user {
id
}
}
distributeSeconds
endTime
expireSeconds
id
issueCount
issueSeconds
lastAction {
id
metadata {
name
value
}
}
lastStartTime
name
nextStartTime
package {
id
}
startTime
status
targets {
actionGroup {
id
}
targetGroup {
id
}
}
metadata {
name
value
}
}
error {
message
}
}
}
Include the action-related variables in the Variables panel or in your variables dictionary:
{
"comment": "Example scheduled action",
"distributeSeconds": 60,
"endTime": "2026-02-16T00:00:00+00:00",
"expireSeconds": 900,
"name": "Example scheduled action",
"packageID": 12345,
"reissueSeconds": 901,
"startTime": "2026-02-12T00:00:00+00:00",
"targetGroupID": 67890,
"actionGroupID": 123456
}
Example response:
{
"data": {
"scheduledActionCreate": {
"scheduledAction": {
"approved": true,
"approver": {
"persona": null,
"user": {
"id": "567"
}
},
"comment": "Example scheduled action",
"creator": {
"persona": null,
"user": {
"id": "971"
}
},
"distributeSeconds": 60,
"endTime": "2026-02-16T00:00:00Z",
"expireSeconds": 900,
"id": "863509",
"issueCount": 0,
"issueSeconds": 901,
"lastAction": {
"id": "16076213",
"metadata": []
},
"lastStartTime": null,
"name": "Example scheduled action",
"nextStartTime": "2026-02-12T20:42:08Z",
"package": {
"id": "1397203"
},
"startTime": "2026-02-12T20:42:08Z",
"status": "ENABLED",
"targets": {
"actionGroup": {
"id": "123456"
},
"targetGroup": {
"id": "67890"
}
},
"metadata": []
},
"error": null
}
}
}
If your package requires parameters, pass params as part of the scheduledActionCreate (input.package) argument.
mutation exampleCreateScheduledActionWithParameters($comment: String, $distributeSeconds: Int, $endTime: Time, $expireSeconds: Int, $name: String, $packageID: ID, $param1: String!, $param2: String!, $reissueSeconds: Int!, $startTime: Time, $actionGroupID: ID, $targetGroupID: ID) {
scheduledActionCreate(
input: {comment: $comment, schedule: {distributeSeconds: $distributeSeconds, endTime: $endTime, expireSeconds: $expireSeconds, reissueSeconds: $reissueSeconds, startTime: $startTime}, name: $name, package: {id: $packageID, params: [$param1, $param2]}, targets: {actionGroup: {id: $actionGroupID}, targetGroup: {id: $targetGroupID}}}
) {
scheduledAction {
approved
approver {
persona {
id
}
user {
id
}
}
comment
creator {
persona {
id
}
user {
id
}
}
distributeSeconds
endTime
expireSeconds
id
issueCount
issueSeconds
lastAction {
id
}
lastStartTime
name
nextStartTime
package {
id
}
startTime
status
targets {
actionGroup {
id
}
targetGroup {
id
}
}
}
error {
message
}
}
}
Include the action-related variables in the Variables panel or in your variables dictionary:
{
"comment": "Example scheduled action",
"distributeSeconds": 60,
"endTime": "2026-02-14T00:00:00+00:00",
"expireSeconds": 1200,
"name": "Example scheduled action",
"packageID": 12345,
"param1": "example_value_1",
"param2": "example_value_2",
"reissueSeconds": 60,
"startTime": "2026-02-12T00:00:00+00:00",
"targetGroupID": 67890,
"actionGroupID": 123456
}
Delete action or scheduled action
(mutation.scheduledActionDelete)
The following mutation deletes an action or scheduled action based on the ID.
mutation exampleDeleteScheduledAction($id: ID!) {
scheduledActionDelete(ref: { id: $id }) {
id
error {
message
}
}
}
Include the action ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"scheduledActionDelete": {
"id": "12345",
"error": null
}
}
}
Get action information
(query.action)
The following query retrieves information about an action that matches the ID.
query exampleGetAction($id: ID!) {
action(ref: {id: $id}) {
approver {
persona {
id
name
}
user {
id
name
}
}
comment
creationTime
creator {
persona {
id
name
}
user {
id
name
}
}
distributeSeconds
expirationTime
expireSeconds
id
name
package {
id
name
params
sensorSourcedParams {
name
value
}
}
results {
completed
downloading
expired
failed
failedVerification
id
pendingVerification
running
verified
waiting
waitingToRetry
}
scheduledAction {
approved
comment
distributeSeconds
endTime
expireSeconds
id
issueCount
issueSeconds
lastAction {
id
}
lastStartTime
name
nextStartTime
package {
id
}
startTime
status
}
startTime
status
stopped
stoppedFlag
}
}
Include the action ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"action": {
"approver": {
"persona": null,
"user": {
"id": "1",
"name": "Admin"
}
},
"comment": "",
"creationTime": "2022-07-10T09:40:20Z",
"creator": {
"persona": null,
"user": {
"id": "1",
"name": "Admin"
}
},
"distributeSeconds": 1800,
"expirationTime": "2022-07-10T10:10:12Z",
"expireSeconds": 1800,
"id": "12345",
"name": "Example action",
"package": {
"id": "23456",
"name": "Example package",
"params": null,
"sensorSourcedParams": [
{
"name": "Example parameter",
"value": "example_value"
}
]
},
"results": {
"completed": 4,
"downloading": 0,
"expired": 0,
"failed": 0,
"failedVerification": 0,
"id": "",
"pendingVerification": 0,
"running": 0,
"verified": 0,
"waiting": 0,
"waitingToRetry": 0
},
"scheduledAction": {
"approved": true,
"comment": "",
"distributeSeconds": 1800,
"endTime": null,
"expireSeconds": 1800,
"id": "34567",
"issueCount": 146,
"issueSeconds": 3600,
"lastAction": {
"id": "45678"
},
"lastStartTime": "2022-07-14T17:40:12Z",
"name": "Example scheduled action",
"nextStartTime": "2022-07-14T18:40:12Z",
"package": {
"id": "56789"
},
"startTime": "2022-07-08T16:40:12Z",
"status": "ENABLED"
},
"startTime": "2022-07-10T09:40:12Z",
"status": null,
"stopped": false,
"stoppedFlag": false
}
}
}
Get multiple actions
(query.actions)
The following query retrieves the first 2 actions.
query exampleGetMultipleActions($first: Int) {
actions(first: $first) {
edges {
node {
approver {
persona {
id
name
}
user {
id
name
}
}
comment
creationTime
creator {
persona {
id
name
}
user {
id
name
}
}
distributeSeconds
expirationTime
expireSeconds
id
name
package {
id
name
params
sensorSourcedParams {
name
value
}
}
results {
completed
downloading
expired
failed
failedVerification
id
pendingVerification
running
verified
waiting
waitingToRetry
}
scheduledAction {
approved
comment
distributeSeconds
endTime
expireSeconds
id
issueCount
issueSeconds
lastAction {
id
}
lastStartTime
name
nextStartTime
package {
id
}
startTime
status
}
startTime
status
stopped
stoppedFlag
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"actions": {
"edges": [
{
"node": {
"approver": {
"persona": null,
"user": {
"id": "123",
"name": "example user"
}
},
"comment": "",
"creationTime": "2023-12-22T07:10:04Z",
"creator": {
"persona": null,
"user": {
"id": "123",
"name": "example user"
}
},
"distributeSeconds": 60,
"expirationTime": "2023-12-22T08:10:04Z",
"expireSeconds": 3600,
"id": "1234",
"name": "Example action",
"package": {
"id": "321",
"name": "Example package",
"params": null,
"sensorSourcedParams": null
},
"results": {
"completed": 0,
"downloading": 0,
"expired": 0,
"failed": 0,
"failedVerification": 0,
"id": "",
"pendingVerification": 0,
"running": 0,
"verified": 0,
"waiting": 0,
"waitingToRetry": 0
},
"scheduledAction": {
"approved": true,
"comment": "",
"distributeSeconds": 60,
"endTime": null,
"expireSeconds": 3600,
"id": "1",
"issueCount": 10,
"issueSeconds": 3600,
"lastAction": {
"id": "329"
},
"lastStartTime": "2023-12-22T16:10:04Z",
"name": "Additional example action",
"nextStartTime": "2023-12-22T17:10:04Z",
"package": {
"id": "432"
},
"startTime": "2023-12-22T07:10:04Z",
"status": "ENABLED"
},
"startTime": "2023-12-22T07:10:04Z",
"status": "CLOSED",
"stopped": false,
"stoppedFlag": false
}
},
{
"node": {
"approver": {
"persona": null,
"user": {
"id": "123",
"name": "example user"
}
},
"comment": "",
"creationTime": "2023-12-22T07:10:06Z",
"creator": {
"persona": null,
"user": {
"id": "123",
"name": "example user"
}
},
"distributeSeconds": 60,
"expirationTime": "2023-12-22T08:10:07Z",
"expireSeconds": 3600,
"id": "2345",
"name": "Additional example action",
"package": {
"id": "543",
"name": "Additional example package",
"params": null,
"sensorSourcedParams": null
},
"results": {
"completed": 0,
"downloading": 0,
"expired": 0,
"failed": 0,
"failedVerification": 0,
"id": "",
"pendingVerification": 0,
"running": 0,
"verified": 0,
"waiting": 0,
"waitingToRetry": 0
},
"scheduledAction": {
"approved": true,
"comment": "",
"distributeSeconds": 60,
"endTime": null,
"expireSeconds": 3600,
"id": "2",
"issueCount": 10,
"issueSeconds": 3600,
"lastAction": {
"id": "654"
},
"lastStartTime": "2023-12-22T16:10:07Z",
"name": "Additional scheduled action",
"nextStartTime": "2023-12-22T17:10:07Z",
"package": {
"id": "184"
},
"startTime": "2023-12-22T07:10:07Z",
"status": "ENABLED"
},
"startTime": "2023-12-22T07:10:07Z",
"status": "CLOSED",
"stopped": false,
"stoppedFlag": false
}
}
]
}
}
}
Get package spec information
(query.packageSpecs)
The following query retrieves the first 2 package spec objects.
query exampleGetPackageSpecs($first: Int) {
packageSpecs(first: $first) {
edges {
node {
id
name
contentSetName
command
commandTimeoutSeconds
expireSeconds
lastUpdatedBy
params {
key
label
defaultValue
}
sensorSourcedParams {
name
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"packageSpecs": {
"edges": [
{
"node": {
"id": "12345",
"name": "Example package 1",
"contentSetName": "Base",
"command": "cmd.exe /d /c $1",
"commandTimeoutSeconds": 60,
"expireSeconds": 660,
"lastUpdatedBy": "admin",
"params": [
{
"key": "$1",
"label": "Example parameter",
"defaultValue": null
}
],
"sensorSourcedParams": []
}
},
{
"node": {
"id": "23456",
"name": "Example package 2",
"contentSetName": "Base",
"command": "cmd.exe /d /c ||Example sensor||",
"commandTimeoutSeconds": 60,
"expireSeconds": 660,
"lastUpdatedBy": "admin",
"params": [],
"sensorSourcedParams": [
{
"name": "Example sensor"
}
]
}
}
]
}
}
}
Get parameters for a specific package spec
(query.packageSpecs)
The following query retrieves the package spec object matching ID 123, including associated parameter information.
query exampleGetPackageParametersByID($filter: FieldFilter) {
packageSpecs(filter: $filter) {
edges {
node {
id
name
params {
key
label
defaultValue
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"filter": {
"path": "id",
"op": "EQ",
"value": "123"
}
}
Example response:
{
"data": {
"packageSpecs": {
"edges": [
{
"node": {
"id": "123",
"name": "Custom Tagging - Add Tags",
"params": [
{
"key": "$1",
"label": "Add tags",
"defaultValue": null
}
]
}
}
]
}
}
}
Get scheduled action information
(query.scheduledAction)
The following query retrieves information about a scheduled action that matches the ID.
query exampleGetScheduledAction($id: ID!) {
scheduledAction(ref: {id: $id}) {
approver {
persona {
id
name
}
user {
id
name
}
}
comment
creator {
persona {
id
name
}
user {
id
name
}
}
distributeSeconds
expireSeconds
id
lastAction {
comment
id
name
results {
completed
downloading
expired
failed
}
startTime
}
name
package {
id
name
params
sensorSourcedParams {
name
value
}
}
startTime
status
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"scheduledAction": {
"approver": {
"persona": null,
"user": {
"id": "1",
"name": "Admin"
}
},
"comment": "Example scheduled action",
"creator": {
"persona": null,
"user": {
"id": "1",
"name": "Admin"
}
},
"distributeSeconds": 60,
"expireSeconds": 1200,
"id": "12345",
"lastAction": {
"comment": "",
"id": "56789",
"name": "Example scheduled action",
"results": {
"completed": 18,
"downloading": 0,
"expired": 0,
"failed": 0
},
"startTime": "2022-07-29T04:34:35Z"
},
"name": "Example scheduled action",
"package": {
"id": "23456",
"name": "Example package",
"params": null,
"sensorSourcedParams": [
{
"name": "Example parameter",
"value": "example_value"
}
]
},
"startTime": "2022-07-17T14:05:35Z",
"status": "ENABLED"
}
}
}
Get scheduled actions (query.scheduledActions)
Get multiple scheduled actions
The following query retrieves the first 2 scheduled actions.
query exampleGetScheduledActions($first: Int) {
scheduledActions(first: $first) {
edges {
node {
approved
approver {
user {
name
}
}
comment
creator {
user {
name
}
}
distributeSeconds
endTime
expireSeconds
id
issueCount
issueSeconds
lastAction {
id
}
lastStartTime
name
nextStartTime
package {
id
name
params
sensorSourcedParams {
name
value
}
}
startTime
status
targets {
actionGroup {
id
name
}
targetGroup {
id
name
}
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"scheduledActions": {
"edges": [
{
"node": {
"approved": true,
"approver": {
"user": {
"name": "Admin"
}
},
"comment": "Example scheduled action",
"creator": {
"user": {
"name": "Admin"
}
},
"distributeSeconds": 1800,
"endTime": null,
"expireSeconds": 1800,
"id": "12345",
"issueCount": 358,
"issueSeconds": 3600,
"lastAction": {
"id": "23456"
},
"lastStartTime": "2022-08-10T14:26:25Z",
"name": "Example scheduled action",
"nextStartTime": "2022-08-10T15:26:25Z",
"package": {
"id": "34567",
"name": "Example package",
"params": [
"1"
],
"sensorSourcedParams": null
},
"startTime": "2022-07-26T17:26:25Z",
"status": "ENABLED",
"targets": {
"actionGroup": {
"id": "45678",
"name": "Example action group"
},
"targetGroup": {
"id": "56789",
"name": "Example target group"
}
}
}
},
{
"node": {
"approved": true,
"approver": {
"user": {
"name": "Admin"
}
},
"comment": "Example scheduled action 2",
"creator": {
"user": {
"name": "Admin"
}
},
"distributeSeconds": 1800,
"endTime": null,
"expireSeconds": 2100,
"id": "98765",
"issueCount": 191,
"issueSeconds": 5400,
"lastAction": {
"id": "87654"
},
"lastStartTime": "2022-08-10T14:27:15Z",
"name": "Example scheduled action 2",
"nextStartTime": "2022-08-10T15:57:15Z",
"package": {
"id": "76543",
"name": "Example package 2",
"params": null,
"sensorSourcedParams": null
},
"startTime": "2022-07-29T18:57:15Z",
"status": "ENABLED",
"targets": {
"actionGroup": {
"id": "65432",
"name": "Example action group 2"
},
"targetGroup": {
"id": "54321",
"name": "Example target group 2"
}
}
}
}
]
}
}
}
Get scheduled actions (filter by name)
The following query retrieves the scheduled action with a name matching Example scheduled action.
query exampleGetScheduledActionsFilteredByName($path: String, $op: FieldFilterOp!, $value: String) {
scheduledActions(filter: {path: $path, op: $op, value: $value}) {
edges {
node {
approved
approver {
user {
name
}
}
comment
creator {
user {
name
}
}
distributeSeconds
endTime
expireSeconds
id
issueCount
issueSeconds
lastAction {
id
}
lastStartTime
name
nextStartTime
package {
id
name
params
sensorSourcedParams {
name
value
}
}
startTime
status
targets {
actionGroup {
id
name
}
targetGroup {
id
name
}
}
}
}
}
}
Include the filter variables in the Variables panel or in your variables dictionary:
{
"path": "name",
"op": EQ,
"value": "Example scheduled action"
}
Example response:
{
"data": {
"scheduledActions": {
"edges": [
{
"node": {
"approved": true,
"approver": {
"user": {
"name": "Admin"
}
},
"comment": "Example scheduled action",
"creator": {
"user": {
"name": "Admin"
}
},
"distributeSeconds": 1800,
"endTime": null,
"expireSeconds": 1800,
"id": "12345",
"issueCount": 358,
"issueSeconds": 3600,
"lastAction": {
"id": "23456"
},
"lastStartTime": "2022-08-10T14:26:25Z",
"name": "Example scheduled action",
"nextStartTime": "2022-08-10T15:26:25Z",
"package": {
"id": "34567",
"name": "Example package",
"params": [
"1"
],
"sensorSourcedParams": null
},
"startTime": "2022-07-26T17:26:25Z",
"status": "ENABLED",
"targets": {
"actionGroup": {
"id": "45678",
"name": "Example action group"
},
"targetGroup": {
"id": "56789",
"name": "Example target group"
}
}
}
}
]
}
}
}
Perform an action operation
(mutation.actionPerform)
- Use mutation.actionCreate to deploy a one-time action for either a custom package or for a Tanium package that is not supported by mutation.actionPerform. For examples, see Create action.
- Use mutation.scheduledActionCreate to deploy a recurring action for either a custom package or a Tanium package that is not supported by mutation.actionPerform. For examples, see Create scheduled action.
- For all other uses cases, use mutation.actionPerform, which can deploy any type of package. This includes if you want to deploy a predefined package, especially if you deploy the package to both Windows and non-Windows endpoints. For examples, see Perform an action operation.
The actionPerform field allows one of the following enumerated action operations:
-
addTags - add tags to targeted endpoints
-
changeClientSetting - update one of the following settings on targeted endpoints:
-
HotCachePercentage - the hot cache to cold cache setting percentage
-
LogVerbosityLevel - the logging level
-
RandomSensorDelayInSeconds - the sensor execution randomization value
-
StateProtectedFlag - whether queries are encrypted and protected in certain states
-
-
collectActiveDirectoryInfo - collect AD information needed for sensors
-
reboot - reboot targeted endpoints
-
removeTags - remove tags from targeted endpoints
-
restartService - restart a service on targeted endpoints
-
startService - start a service on targeted endpoints
-
stopService - stop a service on targeted endpoints
You can configure only one action operation per mutation request, but can target any number of endpoints per request using the input.targets argument.
-
If you do not define an actionGroup argument, the action defaults to targeting the Default action group.
-
If you do not define a targetGroup argument, the action defaults to targeting the All Computers computer group.
-
If you do not define a platforms argument, the action defaults to targeting endpoints, regardless of operating system.
-
If you do not define an endpoints argument, the action defaults to targeting all endpoints that match all of the input.targets arguments.
The following example adds tags to endpoints belonging to the exampleActionGroup action group and exampleComputers computer group, running Solaris operating systems.
mutation examplePerformActionOperation($comment: String, $name: String, $addTags: String!, $endTime: Time, $expireSeconds: Int, $distributeSeconds: Int, $reissueSeconds: Int, $actionGroupName: String, $targetGroupName: String, $platform: EndpointPlatform!) {
actionPerform(
input: {comment: $comment, name: $name, operation: {addTags: [$addTags]}, schedule: {endTime: $endTime, expireSeconds: $expireSeconds, distributeSeconds: $distributeSeconds, reissueSeconds: $reissueSeconds}, targets: {actionGroup: {name: $actionGroupName}, targetGroup: {name: $targetGroupName}, platforms: [$platform]}}
) {
scheduledActions {
platforms
scheduledAction {
id
}
}
error {
message
retryable
timedOut
}
}
}
Include the action operation variables in the Variables panel or in your variables dictionary:
{
"comment": "Example action perform",
"name": "Example action perform",
"addTags": "example-tag",
"endTime": "2022-08-01T14:59:35+00:00",
"expireSeconds": 660,
"distributeSeconds": 10,
"reissueSeconds": 700,
"actionGroupName": "exampleActionGroup",
"targetGroupName": "exampleComputers",
"platform": "Solaris"
}
This example response includes a scheduled action ID (data.actionPerform.scheduledActions.scheduledAction.id). Use the query.scheduledAction request and pass the scheduled action ID in the ref argument to retrieve information about the scheduled action. For more information, see the example syntax of Get scheduled action information.
{
"data": {
"actionPerform": {
"scheduledActions": [
{
"platforms": [
"Solaris"
],
"scheduledAction": {
"id": "12345"
}
}
],
"error": null
}
}
}
The following example shows how to tag metadata through mutation.actionPerform.
mutation exampleActionPerformWithMetadata($input: ActionPerformInput!) {
actionPerform(input: $input) {
scheduledActions {
platforms
scheduledAction {
id
name
targets {
actionGroup {
id
name
}
targetGroup {
id
name
}
}
package {
id
name
}
metadata {
name
value
}
lastAction {
id
metadata {
name
value
}
}
}
}
error {
message
}
}
}
Include the action operation variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "Recurring tag action",
"package": {
"name": "Custom Tagging - Add Tags (Non-Windows)",
"params": ["tagA tagB"]
},
"targets": { "targetGroup": { "name": "All Linux" } },
"schedule": { "reissueSeconds": 7200 },
"metadata": [
{ "name": "Metadata A", "value": "Value A" },
{ "name": "Metadata B", "value": "Value B" }
]
}
}
Example response:
{
"data": {
"actionPerform": {
"scheduledActions": [
{
"platforms": null,
"scheduledAction": {
"id": "39",
"name": "Recurring tag action",
"targets": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"targetGroup": {
"id": "1381",
"name": ""
}
},
"package": {
"id": "252",
"name": "Custom Tagging - Add Tags (Non-Windows)"
},
"metadata": [
{
"name": "Metadata A",
"value": "Value A"
},
{
"name": "Metadata B",
"value": "Value B"
}
],
"lastAction": {
"id": "277",
"metadata": [
{
"name": "Metadata A",
"value": "Value A"
},
{
"name": "Metadata B",
"value": "Value B"
}
]
}
}
}
],
"error": null
}
}
}
Target endpoints when deploying actions
(query.endpoints.edges.node.name (path.filters))
When you deploy an action through Tanium Gateway, you can determine the endpoints to target with input.targets.targetGroup. You can either use a saved computer group or a sensor-based filter. Before you run an action, confirm which endpoints are to be affected. For more information about targeting guidance, see the following:
-
Tanium Developer Site: Targeting Best Practices (requires sign-in)
Preview action
The following query retrieves the first two endpoints whose name contains example.
query examplePreviewEndpointsByName($first: Int, $nameContains: String) {
endpoints(
first: $first
filter: {path: "name", op: CONTAINS, value: $nameContains}
) {
totalRecords
edges {
node {
name
}
}
}
}
Include the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"nameContains": "example"
}
Example response:
{
"data": {
"endpoints": {
"totalRecords": 236,
"edges": [
{
"node": {
"name": "example.endpoint.loc"
}
},
{
"node": {
"name": "cloud.example.com"
}
}
]
}
}
}
Target computer group to create scheduled action (scheduledActionCreate)
The following mutation targets the All Windows computer group for a scheduled action.
mutation exampleTargetComputerGroupForScheduledActionCreate($name: String!, $comment: String!, $packageName: String!, $packageParams: String!, $targetGroup: String!, $distributeSeconds: Int!, $reissueSeconds: Int!) {
scheduledActionCreate(
input: {name: $name, comment: $comment, package: {name: $packageName, params: [$packageParams]}, targets: {targetGroup: {name: $targetGroup}}, schedule: {distributeSeconds: $distributeSeconds, reissueSeconds: $reissueSeconds}}
) {
scheduledAction {
id
targets {
targetGroup {
id
name
}
}
}
error {
message
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"name": "My example action",
"comment": "My example comment",
"packageName": "Custom Tagging - Add Tags",
"packageParams": "tagA tagB",
"targetGroup": "All Windows",
"distributeSeconds": 3600,
"reissueSeconds": 5000
}
Example response:
{
"data": {
"scheduledActionCreate": {
"scheduledAction": {
"id": "123456",
"targets": {
"targetGroup": {
"id": "12345678",
"name": ""
}
}
},
"error": null
}
}
}
Perform action with sensor filter (actionPerform)
The following query uses a sensor filter to create an action that targets endpoints whose name contains example.
mutation exampleActionPerform($name: String, $comment: String, $tagA: String!, $tagB: String!, $filterString: String, $sensorName: String) {
actionPerform(
input: {name: $name, comment: $comment, operation: {addTags: [$tagA, $tagB]}, targets: {targetGroup: {filter: {sensor: {name: $sensorName}, op: CONTAINS, value: $filterString, negated: false, any: false}}}}
) {
scheduledActions {
scheduledAction {
id
targets {
targetGroup {
id
name
}
}
}
}
error {
message
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"name": "My example action",
"comment": "My example comment",
"sensorName": "Computer Name",
"tagA": "tagA",
"tagB": "tagB",
"filterString": "example"
}
Example response:
{
"data": {
"actionPerform": {
"scheduledActions": [
{
"scheduledAction": {
"id": "123456",
"targets": {
"targetGroup": {
"id": "12345678",
"name": ""
}
}
}
},
{
"scheduledAction": {
"id": "123457",
"targets": {
"targetGroup": {
"id": "12345680",
"name": ""
}
}
}
}
],
"error": null
}
}
}
Show a scheduled action
The following query retrieves a scheduled action.
query exampleScheduledAction ($id: ID!) {
scheduledAction(ref: { id: $id }) {
id
name
status
targets {
targetGroup {
id
name
}
}
package {
id
name
}
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"id": 12345
}
Stop an action
(mutation.actionStop)
The following mutation stops an action that matches the ID.
mutation exampleStopAction($id: ID!) {
actionStop(ref: { id: $id }) {
id
error {
message
}
}
}
Include the action ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"actionStop": {
"id": "12345",
"error": null
}
}
}
DEPRECATED: Create action (subset of endpoints)
(mutation.createAction)
The following mutation deploys an action to increase the verbosity of log levels on Debian endpoints.
mutation exampleCreateActionLogging($description: String, $group: String, $platform: EndpointPlatform!, $setting: SettingName!, $settingValue: Any!) {
createAction(
action: {description: $description, target: {targetGroup: $group, platforms: [$platform]}, changeClientSetting: {name: $setting, value: $settingValue}}
) {
id
}
}
Include the action-related variables in the Variables panel or in your variables dictionary:
{
"description": "Increasing log verbosity level on all debian endpoints for troubleshooting",
"group": "All Debian",
"platform": "Linux",
"setting": "LOG_VERBOSITY_LEVEL",
"settingValue": "41"
}
Example response:
{
"data": {
"createAction": {
"id": "82"
}
}
}
DEPRECATED: Get action details
(query.lastActionDetails, query.lastActionResults)
The following parameterized query retrieves details and any results for an action.
query exampleGetActionDetails($id: ID!) {
lastActionDetails(id: $id) {
id
name
comment
expireSeconds
creationTime
startTime
expirationTime
distributeSeconds
status
stoppedFlag
}
lastActionResults(id: $id) {
id
waiting
downloading
running
waitingToRetry
completed
expired
failed
pendingVerification
verified
failedVerification
}
}
Include the endpoint ID in the Variables panel or in your variables dictionary:
{
"id": "12323"
}
Example response:
{
"data": {
"lastActionDetails": {
"id": "219",
"name": "Distribute Tanium Standard Utilities",
"comment": "Distribute Tanium Standard Utilities",
"expireSeconds": 3900,
"creationTime": "2022-03-14T18:05:41Z",
"startTime": "2022-03-14T18:05:35Z",
"expirationTime": "2022-03-14T19:10:35Z",
"distributeSeconds": 3600,
"status": "OPEN",
"stoppedFlag": false
},
"lastActionResults": {
"id": "219",
"waiting": 0,
"downloading": 0,
"running": 0,
"waitingToRetry": 0,
"completed": 1,
"expired": 0,
"failed": 0,
"pendingVerification": 0,
"verified": 0,
"failedVerification": 0
}
}
}
Action group examples
The following queries and mutations create, retrieve, and delete action groups.
Create action group
(mutation.actionGroupCreate)
The following mutation creates an action group that targets the defined computer group. All user groups can view this action group, and endpoints must be a member of the defined computer group to be targeted by the action group.
mutation exampleCreateActionGroup($any: Boolean!, $computerGroupName: String, $actionGroupName: String!, $visibility: ActionGroupVisibility!) {
actionGroupCreate(
input: {any: $any, computerGroups: [{name: $computerGroupName}], name: $actionGroupName, visibility: $visibility}
) {
group {
id
}
error {
message
}
}
}
Include the targeting, targeted computer group, action group name, and visibility variables in the Variables panel or in your variables dictionary:
{
"any": false,
"computerGroupName": "Example computer group",
"actionGroupName": "Example action group",
"visibility": "ALL"
}
Example response:
{
"data": {
"actionCreate": {
"action": {
"id": "12345"
},
"error": null
}
}
}
Delete action group by ID or name
(mutation.actionGroupDelete)
Delete action group by ID
The following mutation deletes the action group that matches the ID.
mutation exampleDeleteActionGroup($id: ID) {
actionGroupDelete(ref: {id: $id}) {
error {
message
}
id
}
}
Include the action group ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"actionGroupDelete": {
"error": null,
"id": "12345"
}
}
}
Delete action group by name
You can also delete an action group that matches a name.
mutation exampleDeleteActionGroupByName($name: String) {
actionGroupDelete(ref: {name: $name}) {
error {
message
}
id
}
}
Include the action group name variable in the Variables panel or in your variables dictionary:
{
"name": "Example action group"
}
Get action group by ID or name
(query.actionGroup)
Get action group by ID
The following query retrieves an action group that matches the ID.
query exampleGetActionGroupByID($id: ID!) {
actionGroup(ref: {id: $id}) {
any
computerGroups {
id
name
contentSet {
id
name
}
expression
filterEnabled
managementRightsEnabled
}
id
name
userGroups {
id
name
}
visibility
}
}
Include the action group ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"actionGroup": {
"any": false,
"computerGroups": [
{
"id": "23456",
"name": "Example computer group",
"contentSet": {
"id": "1",
"name": "Reserved"
},
"expression": " any Computer Name not matches .*",
"filterEnabled": true,
"managementRightsEnabled": true
}
],
"id": "12345",
"name": "Example action group",
"userGroups": null,
"visibility": "ALL"
}
}
}
Get action group by name
You can also retrieve an action group that matches a name.
query exampleGetActionGroupByName($name: String!) {
actionGroup(ref: {name: $name}) {
any
computerGroups {
id
name
contentSet {
id
name
}
expression
filterEnabled
managementRightsEnabled
}
id
name
userGroups {
id
name
}
visibility
}
}
Include the action group name variable in the Variables panel or in your variables dictionary:
{
"name": "Example action group"
}
Get multiple action groups
(query.actionGroups)
The following query retrieves the first 2 action groups. For more information about pagination, see Pagination.
query exampleGetActionGroups($first: Int) {
actionGroups(first: $first) {
edges {
node {
id
name
visibility
userGroups {
id
name
}
computerGroups {
id
name
type
contentSet {
id
}
expression
filterEnabled
managementRightsEnabled
}
any
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"actionGroups": {
"edges": [
{
"node": {
"id": "1",
"name": "Example action group",
"visibility": "ALL",
"userGroups": null,
"computerGroups": [
{
"id": "1",
"name": "Example computer group",
"type": "STANDARD",
"contentSet": {
"id": "1"
},
"expression": "All Computers",
"filterEnabled": true,
"managementRightsEnabled": true
}
],
"any": true
}
},
{
"node": {
"id": "2",
"name": "Example action group 2",
"visibility": "ALL",
"userGroups": null,
"computerGroups": [
{
"id": "2",
"name": "No Computers",
"type": "STANDARD",
"contentSet": {
"id": "1"
},
"expression": "No Computers",
"filterEnabled": true,
"managementRightsEnabled": true
}
],
"any": true
}
}
]
}
}
}
API token examples
The following mutations create, rotate, and delete API tokens.
Create API token
(mutation.apiTokenGrant)
The following mutation creates an API token associated with the IP addresses and persona, valid for 365 days. This requires the Token - Use permission.
Do not use a single token for multiple processes. For example, do not use a single token for a ServiceNow integration and a Splunk integration, or for multiple ServiceNow instances, or for multiple connections from one ServiceNow instance to Tanium Cloud. When a token rotates for any process, that token stops working for any other processes that use it.
For additional best practices to use API tokens, see Tanium Console User Guide: Managing API tokens.
mutation exampleCreateAPIToken($trustedIPAddress1: String!, $trustedIPAddress2: String!, $personaName: String!, $expiresInDays: Int!, $notes: String!) {
apiTokenGrant(
input: {trustedIPAddresses: [$trustedIPAddress1, $trustedIPAddress2], personaName: $personaName, expiresInDays: $expiresInDays, notes: $notes}
) {
token {
created
expiration
id
lastUsed
notes
persona {
name
}
tokenString
trustedIPAddresses
}
error {
message
retryable
timedOut
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"trustedIPAddress1": "192.0.2.0/24",
"trustedIPAddress2": "198.51.100.10",
"expiresInDays": 365,
"personaName": "testPersona",
"notes": "Gateway token"
}
Example response:
{
"data": {
"apiTokenGrant": {
"token": {
"created": "2022-05-10T15:22:13Z",
"expiration": "2023-05-10T15:22:13Z",
"id": "4029",
"lastUsed": "2022-05-10T15:22:13Z",
"notes": "Gateway token",
"persona": {
"name": "testPersona"
},
"tokenString": "token-9ab934979aea20a3d56a822441a4329f470326f5e7ef2af66783147533",
"trustedIPAddresses": [
"192.0.2.0/24",
"198.51.100.10"
]
},
"error": null
}
}
}
Get API tokens for current user
(query.myAPITokens)
The following query retrieves API tokens associated with the active session user. This requires the Token - Use permission.
query exampleGetMyAPITokens {
myAPITokens {
tokens {
created
expiration
id
lastUsed
notes
persona {
name
}
trustedIPAddresses
}
error {
message
retryable
timedOut
}
}
}
Example response:
{
"data": {
"myAPITokens": {
"tokens": [
{
"created": "2022-05-10T17:10:23Z",
"expiration": "2023-05-10T17:10:23Z",
"id": "4036",
"lastUsed": "2022-05-10T17:10:23Z",
"notes": "Gateway token",
"persona": null,
"trustedIPAddresses": [
"192.0.2.0/24",
"198.51.100.10"
]
}
],
"error": null
}
}
}
Rotate API token
(mutation.apiTokenRotate)
The following mutation rotates an existing API token, deleting it and creating a new one with the same properties. This requires the Token - Use permission.
mutation exampleRotateAPIToken($tokenString: String!) {
apiTokenRotate(input: {tokenString: $tokenString}) {
token {
created
expiration
id
lastUsed
notes
persona {
name
}
tokenString
trustedIPAddresses
}
error {
message
retryable
timedOut
}
}
}
Include the token string variable in the Variables panel or in your variables dictionary:
{
"tokenString": "token-9668a9a11e082ea9b062f204f4e9b98e8785d006388e99e00fb6efbaaa"
}
Example response:
{
"data": {
"apiTokenRotate": {
"token": {
"created": "2022-05-10T17:14:05Z",
"expiration": "2023-05-10T17:14:05Z",
"id": "4038",
"lastUsed": "2022-05-10T17:14:05Z",
"notes": "Gateway token",
"persona": "testPersona",
"tokenString": "token-9a4b38683e26bd6fa19c085b11850e3f5aec96cd89e4a0e6a0b8fdb2c6",
"trustedIPAddresses": [
"192.0.2.0/24",
"198.51.100.10"
]
},
"error": null
}
}
}
Delete API token
(mutation.apiTokenRevoke)
The following mutation deletes an existing API token. This requires the Token - Revoke permission.
mutation exampleDeleteAPIToken($id: ID!) {
apiTokenRevoke(input: {id: $id}) {
error {
message
retryable
timedOut
}
}
}
Include the token ID variable in the Variables panel or in your variables dictionary:
{
"id": "10"
}
Example response:
{
"data": {
"apiTokenRevoke": {
"error": null
}
}
}
Asset examples
The following requests require Asset and retrieve Asset products or endpoints based on Asset products, update Asset product tracking, or import assets to update existing assets or create new assets.
Get Asset products
query.assetProducts
The following query requires Asset and retrieves Asset products:
query exampleGetAssetProducts($first: Int) {
assetProducts(
first: $first
) {
edges {
node {
vendor
name
installation {
installedCount
usedCount
unusedCount
pendingUsage
}
usage {
usageNotDetected
notInstalled
baselining
limited
normal
high
}
tracking {
state
reportingPeriodDays
normalMinutesUsedPerDay
highMinutesUsedPerDay
baselinePeriodDays
}
versions {
version
installs
}
}
}
}
}
Include the cursor variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"assetProducts": {
"edges": [
{
"node": {
"vendor": "Example vendor",
"name": "Example product",
"installation": {
"installedCount": 8,
"usedCount": 0,
"unusedCount": 0,
"pendingUsage": null
},
"usage": {
"usageNotDetected": 0,
"notInstalled": 0,
"baselining": 0,
"limited": 0,
"normal": 0,
"high": 0
},
"tracking": {
"state": "Cataloged",
"reportingPeriodDays": 90,
"normalMinutesUsedPerDay": 60,
"highMinutesUsedPerDay": 240,
"baselinePeriodDays": 7
},
"versions": [
{
"version": "1.2.3",
"installs": 2
},
{
"version": "1.2.4",
"installs": 2
}
]
}
},
{
"node": {
"vendor": "Example vendor 2",
"name": "Example product 2",
"installation": {
"installedCount": 1,
"usedCount": 0,
"unusedCount": 0,
"pendingUsage": null
},
"usage": {
"usageNotDetected": 0,
"notInstalled": 0,
"baselining": 0,
"limited": 0,
"normal": 0,
"high": 0
},
"tracking": {
"state": "Cataloged",
"reportingPeriodDays": 90,
"normalMinutesUsedPerDay": 60,
"highMinutesUsedPerDay": 240,
"baselinePeriodDays": 7
},
"versions": [
{
"version": "0.1.2",
"installs": 1
}
]
}
}
]
}
}
}
The following query request filters and retrieves only Asset products with a vendor name of Example vendor, an Asset state of Cataloged, and the search string Product in either the vendor name or product name:
query exampleGetAssetProductsFiltered($first: Int, $vendor: String!, $search: String, $states: AssetProductState!) {
assetProducts(
first: $first, filter: {
vendors: [$vendor],
search: $search,
states: [$states]
}
) {
edges {
node {
vendor
name
installation {
installedCount
usedCount
unusedCount
pendingUsage
}
usage {
usageNotDetected
notInstalled
baselining
limited
normal
high
}
tracking {
state
reportingPeriodDays
normalMinutesUsedPerDay
highMinutesUsedPerDay
baselinePeriodDays
}
versions {
version
installs
}
}
}
}
}
Include the cursor and filter variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"vendor": "Example vendor",
"search": "Product",
"states": "Cataloged"
}
Example response:
{
"data": {
"assetProducts": {
"edges": [
{
"node": {
"vendor": "Example vendor",
"name": "Example product",
"installation": {
"installedCount": 8,
"usedCount": 0,
"unusedCount": 0,
"pendingUsage": null
},
"usage": {
"usageNotDetected": 0,
"notInstalled": 0,
"baselining": 0,
"limited": 0,
"normal": 0,
"high": 0
},
"tracking": {
"state": "Cataloged",
"reportingPeriodDays": 90,
"normalMinutesUsedPerDay": 60,
"highMinutesUsedPerDay": 240,
"baselinePeriodDays": 7
},
"versions": [
{
"version": "0.1.2",
"installs": 2
},
{
"version": "3.4.5",
"installs": 2
}
]
}
},
{
"node": {
"vendor": "Example vendor",
"name": "Product example",
"installation": {
"installedCount": 1,
"usedCount": 0,
"unusedCount": 0,
"pendingUsage": null
},
"usage": {
"usageNotDetected": 0,
"notInstalled": 0,
"baselining": 0,
"limited": 0,
"normal": 0,
"high": 0
},
"tracking": {
"state": "Cataloged",
"reportingPeriodDays": 90,
"normalMinutesUsedPerDay": 60,
"highMinutesUsedPerDay": 240,
"baselinePeriodDays": 7
},
"versions": [
{
"version": "6.7.8",
"installs": 1
}
]
}
}
]
}
}
}
Get endpoints based on Asset products
query.assetProductEndpoints
The following query requires Asset and retrieves the first 2 endpoints with the Example name product installed, associated with the Example vendor vendor and version 1.2.3:
query exampleGetEndpointsAssetProduct($first: Int, $vendor: String, $name: String, $version: String) {
assetProductEndpoints(
first: $first
filter: {vendor: $vendor, name: $name, version: $version}
) {
edges {
node {
id
eid
computerName
computerId
serialNumber
osPlatform
operatingSystem
servicePack
manufacturer
ipAddress
userName
createdAt
updatedAt
}
}
}
}
Include the cursor and filtering variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"vendor": "Example vendor",
"name": "Example name",
"version": "1.2.3"
}
Example response:
{
"data": {
"assetProductEndpoints": {
"edges": [
{
"node": {
"id": 123,
"eid": 456789,
"computerName": "example-host-1",
"computerId": "123456789",
"serialNumber": "1234567890abcdef",
"osPlatform": "Windows",
"operatingSystem": "Windows 10 Enterprise",
"servicePack": "No Service Pack found",
"manufacturer": "VMware, Inc.",
"ipAddress": "192.0.2.10",
"userName": "example-user",
"createdAt": "2022-09-29T07:00:16.000Z",
"updatedAt": "2022-11-10T23:00:06.000Z"
}
},
{
"node": {
"id": 456,
"eid": 789012,
"computerName": "example-host-2",
"computerId": "987654321",
"serialNumber": "fedcba0987654321",
"osPlatform": "Windows",
"operatingSystem": "Windows 10 Enterprise",
"servicePack": "No Service Pack found",
"manufacturer": "VMware, Inc.",
"ipAddress": "192.0.2.20",
"userName": "example-user",
"createdAt": "2022-09-29T07:00:16.000Z",
"updatedAt": "2022-10-31T14:00:05.000Z"
}
}
]
}
}
}
Update Asset endpoints based on source
mutation.assetUpdateEndpoints
Stability: 1.2 - Experimental (Release Candidate)
The following mutation requires Asset and updates the endpoint record based on the default Tanium source. If reconciliation keys are included, asset reconciliation is used. If no endpoints match the keys, the response returns an error.
mutation exampleAssetUpdateEndpointsTaniumSource($input: AssetUpdateEndpointsInput!) {
assetUpdateEndpoints(
input: $input
) {
assets {
eid
source {
namespace
id
name
}
status
error
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"sourceName": "Tanium",
"entityNames": [
"Computer Name",
"Computer ID",
"Endpoint Fingerprint",
"Asset Custom: custom_entity_1"
],
"assets": [
{
"entities": [
{
"entityName": "Computer Name",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Computer Name",
"value": "computer1"
}
]
}
]
},
{
"entityName": "Computer ID",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Computer ID",
"value": "1234567890"
}
]
}
]
},
{
"entityName": "Endpoint Fingerprint",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Endpoint Fingerprint",
"value": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}
]
}
]
},
{
"entityName": "Asset Custom: custom_entity_1",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Asset Custom: custom_entity_1",
"value": "example_value"
}
]
}
]
}
]
}
]
}
}
Example response:
{
"data": {
"assetUpdateEndpoints": {
"assets": [
{
"eid": "12345",
"source": {
"namespace": "Asset: Tanium",
"id": "1",
"name": "Tanium"
},
"status": "Updated",
"error": null
}
]
}
}
}
The following mutation updates the endpoint record based on a Microsoft Azure source:
mutation exampleAssetUpdateEndpointsMicrosoftAzureSource($input: AssetUpdateEndpointsInput!) {
assetUpdateEndpoints(
input: $input
) {
assets {
eid
source {
namespace
id
name
}
status
error
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"sourceName": "example Microsoft Azure source",
"entityNames": [
"Cloud Instance ID",
"Asset Custom: custom_entity_1"
],
"assets": [
{
"entities": [
{
"entityName": "Cloud Instance ID",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Cloud Instance ID",
"value": "12345678-90ab-cdef-1234-567890abcdef"
}
]
}
]
},
{
"entityName": "Asset Custom: custom_entity_1",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Asset Custom: custom_entity_1",
"value": "Test 1"
}
]
}
]
}
]
}
]
}
}
Example response:
{
"data": {
"assetUpdateEndpoints": {
"assets": [
{
"eid": "149157",
"source": {
"namespace": "Asset: example Microsoft Azure source",
"id": "102",
"name": "example Microsoft Azure source"
},
"status": "Updated",
"error": null
}
]
}
}
}
Update Asset endpoints based on endpoint ID (EID)
mutation.assetUpdateEndpointsUsingEid
Stability: 1.2 - Experimental (Release Candidate)
The following mutation requires Asset and updates the endpoint record for an Asset source that matches the endpoint ID (EID). If reconciliation keys are included, asset reconciliation is used. If no endpoints match the keys, the response returns an error.
mutation exampleAssetUpdateEndpointsEID($input: AssetUpdateEndpointsUsingEidInput!) {
assetUpdateEndpointsUsingEid(input: $input) {
assets {
eid
source {
namespace
id
name
}
status
error
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"sourceName": "example_source",
"entityNames": [
"Asset Custom: custom_entity_1"
],
"assets": [
{
"eid": "12345",
"entities": [
{
"entityName": "Asset Custom: custom_entity_1",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Asset Custom: custom_entity_1",
"value": "example_test"
}
]
}
]
}
]
}
]
}
}
Example response:
{
"data": {
"assetUpdateEndpointsUsingEid": {
"assets": [
{
"eid": "12345",
"source": {
"namespace": "Asset: example_source",
"id": "123",
"name": "example_source"
},
"status": "Updated",
"error": null
}
]
}
}
}
Upsert (create or update by ID) Asset endpoint
mutation.assetUpsertEndpoints
Stability: 1.2 - Experimental (Release Candidate)
The assetUpsertEndpoints mutation either creates a new endpoint record or updates an existing endpoint record using the defined sourceName for Import API sources. Asset creation or update is based on comparing key field values. If reconciliation keys are included, asset reconciliation is used. To determine whether an existing asset updates, or a new asset is created:
-
If an imported asset key matches an existing asset key imported using the sourceName Import API source, that existing asset updates. The status in the response equals
Updated. -
If an imported asset key matches an existing asset reconciliation key imported using the Tanium source only, that existing asset is reconciled, and then updates. The status in the response equals
Reconciled. -
Otherwise, if no existing asset matches the imported asset, the asset is imported as a new asset using the sourceName Import API source. The status in the response is equal to
Created.
The following mutation request creates an asset, if no existing asset in the example_source Import API source matches on the Computer Name key field, and updates a single attributeName value:
mutation exampleAssetUpsertEndpoints($input: AssetUpsertEndpointsInput!) {
assetUpsertEndpoints(input: $input) {
assets {
eid
source {
namespace
id
name
}
status
error
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"input": {
"sourceName": "example_source",
"entityNames": [
"Computer Name",
"Asset Custom: custom_entity_1"
],
"assets": [
{
"entities": [
{
"entityName": "Computer Name",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Computer Name",
"value": "computer1"
}
]
}
]
},
{
"entityName": "Asset Custom: custom_entity_1",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Asset Custom: custom_entity_1",
"value": "Test 1"
}
]
}
]
}
]
}
]
}
}
As the request is evaluated, the asset object defines a value for the computerName key field, matching the key field defined for the example_source source, and is imported using that source. The example response shows a status of Created:
{
"data": {
"assetUpsertEndpoints": {
"assets": [
{
"eid": "12345",
"source": {
"namespace": "Asset: example_source",
"id": "123",
"name": "example_source"
},
"status": "Created",
"error": null
}
]
}
}
}
The following mutation request updates an asset if an asset in the example_source Import API source matches on the Computer Name key field, and updates two attributeName values:
mutation exampleAssetUpsertEndpointsMultiColumn($input: AssetUpsertEndpointsInput!) {
assetUpsertEndpoints(input: $input) {
assets {
eid
source {
namespace
id
name
}
status
error
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"input": {
"sourceName": "example_source",
"entityNames": [
"Computer Name",
"Asset Custom: custom_entity_2"
],
"assets": [
{
"entities": [
{
"entityName": "Computer Name",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Computer Name",
"value": "computer1"
}
]
}
]
},
{
"entityName": "Asset Custom: custom_entity_2",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "column_1",
"value": "column_1_test"
},
{
"attributeName": "column_2",
"value": "column_2_test"
}
]
}
]
}
]
}
]
}
}
As the request is evaluated, the asset object defines a value for the computerName key field, matching the key field defined for the example_source Import API source, and is imported using that source. The example response shows a status of Updated:
{
"data": {
"assetUpsertEndpoints": {
"assets": [
{
"eid": "12345",
"source": {
"namespace": "Asset: example_source",
"id": "123",
"name": "example_source"
},
"status": "Updated",
"error": null
}
]
}
}
}
The following mutation request updates an asset if an asset in the example_source Import API source matches on the Computer Name key field, and updates two rows with two attributeName values:
mutation exampleAssetUpsertEndpointsMultiRow($input: AssetUpsertEndpointsInput!) {
assetUpsertEndpoints(input: $input) {
assets {
eid
source {
namespace
id
name
}
status
error
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"input": {
"sourceName": "ktai_example_custom_source",
"entityNames": [
"Computer Name",
"Asset Custom: ktai_custom_entity_3"
],
"assets": [
{
"entities": [
{
"entityName": "Computer Name",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "Computer Name",
"value": "computer1"
}
]
}
]
},
{
"entityName": "Asset Custom: ktai_custom_entity_3",
"entityRowItems": [
{
"attributes": [
{
"attributeName": "multi_row_1",
"value": "row_1_column_1_test"
},
{
"attributeName": "multi_row_2",
"value": "row_1_column_2_test"
}
]
},
{
"attributes": [
{
"attributeName": "multi_row_1",
"value": "row_2_column_1_test"
},
{
"attributeName": "multi_row_2",
"value": "row_2_column_2_test"
}
]
}
]
}
]
}
]
}
}
As the request is evaluated, the asset object defines a value for the computerName key field, matching the key field defined for the example_source Import API source, and is imported using that source. The example response shows a status of Updated:
{
"data": {
"assetUpsertEndpoints": {
"assets": [
{
"eid": "12345",
"source": {
"namespace": "Asset: example_source",
"id": "123",
"name": "example_source"
},
"status": "Updated",
"error": null
}
]
}
}
}
To verify the import, create a report based on the custom source definition, and filter the report to search for imported assets. For example, creating a report with Computer Name and Serial Number as columns, then filtering Computer Name for values containing computer and 23 returns the imported assets.
For more information, see Tanium Asset User Guide: Create a report.
Import assets
mutation.assetsImport
Stability: 0 - Deprecated
The assetsImport mutation imports assets defined in the request json variable value, using the defined sourceName custom source. To determine whether an existing asset updates, or a new asset is created:
-
If an imported asset key matches an existing asset key imported using the sourceName custom source, that existing asset updates.
-
If no existing asset from the configured source matches, but values in the imported asset match an existing asset key imported using a source different from the sourceName custom source, and the other source allows the sourceName custom source to update, the existing asset from the other source updates.
-
Otherwise, if no existing asset matches the imported asset, the asset is imported as a new asset using the sourceName custom source.
Define the json attribute as a JSON object array, with each object corresponding to an asset. Ensure that the Asset custom source passes the JSON object array according to the following guidelines:
-
Use the backslash escape character with each quotation mark (\") in the JSON array.
-
You must define key field values for each object. If you do not define the key field values, the object does not import and the response returns ErrorMissingKey status for that object.
-
You can define source field mappings to destination fields for each object. If you do not define a source field mapping, values from those source fields are imported as null values for that object.
-
Field values are defined per object; you cannot globally define a single field value in the request to apply to every imported asset object.
-
You can define up to 5000 asset objects per array, and by extension, per request.
The following example Asset custom source, named test-name, defines two field mappings for computer_name and serial_number and defines computer_name as a key field.
{
"keys": [
"computer_name"
],
"fieldMaps": [
{
"destination": "computer_name",
"source": "computerName"
},
{
"destination": "serial_number",
"source": "serialNumber"
}
]
}
The following mutation request imports assets based on the variables definition:
mutation exampleImportAssets($source: String!, $json: String!) {
assetsImport(input: {sourceName: $source, json: $json}) {
assets {
id
index
status
}
}
}
Include the variables in the Variables panel or in your variables dictionary.
The following variables manually define the test-name source for importing and two asset objects in the JSON object array. Each object has a value for the key field (computerName) and for the serialNumber field mapping.
{
"source": "test-name",
"json": "[{\"computerName\": \"computer123\", \"serialNumber\": \"testSerial123\"}, {\"computerName\": \"computer234\", \"serialNumber\": \"testSerial234\"}]"
}
As the request is evaluated, each asset object defines a value for the computerName key field, matching the key field defined for the test-name custom source, and both are imported using that source. The example response shows both objects with a status of Created:
{
"data": {
"assetsImport": {
"assets": [
{
"id": 6,
"index": 0,
"status": "Created"
},
{
"id": 7,
"index": 1,
"status": "Created"
}
]
}
}
}
To verify the import, create a report based on the custom source definition, and filter the report to search for imported assets. For example, creating a report with Computer Name and Serial Number as columns, then filtering Computer Name for values containing computer and 23 returns the imported assets.
For more information, see Create a report.
Automate examples
The following queries and mutations require Automate to create, retrieve, update, and delete playbooks and playbook runs, and start a playbook run from a playbook.
Add a playbook Add Custom Tag (Non-Windows) step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Add Custom Tag (Non-Windows) step requires the following permissions to deploy the Custom Tagging - Add Tags (Non-Windows) package:
-
Interact Execute action permission
-
Package read permission is required on the Core Content content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Add Custom Tag (Non-Windows) step deploys the Custom Tagging - Add Tags (Non-Windows) package to targeted endpoints, which assigns one or more custom tags to targeted endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Custom Tagging - Add Tags (Non-Windows) package on the targeted endpoints belonging to the All Linux computer group:
mutation exampleUpsertPlaybookAddTagLinux($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_add_tag_non_windows",
"description": "Example playbook - Add Tags to Non-Windows Machine step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_add_tag_non_windows_step",
"description": "Example step 1: Add Tags to Non-Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Linux"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1200
},
"completionPercentage": 1,
"package": {
"id": "36",
"name": "Custom Tagging - Add Tags (Non-Windows)",
"params": [
"example_tag"
]
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_add_tag_non_windows",
"steps": [
{
"description": "Example step 1: Add Tags to Non-Windows Machines",
"name": "example_add_tag_non_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Add Custom Tag (Windows) step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Add Custom Tag (Windows) step requires the following permissions to deploy the Custom Tagging - Add Tags package:
-
Interact Execute action permission
-
Package read permission is required on the Core Content content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Add Custom Tag (Windows) step deploys the Custom Tagging - Add Tags package to targeted endpoints, which assigns one or more custom tags to targeted endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Custom Tagging - Add Tags package on the targeted endpoints belonging to the All Windows computer group:
mutation exampleUpsertPlaybookAddTagWindows($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_add_tag_windows",
"description": "Example playbook - Add Tags to Windows Machine step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_add_tag_windows_step",
"description": "Example step 1: Add Tags to Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1200
},
"completionPercentage": 1,
"package": {
"id": "35",
"name": "Custom Tagging - Add Tags",
"params": [
"example_tag"
]
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_add_tag_windows",
"steps": [
{
"description": "Example step 1: Add Tags to Windows Machines",
"name": "example_add_tag_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Deploy Action step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Deploy Action step requires the following permissions to deploy actions, including action locks:
-
Interact Execute action permission
-
Package read permission on content sets determine which packages are available for selection in actions.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Deploy Action step deploys an action that runs a package on targeted endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Example Package package on the targeted endpoints belonging to the All Windows computer group:
mutation exampleUpsertPlaybookDeployAction($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_deploy_action",
"description": "Example playbook - Deploy action step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_deploy_action_step",
"description": "Example step 1: Deploy example package",
"endpointTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 12000
},
"completionPercentage": 1,
"package": {
"name": "Example package"
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_deploy_action",
"steps": [
{
"description": "Example step 1: Deploy example package",
"name": "example_deploy_action_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add email notifications to a playbook
(mutation.upsertPlaybook (input.notificationSettings.email))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
You can configure a playbook to send email notifications to recipient email addresses based on playbook run events. For information on the available playbook run event types, see PlaybookNotificationEventType in the Documentation Explorer.
The following mutation creates a playbook, because no ID is specified in the input, and defines email notifications when a playbook run starts or ends:
mutation exampleUpsertPlaybookEmailNotification($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
contentSet {
name
}
createdTime
description
id
name
notificationSettings {
email {
events
recipients
}
}
startingStep {
id
name
description
}
steps {
id
description
name
nextStep {
id
name
taskArgument {
__typename
}
}
previousStep {
id
name
taskArgument {
__typename
}
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_upsert_create",
"description": "Example playbook upsert create",
"contentSet": {
"id": "1234"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "12345678-90ab-cdef-1234-567890abcdef",
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_step_1",
"description": "Example step 1: Initiation",
"nextStepID": "22345678-90ab-cdef-1234-567890abcde2",
"taskArgument": {
"instruction": {
"instruction": "# Initiate (start) this step, then confirm when complete."
}
}
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"description": "Example step 2: Processing",
"nextStepID": "32345678-90ab-cdef-1234-567890abcde3",
"taskArgument": {
"instruction": {
"instruction": "# Work (Process) this step, then confirm when complete."
}
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"name": "example_step_3",
"description": "Example step 3: Resolution",
"nextStepID": null,
"taskArgument": {
"instruction": {
"instruction": "# Finish (Resolve) this step, then confirm when complete."
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"contentSet": {
"name": "Automate"
},
"createdTime": "2024-08-06T14:26:32.079536Z",
"description": "Example playbook upsert create",
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_playbook_upsert_create",
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStep": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_step_1",
"description": "Example step 1: Initiation"
},
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example step 1: Initiation",
"name": "example_step_1",
"nextStep": {
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
"previousStep": null
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"description": "Example step 2: Processing",
"name": "example_step_2",
"nextStep": {
"id": "32345678-90ab-cdef-1234-567890abcde3",
"name": "example_step_3",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
"previousStep": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_step_1",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"description": "Example step 3: Resolution",
"name": "example_step_3",
"nextStep": null,
"previousStep": {
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Linux Quarantine step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Linux Quarantine step requires the following permissions to deploy the Threat Response - Quarantine Endpoint Template [Linux] package:
-
Interact Execute action permission
-
Package read permission is required on the Incident Response content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Linux Quarantine step deploys the Threat Response - Quarantine Endpoint Template [Linux] package to targeted endpoints, which isolates a targeted endpoint from the network. For information about quarantining endpoints, see Quarantining endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Threat Response - Quarantine Endpoint Template [Linux] package on the targeted endpoints belonging to the All Linux computer group:
mutation exampleUpsertPlaybookQuarantineLinux($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_quarantine_linux",
"description": "Example playbook - Quarantine Linux step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_quarantine_linux_step",
"description": "Example step 1: Quarantine Linux",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Linux"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1800
},
"completionPercentage": 1,
"package": {
"name": "Threat Response - Quarantine Endpoint Template [Linux]",
"params": [
"1",
"1",
"1",
"1",
"1",
"1",
"example notification",
"IN:UDP:10.0.0.21:32:161\nOUT:UDP:10.0.0.21:32:162",
"192.0.2.10",
"192.0.2.20",
"1",
""
]
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_quarantine_linux",
"steps": [
{
"description": "Example step 1: Quarantine Linux",
"name": "example_quarantine_linux_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Manual Instruction step
(mutation.upsertPlaybook (input.steps), mutation.playbookRunPerformOperation)
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Manual Instruction step displays an instruction, generally in Markdown format, to the Tanium operator. The Tanium operator must confirm the completion to allow the playbook to proceed to the next step.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Manual Instruction step, which shows information to a Tanium operator:
mutation exampleUpsertPlaybookManualInstruction($input: PlaybookUpsertInput!) {
playbookUpsert(
input: $input
) {
playbook {
createdTime
description
id
name
revision
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_manual_instruction",
"description": "Example playbook - Manual Instruction step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": ["START", "END"],
"recipients": ["host@example.com"]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_manual_instruction_step",
"description": "Example step 1: External process",
"taskArgument": {
"instruction": {
"instruction": "# Check the external system output. Confirm this step when complete."
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"createdTime": "2023-08-21T13:15:58.764932Z",
"description": "Example playbook - Manual Instruction step",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_manual_instruction",
"revision": 1,
"steps": [
{
"description": "Example step 1: External process",
"name": "example_manual_instruction_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
For a running playbook with a Manual Instruction step at index 0, the following mutation issues the step confirmation.
mutation exampleConfirmPlaybookRunStep($input: PlaybookRunPerformOperationInput!) {
playbookRunPerformOperation(
input: $input
) {
playbookRun {
createdTime
endTime
events {
createdTime
initiator {
persona {
id
}
user {
id
}
}
name
}
id
playbook {
id
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
confirmationResult {
comment
completedUser {
id
}
completionTime
}
endTime
playbookStep {
description
name
}
startTime
status
error
}
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"operation": "CONFIRM_STEP",
"parameters": {
"confirmStep": {
"runStepIndex": 0,
"comment": "# Example confirmation of Manual Instruction step."
}
}
}
}
Example response:
{
"data": {
"playbookRunPerformOperation": {
"playbookRun": {
"createdTime": "2023-08-21T13:48:30.173539Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-21T06:48:30.1720982-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-21T13:48:30.1800994Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-21T13:48:30.2041051Z",
"initiator": null,
"name": "WAIT"
},
{
"createdTime": "2023-08-21T06:51:37.6948538-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CONFIRM"
}
],
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-21T13:48:30.180099Z",
"status": "IN_PROGRESS",
"steps": [
{
"confirmationResult": {
"comment": "# Example confirmation of Manual Instruction step.",
"completedUser": {
"id": "1"
},
"completionTime": "2023-08-21T06:51:37.6948538-07:00"
},
"endTime": null,
"playbookStep": {
"description": "Example step 1: External process",
"name": "example_manual_instruction_step"
},
"startTime": "2023-08-21T13:48:30.2041051Z",
"status": "IN_PROGRESS",
"error": ""
}
]
}
}
}
}
Add a playbook Reboot Non-Windows Machine step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Reboot Non-Windows Machine step requires the following permissions to deploy the Reboot Non-Windows Machine package:
-
Interact Execute action permission
-
Package read permission on the Core Content content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Reboot Non-Windows Machine step deploys the Reboot Non-Windows Machine package to targeted endpoints, which reboots the endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Reboot Non-Windows Machine package on the targeted endpoints belonging to the All Linux computer group:
mutation exampleUpsertPlaybookRebootNonWindows($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_reboot_non_windows",
"description": "Example playbook - Reboot Non-Windows Machine step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_reboot_non_windows_step",
"description": "Example step 1: Reboot Non-Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Linux"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1200
},
"completionPercentage": 1,
"package": {
"id": "47",
"name": "Reboot Non-Windows Machine",
"params": [
"REBOOT",
"30"
]
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_reboot_non_windows",
"steps": [
{
"description": "Example step 1: Reboot Non-Windows Machines",
"name": "example_reboot_non_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Reboot Windows Machine step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Reboot Windows Machine step requires the following permissions to deploy the Reboot Windows Machine package:
-
Interact Execute action permission
-
Package read permission on the Core Content content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Reboot Windows Machine step deploys the Reboot Windows Machine package to targeted endpoints, which reboots the endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Reboot Windows Machine package on the targeted endpoints belonging to the All Windows computer group:
mutation exampleUpsertPlaybookRebootWindows($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_reboot_windows",
"description": "Example playbook - Reboot Windows Machine step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_reboot_windows_step",
"description": "Example step 1: Reboot Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1200
},
"completionPercentage": 1,
"package": {
"id": "47",
"name": "Reboot Windows Machine",
"params": [
"REBOOT",
"yes",
"30"
]
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_reboot_windows",
"steps": [
{
"description": "Example step 1: Reboot Windows Machines",
"name": "example_reboot_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Remove Linux Quarantine step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Remove Linux Quarantine step requires the following permissions to deploy the Threat Response - Unquarantine Endpoint [Linux] package:
-
Interact Execute action permission
-
Package read permission is required on the Incident Response content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Remove Linux Quarantine step deploys the Threat Response - Unquarantine Endpoint [Linux] package to targeted endpoints, which restores network connectivity to a targeted quarantined endpoint. For information about quarantining endpoints, see Quarantining endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Threat Response - Unquarantine Endpoint [Linux] package on the targeted endpoints that belong to the All Linux computer group:
mutation exampleUpsertPlaybookRemoveQuarantineLinux($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_remove_quarantine_linux",
"description": "Example playbook - Remove Quarantine Linux step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_remove_quarantine_linux_step",
"description": "Example step 1: Remove Quarantine Linux",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Linux"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1800
},
"completionPercentage": 1,
"package": {
"name": "Threat Response - Unquarantine Endpoint [Linux]"
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_remove_quarantine_linux",
"steps": [
{
"description": "Example step 1: Remove Quarantine Linux",
"name": "example_remove_quarantine_linux_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Remove Windows Quarantine step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Remove Windows Quarantine step requires the following permissions to deploy the Threat Response - Unquarantine Endpoint [Windows] package:
-
Interact Execute action permission
-
Package read permission is required on the Incident Response content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Remove Windows Quarantine step deploys the Threat Response - Unquarantine Endpoint [Windows] package to targeted endpoints, which restores network connectivity to a targeted quarantined endpoint. For information about quarantining endpoints, see Quarantining endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Threat Response - Unquarantine Endpoint [Windows] package on the targeted endpoints belonging to the All Windows computer group:
mutation exampleUpsertPlaybookRemoveQuarantineWindows($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_remove_quarantine_windows",
"description": "Example playbook - Remove Quarantine Windows step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_remove_quarantine_windows_step",
"description": "Example step 1: Remove Quarantine Windows",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1800
},
"completionPercentage": 1,
"package": {
"name": "Threat Response - Unquarantine Endpoint [Windows]"
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_remove_quarantine_windows",
"steps": [
{
"description": "Example step 1: Remove Quarantine Windows",
"name": "example_remove_quarantine_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Require User Confirmation step
(mutation.upsertPlaybook (input.steps), mutation.playbookRunPerformOperation)
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Require User Confirmation step displays an instruction, generally in Markdown format, to the Tanium operator. This step requires a Tanium operator to confirm that the playbook can proceed to the next step.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Require User Confirmation step, which displays information to a Tanium operator and requires user confirmation before continuing to the next playbook run step:
mutation exampleUpsertPlaybookUserConfirmation($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
createdTime
description
id
name
revision
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_require_user_confirmation",
"description": "Example playbook - Require User Confirmation step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": ["START", "END"],
"recipients": ["host@example.com"]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_require_user_confirmation_step",
"description": "Example step 1: Verification",
"taskArgument": {
"confirmation": {
"instruction": "# Verify that the system is running, then confirm when complete."
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"createdTime": "2023-08-21T13:15:58.764932Z",
"description": "Example playbook - Require User Confirmation step",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_require_user_confirmation",
"revision": 1,
"steps": [
{
"description": "Example step 1: Verification",
"name": "example_require_user_confirmation_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentConfirmation"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
For a running playbook with a Require User Confirmation step at index 0, the following mutation issues the step confirmation.
mutation exampleConfirmPlaybookRunStep($input: PlaybookRunPerformOperationInput!) {
playbookRunPerformOperation(
input: $input
) {
playbookRun {
createdTime
endTime
events {
createdTime
initiator {
persona {
id
}
user {
id
}
}
name
}
id
playbook {
id
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
confirmationResult {
comment
completedUser {
id
}
completionTime
}
endTime
playbookStep {
description
name
}
startTime
status
error
}
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "dfe531d2-634c-4143-b80b-2e1e3987f6e8",
"operation": "CONFIRM_STEP",
"parameters": {
"confirmStep": {
"runStepIndex": 0,
"comment": "# Example confirmation of Require User Confirmation step."
}
}
}
}
Example response:
{
"data": {
"playbookRunPerformOperation": {
"playbookRun": {
"createdTime": "2023-08-21T13:29:18.306899Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-21T06:29:18.3059042-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-21T13:29:18.3089013Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-21T13:29:18.332902Z",
"initiator": null,
"name": "WAIT"
},
{
"createdTime": "2023-08-21T06:31:25.3657962-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CONFIRM"
}
],
"id": "dfe531d2-634c-4143-b80b-2e1e3987f6e8",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-21T13:29:18.308901Z",
"status": "IN_PROGRESS",
"steps": [
{
"confirmationResult": {
"comment": "# Example confirmation of Require User Confirmation step.",
"completedUser": {
"id": "1"
},
"completionTime": "2023-08-21T06:31:25.3657962-07:00"
},
"endTime": null,
"playbookStep": {
"description": "Example step 1: Verification",
"name": "example_require_user_confirmation_step"
},
"startTime": "2023-08-21T13:29:18.332902Z",
"status": "IN_PROGRESS",
"error": ""
}
]
}
}
}
}
Add steps that inherit endpoint targeting
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
When configuring steps that target endpoints, note the following:
-
Targeting inheritance relies upon referencing a prior step ID. When creating a playbook, manually assign a step ID for reference. Ensure that the step ID is unique, to avoid step ID reference collision issues when resolving a referenced step ID. Playbook steps without a user-defined ID are assigned a GUID in the format
12345678-90ab-cdef-1234-567890abcdef. -
Not all steps target endpoints. For example, the Wait step waits for the configured amount of time before the playbook run proceeds to the next step, without targeting endpoints.
-
You cannot inherit targeting from a Verify Condition step.
-
If a step targets endpoints, such as (input.steps.endpointTargeting), you must define one, and only one, of customTargeting, previousStepTargeting, or previousStepCompletedTargeting.
-
customTargeting supports targeting endpoints based on computer group membership, sensor evaluation, or a combination of both. For more information on supported syntax, see
ComputerGroupFilterin the Documentation Explorer. -
previousStepTargeting targets the same endpoints as a prior targeting step index value in the playbook step array.
-
previousStepCompletedTargeting targets the endpoints that completed the prior targeting step in the playbook step array.
-
-
If the first step in a playbook targets endpoints, you must define customTargeting. Because no steps precede the first step, you cannot inherit targeting from prior steps.
-
For any step in a playbook that targets endpoints after the first step, you can define customTargeting for the step, or inherit endpoint targeting using either previousStepTargeting or previousStepCompletedTargeting, referencing a prior step index.
-
If you inherit endpoint targeting with either previousStepTargeting or previousStepCompletedTargeting, and the referenced step index does not target endpoints, the evaluation traverses backwards from the referenced step to find a step that targets endpoints, then uses that step targeting. If no steps in this evaluation target endpoints, this results in an error.
-
Depending on the step type, additional endpoint filtering might be required to narrow the targeted endpoints, regardless of endpoint targeting method.
The following mutation creates a playbook, because no ID is specified in the input, and defines three steps:
-
step ID 12345678-90ab-cdef-1234-567890abcdef: a Deploy Action step that uses the Custom Tagging - Add Tags to apply the example-tag tag to endpoints in the All Windows computer group
-
step ID 02345678-90ab-cdef-1234-567890abcde0: a Deploy Action step that inherits endpoint targeting from step ID 12345678-90ab-cdef-1234-567890abcdef and defines the All Windows 10 computer group as an additional filter
-
step ID 92345678-90ab-cdef-1234-567890abcde9: a Verify Condition step that sets a successPercentage value of 1 (100%) of all endpoints that completed step ID 02345678-90ab-cdef-1234-567890abcde0
mutation exampleUpsertPlaybookStepInheritance($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
createdTime
description
id
name
revision
steps {
id
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_target_inheritance",
"description": "Example playbook - Step target inheritance",
"contentSet": {
"id": "1234"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "12345678-90ab-cdef-1234-567890abcdef",
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_add_tag_windows_step",
"description": "Example step 1: Add Tags to Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"nextStepID": "02345678-90ab-cdef-1234-567890abcde0",
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 12000
},
"completionPercentage": 1,
"package": {
"id": "35",
"name": "Custom Tagging - Add Tags",
"params": [
"example_tag"
]
}
}
}
},
{
"id": "02345678-90ab-cdef-1234-567890abcde0",
"name": "example_deploy_action_step",
"description": "Example step 2: Deploy action to Windows 10",
"endpointTargeting": {
"previousStepTargetingID": "12345678-90ab-cdef-1234-567890abcdef"
},
"nextStepID": "92345678-90ab-cdef-1234-567890abcde9",
"taskArgument": {
"deployAction": {
"actionGroup": {
"name": "All Windows 10"
},
"completionPercentage": 1,
"package": {
"name": "Custom Tagging - Add Tags"
}
}
}
},
{
"id": "92345678-90ab-cdef-1234-567890abcde9",
"name": "example_verify_condition_step",
"description": "Example step 3: Check for virtual Windows utility run",
"endpointTargeting": {
"previousStepCompletedTargetingID": "02345678-90ab-cdef-1234-567890abcde0"
},
"taskArgument": {
"verifyCondition": {
"endpointFilter": {
"sensor": {
"name": "Is Virtual"
},
"op": "EQ",
"value": "true",
"negated": false,
"any": false
},
"successPercentage": 1
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"createdTime": "2023-09-28T18:29:34.408097Z",
"description": "Example playbook - Step target inheritance",
"id": "52345678-90ab-cdef-1234-567890abcde5",
"name": "example_playbook_target_inheritance",
"revision": 1,
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example step 1: Add Tags to Windows Machines",
"name": "example_add_tag_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
},
{
"id": "02345678-90ab-cdef-1234-567890abcde0",
"description": "Example step 2: Deploy action to Windows 10",
"name": "example_deploy_action_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
},
{
"id": "92345678-90ab-cdef-1234-567890abcde9",
"description": "Example step 3: Check for virtual Windows utility run",
"name": "example_verify_condition_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentVerifyCondition"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
The following mutation creates a playbook, because no ID is specified in the input, and defines the following steps:
-
step one: a Deploy Action step that deploys the Custom Tagging - Add Tags package to all endpoints in the All Windows computer group and sets a completionPercentage value of 1.0 (100%) of endpoints
-
step two: a Verify Condition step that checks that all endpoints in the All Windows computer group are not virtual
-
step three: a Require User Confirmation step that does not target endpoints
-
step four: a Wait step that does not target endpoints
-
step five: a Require User Confirmation step that does not target endpoints
-
step six: a Deploy Action step that sets a successPercentage value of 1.0 (100%) of all endpoints that completed step one
The endpoint targeting for step six references the endpoint targeting for step one, and does not consider any endpoint targeting or lack of endpoint targeting in steps two, three, four, or five.
mutation exampleUpsertPlaybookStepInheritanceSkip($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
createdTime
description
id
name
revision
steps {
id
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_target_inheritance",
"description": "Example playbook - Step target inheritance",
"contentSet": {
"id": "1234"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "12345678-90ab-cdef-1234-567890abcdef",
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_add_tag_windows_step",
"description": "Example step 1: Add Tags to Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"nextStepID": "22345678-90ab-cdef-1234-567890abcde2",
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 12000
},
"completionPercentage": 1,
"package": {
"id": "35",
"name": "Custom Tagging - Add Tags",
"params": [
"example_tag"
]
}
}
}
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_verify_condition_step",
"description": "Example step 2: Check for physical Windows",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"nextStepID": "32345678-90ab-cdef-1234-567890abcde3",
"taskArgument": {
"verifyCondition": {
"endpointFilter": {
"sensor": {
"name": "Is Virtual"
},
"op": "EQ",
"value": "false",
"negated": false,
"any": false
},
"successPercentage": 1
}
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"name": "example_confirmation_step",
"description": "Example step 3: Confirm Windows workstations online",
"nextStepID": "42345678-90ab-cdef-1234-567890abcde4",
"taskArgument": {
"confirmation": {
"instruction": "Verify that critical Windows workstations are online, then confirm this step."
}
}
},
{
"id": "42345678-90ab-cdef-1234-567890abcde4",
"name": "example_wait_step",
"description": "Example step 4: Wait twelve hours for background processes",
"nextStepID": "52345678-90ab-cdef-1234-567890abcde5",
"taskArgument": {
"wait": {
"duration": {
"seconds": 43200
}
}
}
},
{
"id": "52345678-90ab-cdef-1234-567890abcde5",
"name": "example_additional_confirmation_step",
"description": "Example step 5: Confirm background processes did not error",
"nextStepID": "62345678-90ab-cdef-1234-567890abcde6",
"taskArgument": {
"confirmation": {
"instruction": "Verify that overnight processes ran in the C:\\logs\\overnight\\[date]-[time]-overnight-[index-value].log files. If any errors in the log, contact network admin on call. Otherwise, confirm this step."
}
}
},
{
"id": "62345678-90ab-cdef-1234-567890abcde6",
"name": "example_deploy_action_step",
"description": "Example step 6: Deploy action to copy log info on important physical Windows workstations",
"endpointTargeting": {
"previousStepTargetingID": "12345678-90ab-cdef-1234-567890abcdef"
},
"nextStepID": null,
"taskArgument": {
"deployAction": {
"actionGroup": {
"name": "Critical Hardware"
},
"completionPercentage": 1,
"package": {
"name": "Copy Log Info"
}
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"createdTime": "2024-05-06T19:48:33.601759Z",
"description": "Example playbook - Step target inheritance",
"id": "f635b09c-93e9-44e5-8094-6dc7c5a420ac",
"name": "example_playbook_target_inheritance",
"revision": 1,
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example step 1: Add Tags to Windows Machines",
"name": "example_add_tag_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"description": "Example step 2: Check for physical Windows",
"name": "example_verify_condition_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentVerifyCondition"
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"description": "Example step 3: Confirm Windows workstations online",
"name": "example_confirmation_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentConfirmation"
}
},
{
"id": "42345678-90ab-cdef-1234-567890abcde4",
"description": "Example step 4: Wait twelve hours for background processes",
"name": "example_wait_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentWait"
}
},
{
"id": "52345678-90ab-cdef-1234-567890abcde5",
"description": "Example step 5: Confirm background processes did not error",
"name": "example_additional_confirmation_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentConfirmation"
}
},
{
"id": "62345678-90ab-cdef-1234-567890abcde6",
"description": "Example step 6: Deploy action to copy log info on important physical Windows workstations",
"name": "example_deploy_action_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Verify Condition step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Verify Condition step evaluates the percentage of targeted endpoints that answered a Tanium question, compared to the total number of endpoints managed using Tanium Client. The step is considered complete when 95% of endpoints have responded, or after ten minutes elapse (the question expiration interval). If the percentage meets or exceeds the defined successPercentage value, the step completes and the playbook run moves to the next step. Otherwise, the playbook run ends.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Verify Condition step that sets a successPercentage value of 0.501 (50.1%) of endpoints in the All Windows computer group that are not virtual:
mutation exampleUpsertPlaybookVerifyCondition($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
createdTime
description
id
name
revision
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_verify_condition",
"description": "Example playbook - Verify Condition step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_verify_condition_step",
"description": "Example step 1: Check for virtual Windows",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"verifyCondition": {
"endpointFilter": {
"sensor": {
"name": "Is Virtual"
},
"op": "EQ",
"value": "true"
},
"successPercentage": 0.501
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"createdTime": "2023-08-21T13:15:58.764932Z",
"description": "Example playbook - Verify Condition step",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_verify_condition",
"revision": 1,
"steps": [
{
"description": "Example step 1: Check for virtual Windows",
"name": "example_verify_condition_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentVerifyCondition"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Wait step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Wait step waits for a configured amount of time, then moves to the next step in the playbook run.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Wait step, which waits the specified duration of 60 seconds before continuing to the next playbook run step:
mutation exampleUpsertPlaybookWait($input: PlaybookUpsertInput!) {
playbookUpsert(
input: $input
) {
playbook {
createdTime
description
id
name
revision
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_wait_step",
"description": "Example playbook - Wait step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_wait_step",
"description": "Example step 1: Wait 1 minute",
"taskArgument": {
"wait": {
"duration": {
"nanoseconds": 0,
"seconds": 60
}
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"createdTime": "2024-08-06T17:16:21.467859Z",
"description": "Example playbook - Wait step",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_wait_step",
"revision": 2,
"steps": [
{
"description": "Example step 1: Wait 1 minute",
"name": "example_wait_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentWait"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Add a playbook Windows Quarantine step
(mutation.upsertPlaybook (input.steps))
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Windows Quarantine step requires the following permissions to deploy the Threat Response - Quarantine Endpoint Template [Windows] package:
-
Interact Execute action permission
-
Package read permission is required on the Incident Response content set.
-
Sensor read and Saved Question read permissions are required on the Reserved content set. Tanium Cloud uses special saved questions to track and report action status within the deploy action workflow. Therefore, these permissions are required to complete the action deployment workflow.
For more information, see Action management permissions.
The Windows Quarantine step deploys the Threat Response - Quarantine Endpoint Template [Windows] package to targeted endpoints, which isolates a targeted endpoint from the network. For information about how to quarantine endpoints, see Quarantining endpoints.
The following mutation creates a playbook, because no ID is specified in the input, and defines a Deploy Action step that runs the Threat Response - Quarantine Endpoint Template [Windows] package on the targeted endpoints belonging to the All Windows computer group:
mutation exampleUpsertPlaybookQuarantineWindows($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_quarantine_windows",
"description": "Example playbook - Quarantine Windows step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_quarantine_windows_step",
"description": "Example step 1: Quarantine Windows",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1800
},
"completionPercentage": 1,
"package": {
"name": "Threat Response - Quarantine Endpoint Template [Windows]",
"params": [
"1",
"1",
"1",
"1",
"1",
"1",
"example notification",
"IN:UDP:10.0.0.21:32:161\nOUT:UDP:10.0.0.21:32:162",
"192.0.2.10",
"192.0.2.20",
"0",
""
]
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_quarantine_windows",
"steps": [
{
"description": "Example step 1: Quarantine Windows",
"name": "example_quarantine_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Create a playbook run from a playbook
(mutation.playbookStart)
The playbookStart mutation requires the Automate Playbook execute permission on the content set to which a playbook belongs to start a playbook run.
The following mutation creates a playbook run from a playbook that matches the ID.
mutation exampleStartPlaybook($id: ID!) {
playbookStart(input: {id: $id}) {
playbookRun {
createdTime
endTime
events {
createdTime
initiator {
user {
displayName
username
}
persona {
id
}
}
name
}
id
playbook {
createdTime
description
id
name
revision
steps {
description
name
}
updatedTime
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
playbookStep {
description
name
}
status
error
}
}
error {
message
retryable
timedOut
}
}
}
Include the playbook ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"playbookStart": {
"playbookRun": {
"createdTime": "2023-08-18T19:47:44.041634Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:47:44.0394017-07:00",
"initiator": {
"user": {
"displayName": null,
"username": "Administrator"
},
"persona": null
},
"name": "CREATE"
}
],
"id": "618903ae-a337-40cd-849c-66cb471f5768",
"playbook": {
"createdTime": "2023-08-18T19:23:34.008989Z",
"description": "Example playbook update",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_update",
"revision": 2,
"steps": [
{
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
{
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
{
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
}
],
"updatedTime": "2023-08-18T19:38:52.458956Z"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": null,
"status": "NOT_STARTED",
"steps": [
{
"playbookStep": {
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
"status": "NOT_STARTED",
"error": ""
},
{
"playbookStep": {
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
"status": "NOT_STARTED",
"error": ""
},
{
"playbookStep": {
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
},
"status": "NOT_STARTED",
"error": ""
}
]
},
"error": null
}
}
}
Get a playbook by ID and version
(query.playbook)
The playbook query requires the Automate Playbook read permission on the content set to which a playbook version belongs to retrieve the playbook.
The following query retrieves a playbook based on the ID and playbook version.
query exampleGetPlaybook($id: ID!, $revision: Int) {
playbook(ref: {id: $id, revision: $revision}) {
createdTime
description
id
name
notificationSettings {
email {
events
recipients
}
}
revision
startingStep {
id
name
description
}
steps {
id
description
name
taskArgument {
__typename
}
}
updatedTime
}
}
Include the playbook ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"revision": 1
}
Example response:
{
"data": {
"playbook": {
"createdTime": "2023-08-18T15:53:41.091488Z",
"description": "example description",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "Example playbook",
"notificationSettings": {
"email": {
"events": [
"START",
"COMPLETE",
"END",
"ERROR",
"WAIT"
],
"recipients": [
"username@example.com",
"username_2@example.com"
]
}
},
"revision": 1,
"startingStep": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "Require User Confirmation",
"description": "example description"
},
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "example description",
"name": "Require User Confirmation",
"taskArgument": {
"__typename": "AutomateTaskArgumentConfirmation"
}
}
],
"updatedTime": "2023-08-18T15:53:41.091488Z"
}
}
}
Get a playbook run by ID
(query.playbookRun)
The playbookRun query requires the Automate Playbook read permission on the content set to which a playbook belongs to retrieve associated playbook runs.
The following query retrieves a playbook run based on the ID.
query exampleGetPlaybookRun($id: ID!) {
playbookRun(ref: {id: $id}) {
createdTime
endTime
events {
createdTime
initiator {
persona {
id
}
user {
id
}
}
name
}
id
playbook {
activeRunsCount
author {
displayName
id
username
}
createdTime
description
id
lastModifiedBy {
displayName
id
username
}
name
revision
steps {
description
name
}
updatedTime
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
playbookStep {
description
name
__typename
}
status
error
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"id": "fedcba09-8765-4321-fedc-ba0987654321"
}
Example response:
{
"data": {
"playbookRun": {
"createdTime": "2023-08-18T19:49:13.113955Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:49:13.1127798-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-18T19:49:13.1167809Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-18T19:49:13.1397834Z",
"initiator": null,
"name": "WAIT"
}
],
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"playbook": {
"activeRunsCount": 3,
"author": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"createdTime": "2023-08-18T19:23:34.008989Z",
"description": "Example playbook update",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"lastModifiedBy": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"name": "example_playbook_update",
"revision": 2,
"steps": [
{
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
{
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
{
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
}
],
"updatedTime": "2023-08-18T19:38:52.458956Z"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:49:13.11678Z",
"status": "WAITING",
"steps": [
{
"playbookStep": {
"description": "Example step 1 update: Initiation",
"name": "example_step_1",
"__typename": "PlaybookStepInstruction"
},
"status": "WAITING",
"error": ""
},
{
"playbookStep": {
"description": "Example step 2 update: Processing",
"name": "example_step_2",
"__typename": "PlaybookStepInstruction"
},
"status": "NOT_STARTED",
"error": ""
},
{
"playbookStep": {
"description": "Example step 3 update: Resolution",
"name": "example_step_3",
"__typename": "PlaybookStepInstruction"
},
"status": "NOT_STARTED",
"error": ""
}
]
}
}
}
Get a playbook schedule by ID
(query.playbookSchedule)
The playbookSchedule query requires the Automate Playbook read permission on the content set to which a playbook belongs to retrieve associated playbook schedules.
The following query retrieves a playbook schedule based on the ID.
query exampleGetPlaybookScheduleByID($ref: IdRefInput!) {
playbookSchedule(ref: $ref) {
id
createdTime
cron
enabled
events {
createdTime
initiator {
user {
id
displayName
username
}
persona {
id
}
}
name
}
playbook {
id
contentSet {
id
}
currentUserHasActiveRun
description
name
revision
}
scheduledBy {
user {
id
displayName
username
}
persona {
id
}
}
updatedTime
}
}
Include the playbook schedule ID variable in the Variables panel or in your variables dictionary:
{
"ref": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
}
Example response:
{
"data": {
"playbookSchedule": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"createdTime": "2024-04-12T20:37:54.860756Z",
"cron": "0 0 1 1 1",
"enabled": true,
"events": [],
"playbook": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"contentSet": {
"id": "123"
},
"currentUserHasActiveRun": false,
"description": "Example playbook - Scheduling",
"name": "example_playbook_scheduling",
"revision": 3
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-04-12T20:37:54.860756Z"
}
}
}
Get multiple playbooks
(query.playbooks)
The playbooks query requires the Automate Playbook read permission on the content set to which a playbook belongs to retrieve associated playbooks.
COMPLEXITY_LIMIT_EXCEEDED error code. Reduce the number of fields in the query request, or update pagination to return fewer results.
COMPLEXITY_LIMIT_EXCEEDED error code. Only include this field in a query request if you limit the number of results returned. Consider using playbook.steps.currentUserMissingPermissions instead to identify whether a user requires additional permissions to run a step, and for increased query efficiency.
The following query retrieves the first two playbooks.
query exampleGetPlaybooks($first: Int) {
playbooks(first: $first) {
edges {
node {
createdTime
description
id
name
notificationSettings {
email {
events
recipients
}
}
revision
startingStep {
id
description
name
}
steps {
id
description
name
nextStep {
id
description
name
}
previousStep {
id
description
name
}
taskArgument {
__typename
}
}
updatedTime
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
authorUserIDs
authorUsers {
id
username
displayName
}
contentSetIDs
contentSets {
id
name
description
}
totalRecords
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"playbooks": {
"edges": [
{
"node": {
"createdTime": "2024-04-09T04:19:05.445776Z",
"description": "",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example playbook",
"notificationSettings": {
"email": {
"events": [
"START",
"COMPLETE",
"END",
"ERROR",
"WAIT"
],
"recipients": [
"username@example.com",
"username_2@example.com"
]
}
},
"revision": 1,
"startingStep": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"description": "initial step in playbook",
"name": "example_start_step"
},
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"description": "initial step in playbook",
"name": "example_start_step",
"nextStep": null,
"previousStep": null,
"taskArgument": {
"__typename": "AutomateTaskArgumentWait"
}
}
],
"updatedTime": "2024-04-09T04:19:05.445776Z"
}
},
{
"node": {
"createdTime": "2024-04-11T21:12:37.234882Z",
"description": "",
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example playbook 2",
"notificationSettings": {
"email": {
"events": [],
"recipients": []
}
},
"revision": 1,
"startingStep": {
"id": "example-step-id-1",
"description": "example manual instruction description",
"name": "Manual Instruction"
},
"steps": [
{
"id": "example-step-id-1",
"description": "example manual instruction description",
"name": "Manual Instruction",
"nextStep": {
"id": "example-step-id-2",
"description": "another example manual description",
"name": "Manual Instruction - Cloned"
},
"previousStep": null,
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
{
"id": "example-step-id-2",
"description": "another example manual description",
"name": "Manual Instruction - Cloned",
"nextStep": null,
"previousStep": {
"id": "example-step-id-1",
"description": "example manual instruction description",
"name": "Manual Instruction"
},
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
}
],
"updatedTime": "2024-04-11T21:12:37.234882Z"
}
}
],
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": true,
"startCursor": "eyJpZCI6ImU2Nzg1MmNlLTJkZTMtNDljNi1hYjFhLTM3ZGQ3NTdjZTkwMyIsImNyZWF0ZWRfdGltZSI6IjIwMjQtMDQtMDlUMDQ6MTk6MDUuNDQ1Nzc2WiIsIm5hbWUiOiJBZGFtbyAyIn0K",
"endCursor": "eyJpZCI6IjEyMzA5NzQ5LWZjMzAtNDcyMi1hZTk4LTU4ZjZjNzA0YzIwYiIsImNyZWF0ZWRfdGltZSI6IjIwMjQtMDQtMTFUMjE6MTI6MzcuMjM0ODgyWiIsIm5hbWUiOiJBZGFtbyAzIn0K"
},
"authorUserIDs": [
"12",
"23",
"34"
],
"authorUsers": [
{
"id": "12",
"username": "admin",
"displayName": null
},
{
"id": "23",
"username": "example_user_1",
"displayName": null
},
{
"id": "34",
"username": "example_user_2",
"displayName": null
}
],
"contentSetIDs": [
"1",
"1234"
],
"contentSets": [
{
"id": "1",
"name": "Reserved",
"description": "Built in sensors which can not be edited or removed."
},
{
"id": "1234",
"name": "Automate",
"description": "Default content set for Tanium Automate"
}
],
"totalRecords": 15
}
}
}
Get multiple playbook runs
(query.playbookRuns)
The playbookRuns query requires the Automate Playbook read permission on the content set to which a playbook version belongs to retrieve associated playbook runs.
COMPLEXITY_LIMIT_EXCEEDED error code. Reduce the number of fields in the query request, or update pagination to return fewer results.
COMPLEXITY_LIMIT_EXCEEDED error code. Only include this field in a query request if you limit the number of results returned. Consider using playbook.steps.currentUserMissingPermissions instead to identify whether a user requires additional permissions to run a step, and for increased query efficiency.
The following query retrieves the first two playbook runs.
query exampleGetPlaybookRuns($first: Int) {
playbookRuns(first: $first) {
edges {
node {
createdTime
endTime
events {
createdTime
initiator {
persona {
id
}
user {
id
}
}
name
}
id
playbook {
activeRunsCount
author {
id
}
createdTime
description
id
lastModifiedBy {
displayName
id
username
}
name
revision
steps {
description
name
}
updatedTime
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
confirmationResult {
comment
completedUser {
id
}
completionTime
}
playbookStep {
description
name
__typename
}
startTime
status
error
}
}
}
initiatorUserIDs
initiatorUsers {
id
username
displayName
}
playbooks {
playbookID
playbookName
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
totalRecords
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"playbookRuns": {
"edges": [
{
"node": {
"createdTime": "2023-08-18T19:47:44.041634Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:47:44.0394017-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-18T19:47:44.2224093Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-18T19:47:44.3544268Z",
"initiator": null,
"name": "WAIT"
}
],
"id": "02345678-90ab-cdef-1234-567890abcde0",
"playbook": {
"activeRunsCount": 3,
"author": {
"id": "1"
},
"createdTime": "2023-08-18T19:23:34.008989Z",
"description": "Example playbook update",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"lastModifiedBy": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"name": "example_playbook_update",
"revision": 2,
"steps": [
{
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
{
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
{
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
}
],
"updatedTime": "2023-08-18T19:38:52.458956Z"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:47:44.222409Z",
"status": "WAITING",
"steps": [
{
"confirmationResult": null,
"playbookStep": {
"description": "Example step 1 update: Initiation",
"name": "example_step_1",
"__typename": "PlaybookStepInstruction"
},
"startTime": "2023-08-18T19:47:44.3544268Z",
"status": "WAITING",
"error": ""
},
{
"confirmationResult": null,
"playbookStep": {
"description": "Example step 2 update: Processing",
"name": "example_step_2",
"__typename": "PlaybookStepInstruction"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
},
{
"confirmationResult": null,
"playbookStep": {
"description": "Example step 3 update: Resolution",
"name": "example_step_3",
"__typename": "PlaybookStepInstruction"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
}
]
}
},
{
"node": {
"createdTime": "2023-08-18T19:49:13.113955Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:49:13.1127798-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-18T19:49:13.1167809Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-18T19:49:13.1397834Z",
"initiator": null,
"name": "WAIT"
}
],
"id": "22345678-90ab-cdef-1234-567890abcde2",
"playbook": {
"activeRunsCount": 3,
"author": {
"id": "1"
},
"createdTime": "2023-08-18T19:23:34.008989Z",
"description": "Example playbook update",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"lastModifiedBy": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"name": "example_playbook_update",
"revision": 2,
"steps": [
{
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
{
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
{
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
}
],
"updatedTime": "2023-08-18T19:38:52.458956Z"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:49:13.11678Z",
"status": "WAITING",
"steps": [
{
"confirmationResult": null,
"playbookStep": {
"description": "Example step 1 update: Initiation",
"name": "example_step_1",
"__typename": "PlaybookStepInstruction"
},
"startTime": "2023-08-18T19:49:13.1397834Z",
"status": "WAITING",
"error": ""
},
{
"confirmationResult": null,
"playbookStep": {
"description": "Example step 2 update: Processing",
"name": "example_step_2",
"__typename": "PlaybookStepInstruction"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
},
{
"confirmationResult": null,
"playbookStep": {
"description": "Example step 3 update: Resolution",
"name": "example_step_3",
"__typename": "PlaybookStepInstruction"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
}
]
}
}
],
"initiatorUserIDs": [
"123",
"234"
],
"initiatorUsers": [
{
"id": "123",
"username": "example_user_1",
"displayName": null
},
{
"id": "234",
"username": "example_user_2",
"displayName": null
}
],
"playbooks": [
{
"playbookID": "12345678-90ab-cdef-1234-567890abcdef",
"playbookName": "example playbook"
},
{
"playbookID": "fedcba09-8765-4321-fedc-ba0987654321",
"playbookName": "example playbook 2"
}
],
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": true,
"startCursor": "eyJpZCI6IjYxODkwM2FlLWEzMzctNDBjZC04NDljLTY2Y2I0NzFmNTc2OCIsImNyZWF0ZWRfdGltZSI6IjIwMjMtMDgtMThUMTk6NDc6NDQuMDQxNjM0WiIsInN0YXR1cyI6IldBSVRJTkcifQo=",
"endCursor": "eyJpZCI6IjJiM2Q4NTIwLTJjZDktNGY5ZC1iNzdiLWY0ZmFjNWIyOWNlYyIsImNyZWF0ZWRfdGltZSI6IjIwMjMtMDgtMThUMTk6NDk6MTMuMTEzOTU1WiIsInN0YXR1cyI6IldBSVRJTkcifQo="
},
"totalRecords": 5
}
}
}
Get multiple playbook schedules
(query.playbookSchedules)
The playbookSchedules query requires the Automate Playbook read permission on the content set to which a playbook belongs to retrieve associated playbook schedules.
COMPLEXITY_LIMIT_EXCEEDED error code. Reduce the number of fields in the query request, or update pagination to return fewer results.
COMPLEXITY_LIMIT_EXCEEDED error code. Only include this field in a query request if you limit the number of results returned. Consider using playbook.steps.currentUserMissingPermissions instead to identify whether a user requires additional permissions to run a step, and for increased query efficiency.
The following query retrieves the first two playbook schedules.
query exampleGetPlaybookSchedules($first: Int) {
playbookSchedules(first: $first) {
edges {
node {
id
createdTime
cron
enabled
events {
createdTime
initiator {
user {
id
displayName
username
}
persona {
id
}
}
name
}
playbook {
id
contentSet {
id
}
currentUserHasActiveRun
description
name
revision
}
scheduledBy {
user {
id
displayName
username
}
persona {
id
}
}
updatedTime
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"playbookSchedules": {
"edges": [
{
"node": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"createdTime": "2024-03-27T14:38:35.620598Z",
"cron": "38 14 * * *",
"enabled": false,
"events": [],
"playbook": {
"id": "567890ab-cdef-1234-5678-90abcdef1234",
"contentSet": {
"id": "123"
},
"currentUserHasActiveRun": false,
"description": "",
"name": "Example Playbook - Scheduling",
"revision": 1
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-03-27T14:38:59.943286Z"
}
},
{
"node": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"createdTime": "2024-03-27T14:41:32.91756Z",
"cron": "41 14 * * *",
"enabled": false,
"events": [],
"playbook": {
"id": "ba098765-4321-fedc-ba09-87654321fedc",
"contentSet": {
"id": "123"
},
"currentUserHasActiveRun": false,
"description": "",
"name": "Example Playbook - Scheduling 2",
"revision": 1
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-03-27T14:42:01.149338Z"
}
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "eyJJRCI6IjBhYmZhMzEwLTdkMDctNGFkZi05YmYxLWQzNTRlOWQ1ODQ1YiIsIkNyZWF0ZWRUaW1lIjoiMjAyNC0wMy0yN1QxNDozODozNS42MjA1OThaIn0K",
"endCursor": "eyJJRCI6IjM5MmJkYjIxLWExZGQtNDMxMi04MmRiLTc0NDllNmFhNGZmZiIsIkNyZWF0ZWRUaW1lIjoiMjAyNC0wMy0yN1QxNDo0MTozMi45MTc1NloifQo="
},
"totalRecords": 31
}
}
}
Upsert (create or update by ID) a playbook
(mutation.playbookUpsert)
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
Depending on the steps you add to a playbook, you might require additional Tanium solutions and permissions.
When you create a playbook, you define one or more steps as input. Each step contains a reference to the next step ID, and the playbook contains a reference to the first step ID. Depending on the step type, you configure one or more of the following:
-
A step name
-
A step description
-
The next step ID
-
The task argument that the step performs
-
Additional information to display to a Tanium user, such as an instruction
-
Question filtering to narrow the targeted endpoints
-
Computer groups or sensors to narrow the targeted endpoints
-
A success percentage of endpoints returned to determine whether to move on to the next step in the playbook run
-
Other configuration specific to the step or task argument functionality
Starting with the second step in the playbook step sequence, you can configure a step to inherit endpoint targeting information from a prior step in the array based on the step ID. Each step evaluation depends on the step task argument functionality, and progression to the next step might depend on evaluating the percentage of endpoints returned, user input, waiting a specified amount of time, or additional success criteria.
The following mutation creates a playbook, because no ID is specified in the input, and defines several steps:
mutation examplePlaybookUpsertCreate($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
contentSet {
name
}
createdTime
description
id
name
startingStep {
id
name
description
}
steps {
id
description
name
nextStep {
id
name
taskArgument {
__typename
}
}
previousStep {
id
name
taskArgument {
__typename
}
}
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_upsert_create",
"description": "Example playbook upsert create",
"contentSet": {
"id": "1234"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "12345678-90ab-cdef-1234-567890abcdef",
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_add_tag_windows_step",
"description": "Example step 1: Add Tags to Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"nextStepID": "22345678-90ab-cdef-1234-567890abcde2",
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1200
},
"completionPercentage": 1,
"package": {
"id": "35",
"name": "Custom Tagging - Add Tags",
"params": [
"example_tag"
]
}
}
}
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"description": "Example step 2: Verify Windows",
"nextStepID": "32345678-90ab-cdef-1234-567890abcde3",
"taskArgument": {
"instruction": {
"instruction": "# Process this step, then confirm when complete."
}
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"name": "example_remove_tag_windows_step",
"description": "Example step 3: Remove Tags from Windows Machines",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"nextStepID": null,
"taskArgument": {
"deployAction": {
"actionGroup": {
"id": "3",
"name": "Default"
},
"actionDuration": {
"seconds": 1200
},
"completionPercentage": 1,
"package": {
"id": "37",
"name": "Custom Tagging - Remove Tags"
}
}
}
}
]
}
}
Example response if a playbook was created (isNewRecord equals true):
{
"data": {
"playbookUpsert": {
"playbook": {
"contentSet": {
"name": "Automate"
},
"createdTime": "2024-08-06T14:26:32.079536Z",
"description": "Example playbook upsert create",
"id": "7261c52c-9e3f-427e-a813-0e845f7b89fd",
"name": "example_playbook_upsert_create",
"startingStep": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_add_tag_windows_step",
"description": "Example step 1: Add Tags to Windows Machines"
},
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example step 1: Add Tags to Windows Machines",
"name": "example_add_tag_windows_step",
"nextStep": {
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
"previousStep": null,
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"description": "Example step 2: Verify Windows",
"name": "example_step_2",
"nextStep": {
"id": "32345678-90ab-cdef-1234-567890abcde3",
"name": "example_remove_tag_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
},
"previousStep": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_add_tag_windows_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
},
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"description": "Example step 3: Remove Tags from Windows Machines",
"name": "example_remove_tag_windows_step",
"nextStep": null,
"previousStep": {
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
"taskArgument": {
"__typename": "AutomateTaskArgumentDeployAction"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
The following mutation updates an existing playbook with the ID 12345678-90ab-cdef-1234-567890abcdef, and defines three Instruction steps, which display information to an end user:
mutation examplePlaybookUpsertUpdate($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
contentSet {
name
}
createdTime
description
id
name
startingStep {
id
name
description
}
steps {
id
description
name
nextStep {
id
name
taskArgument {
__typename
}
}
previousStep {
id
name
taskArgument {
__typename
}
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_playbook_upsert_create",
"description": "Example playbook upsert create",
"contentSet": {
"id": "1234"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "12345678-90ab-cdef-1234-567890abcdef",
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_step_1",
"description": "Example step 1: Initiation",
"nextStepID": "22345678-90ab-cdef-1234-567890abcde2",
"taskArgument": {
"instruction": {
"instruction": "# Initiate (start) this step, then confirm when complete."
}
}
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"description": "Example step 2: Processing",
"nextStepID": "32345678-90ab-cdef-1234-567890abcde3",
"taskArgument": {
"instruction": {
"instruction": "# Work (Process) this step, then confirm when complete."
}
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"name": "example_step_3",
"description": "Example step 3: Resolution",
"nextStepID": null,
"taskArgument": {
"instruction": {
"instruction": "# Finish (Resolve) this step, then confirm when complete."
}
}
}
]
}
}
Example response if an existing playbook was updated (isNewRecord equals false):
{
"data": {
"playbookUpsert": {
"playbook": {
"contentSet": {
"name": "Automate"
},
"createdTime": "2024-08-06T14:26:32.079536Z",
"description": "Example playbook upsert create",
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_playbook_upsert_create",
"startingStep": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_step_1",
"description": "Example step 1: Initiation"
},
"steps": [
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example step 1: Initiation",
"name": "example_step_1",
"nextStep": {
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
"previousStep": null
},
{
"id": "22345678-90ab-cdef-1234-567890abcde2",
"description": "Example step 2: Processing",
"name": "example_step_2",
"nextStep": {
"id": "32345678-90ab-cdef-1234-567890abcde3",
"name": "example_step_3",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
},
"previousStep": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_step_1",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
}
},
{
"id": "32345678-90ab-cdef-1234-567890abcde3",
"description": "Example step 3: Resolution",
"name": "example_step_3",
"nextStep": null,
"previousStep": {
"id": "22345678-90ab-cdef-1234-567890abcde2",
"name": "example_step_2",
"taskArgument": {
"__typename": "AutomateTaskArgumentInstruction"
}
}
}
]
},
"isNewRecord": false,
"error": null
}
}
}
Upsert (create or update by ID) a playbook schedule
(mutation.playbookScheduleUpsert)
The playbookScheduleUpsert mutation requires the Automate Playbook execute permission on the content set to which the associated playbook belongs to create or update a playbook schedule.
Create playbook schedule objects with a reference to a playbook ID to associate a given schedule with the playbook. Playbook runs for this playbook start based on the configured cron expression.
The following mutation creates a playbook schedule, because no playbook schedule ID is specified in the input. This playbook schedule is associated with playbook ID fedcba09-8765-4321-fedc-ba0987654321 and runs using the computer group management permissions of the user and persona submitting the mutation request.
mutation examplePlaybookScheduleCreate($input: PlaybookScheduleUpsertInput!) {
playbookScheduleUpsert(input: $input) {
playbookSchedule {
id
createdTime
cron
enabled
events {
createdTime
initiator {
user {
id
displayName
username
}
persona {
id
}
}
name
}
playbook {
id
contentSet {
id
}
description
name
}
scheduledBy {
user {
id
displayName
username
}
persona {
id
}
}
updatedTime
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"playbookID": "fedcba09-8765-4321-fedc-ba0987654321",
"cron": "0 0 1 1 1",
"enabled": true
}
}
Example response if a playbook schedule was created (isNewRecord equals true):
{
"data": {
"playbookScheduleUpsert": {
"playbookSchedule": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"createdTime": "2024-04-12T19:41:43.118622Z",
"cron": "0 0 1 1 1",
"enabled": true,
"events": [],
"playbook": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"contentSet": {
"id": "123"
},
"description": "Example playbook - Scheduling",
"name": "example_playbook_scheduling"
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-04-12T19:41:43.118622Z"
},
"isNewRecord": true,
"error": null
}
}
}
The following mutation updates an existing playbook schedule with the ID 12345678-90ab-cdef-1234-567890abcdef, changing the cron expression:
mutation examplePlaybookScheduleUpdate($input: PlaybookScheduleUpsertInput!) {
playbookScheduleUpsert(input: $input) {
playbookSchedule {
id
createdTime
cron
enabled
events {
createdTime
initiator {
user {
id
displayName
username
}
persona {
id
}
}
name
}
playbook {
id
contentSet {
id
}
description
name
}
scheduledBy {
user {
id
displayName
username
}
persona {
id
}
}
updatedTime
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"playbookID": "fedcba09-8765-4321-fedc-ba0987654321",
"cron": "0 0 1 1 2",
"enabled": true
}
}
Example response if an existing playbook schedule was updated (isNewRecord equals false):
{
"data": {
"playbookScheduleUpsert": {
"playbookSchedule": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"createdTime": "2024-04-12T19:41:43.118622Z",
"cron": "0 0 1 1 2",
"enabled": true,
"events": [],
"playbook": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"contentSet": {
"id": "123"
},
"description": "Example playbook - Scheduling",
"name": "example_playbook_scheduling"
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-04-12T19:41:43.118622Z"
},
"isNewRecord": false,
"error": null
}
}
}
Delete a playbook
(mutation.playbookPerformOperation)
Stability: 1.2 - Experimental (Release Candidate)
The playbookPerformOperation mutation requires the Automate Playbook write permission on the playbook content set to perform the delete operation on associated playbooks.
The following mutation performs the DELETE operation on the playbook that matches the ID. This deletes the playbook and future-scheduled playbook runs associated with the playbook, but does not delete in-progress playbook runs associated with the playbook.
mutation exampleDeletePlaybook($id: ID!, $operation: PlaybookOperation!) {
playbookPerformOperation(input: {id: $id, operation: $operation}) {
playbook {
activeRunsCount
author {
displayName
id
username
}
createdTime
description
id
lastModifiedBy {
displayName
id
username
}
name
revision
runs {
edges {
node {
createdTime
endTime
events {
createdTime
name
initiator {
user {
displayName
id
username
}
persona {
id
}
}
}
id
playbook {
id
}
runAs {
user {
displayName
id
username
}
persona {
id
}
}
scheduleStartTime
startTime
status
steps {
error
startTime
endTime
}
}
}
}
steps {
description
name
}
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"operation": "DELETE"
}
Example response:
{
"data": {
"playbookPerformOperation": {
"playbook": {
"activeRunsCount": 3,
"author": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"createdTime": "2023-08-18T19:23:34.008989Z",
"description": "Example playbook update",
"id": "12345678-90ab-cdef-1234-567890abcdef",
"lastModifiedBy": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"name": "example_playbook_update",
"revision": 3,
"runs": {
"edges": [
{
"node": {
"createdTime": "2023-08-18T19:47:44.041634Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:47:44.0394017-07:00",
"name": "CREATE",
"initiator": {
"user": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"persona": null
}
},
{
"createdTime": "2023-08-18T19:47:44.2224093Z",
"name": "START",
"initiator": null
},
{
"createdTime": "2023-08-18T19:47:44.3544268Z",
"name": "WAIT",
"initiator": null
}
],
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"user": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"persona": null
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:47:44.222409Z",
"status": "WAITING",
"steps": [
{
"error": "",
"startTime": "2023-08-18T19:47:44.3544268Z",
"endTime": null
},
{
"error": "",
"startTime": null,
"endTime": null
},
{
"error": "",
"startTime": null,
"endTime": null
}
]
}
},
{
"node": {
"createdTime": "2023-08-18T19:49:13.113955Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:49:13.1127798-07:00",
"name": "CREATE",
"initiator": {
"user": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"persona": null
}
},
{
"createdTime": "2023-08-18T19:49:13.1167809Z",
"name": "START",
"initiator": null
},
{
"createdTime": "2023-08-18T19:49:13.1397834Z",
"name": "WAIT",
"initiator": null
}
],
"id": "eedcba09-8765-4321-fedc-ba098765432e",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"user": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"persona": null
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:49:13.11678Z",
"status": "WAITING",
"steps": [
{
"error": "",
"startTime": "2023-08-18T19:49:13.1397834Z",
"endTime": null
},
{
"error": "",
"startTime": null,
"endTime": null
},
{
"error": "",
"startTime": null,
"endTime": null
}
]
}
},
{
"node": {
"createdTime": "2023-08-18T19:49:17.873797Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:49:17.8731032-07:00",
"name": "CREATE",
"initiator": {
"user": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"persona": null
}
},
{
"createdTime": "2023-08-18T19:49:18.1610911Z",
"name": "START",
"initiator": null
},
{
"createdTime": "2023-08-18T19:49:18.2150748Z",
"name": "WAIT",
"initiator": null
}
],
"id": "dedcba09-8765-4321-fedc-ba098765432d",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"user": {
"displayName": null,
"id": "1",
"username": "Administrator"
},
"persona": null
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:49:18.161091Z",
"status": "WAITING",
"steps": [
{
"error": "",
"startTime": "2023-08-18T19:49:18.2150748Z",
"endTime": null
},
{
"error": "",
"startTime": null,
"endTime": null
},
{
"error": "",
"startTime": null,
"endTime": null
}
]
}
}
]
},
"steps": [
{
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
{
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
{
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
}
],
"updatedTime": "2023-08-18T20:46:48.99018Z"
},
"error": null
}
}
}
Delete a playbook schedule
(mutation.playbookSchedulePerformOperation)
Stability: 1.2 - Experimental (Release Candidate)
The playbookSchedulePerformOperation mutation requires:
-
the Automate Playbook execute permission on the content set to which the associated playbook belongs, if you created the playbook schedule with your currently active persona, or
-
the Automate Playbook write permission on the content set to which the associated playbook belongs, if another user created the playbook schedule, or you created the playbook schedule with a different persona than your currently active persona
The following mutation performs the DELETE operation on the playbook schedule that matches the ID. This deletes a playbook schedule.
mutation exampleDeletePlaybookScheduleOperation($input: PlaybookSchedulePerformOperationInput!) {
playbookSchedulePerformOperation(input: $input) {
playbookSchedule {
id
createdTime
cron
enabled
events {
createdTime
initiator {
user {
id
displayName
username
}
persona {
id
}
}
name
}
playbook {
id
description
name
}
scheduledBy {
user {
id
displayName
username
}
persona {
id
}
}
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"operation": "DELETE"
}
}
Example response:
{
"data": {
"playbookSchedulePerformOperation": {
"playbookSchedule": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"createdTime": "2024-04-12T19:41:43.118622Z",
"cron": "0 0 1 1 1",
"enabled": true,
"events": [],
"playbook": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"description": "Example playbook - Scheduling",
"name": "example_playbook_scheduling"
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-04-12T20:13:30.603601Z"
},
"error": null
}
}
}
Disable an enabled playbook schedule
(mutation.playbookSchedulePerformOperation)
Stability: 1.2 - Experimental (Release Candidate)
The playbookSchedulePerformOperation mutation requires:
-
the Automate Playbook execute or Automate Playbook write permission on the content set to which the associated playbook belongs, if you created the playbook schedule with your currently active persona, or
-
the Automate Playbook write permission on the content set to which the associated playbook belongs, if another user created the playbook schedule, or you created the playbook schedule with a different persona than your currently active persona
The following mutation performs the DISABLE operation on the playbook schedule that matches the ID. This disables an enabled playbook schedule. No playbook runs are started from disabled playbook schedules. This has no effect on disabled playbook schedules.
mutation exampleDisablePlaybookScheduleOperation($input: PlaybookSchedulePerformOperationInput!) {
playbookSchedulePerformOperation(input: $input) {
playbookSchedule {
id
createdTime
cron
enabled
events {
createdTime
initiator {
user {
id
displayName
username
}
persona {
id
}
}
name
}
playbook {
id
description
name
}
scheduledBy {
user {
id
displayName
username
}
persona {
id
}
}
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"operation": "DISABLE"
}
}
Example response:
{
"data": {
"playbookSchedulePerformOperation": {
"playbookSchedule": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"createdTime": "2024-04-12T19:41:43.118622Z",
"cron": "0 0 1 1 1",
"enabled": false,
"events": [
{
"createdTime": "2024-12-03T19:17:14.056452452Z",
"initiator": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"name": "DISABLED_BY_USER"
}
],
"playbook": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"description": "Example playbook - Scheduling",
"name": "example_playbook_scheduling"
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-04-12T20:13:30.603601Z"
},
"error": null
}
}
}
Enable a disabled playbook schedule
(mutation.playbookSchedulePerformOperation)
Stability: 1.2 - Experimental (Release Candidate)
The playbookSchedulePerformOperation mutation requires:
-
the Automate Playbook execute permission on the content set to which the associated playbook belongs, if you created the playbook schedule with your currently active persona
The following mutation performs the ENABLE operation on the playbook schedule that matches the ID. This enables a disabled playbook schedule. This has no effect on enabled playbook schedules.
mutation exampleEnablePlaybookScheduleOperation($input: PlaybookSchedulePerformOperationInput!) {
playbookSchedulePerformOperation(input: $input) {
playbookSchedule {
id
createdTime
cron
enabled
events {
createdTime
initiator {
user {
id
displayName
username
}
persona {
id
}
}
name
}
playbook {
id
description
name
}
scheduledBy {
user {
id
displayName
username
}
persona {
id
}
}
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"operation": "ENABLE"
}
}
Example response:
{
"data": {
"playbookSchedulePerformOperation": {
"playbookSchedule": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"createdTime": "2024-04-12T19:41:43.118622Z",
"cron": "0 0 1 1 1",
"enabled": true,
"events": [
{
"createdTime": "2024-12-03T19:17:14.056452452Z",
"initiator": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"name": "DISABLED_BY_USER"
}
],
"playbook": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"description": "Example playbook - Scheduling",
"name": "example_playbook_scheduling"
},
"scheduledBy": {
"user": {
"id": "1",
"displayName": null,
"username": "admin"
},
"persona": null
},
"updatedTime": "2024-04-12T20:13:30.603601Z"
},
"error": null
}
}
}
End a playbook run
(mutation.playbookRunPerformOperation)
Stability: 1.2 - Experimental (Release Candidate)
The playbookRunPerformOperation mutation requires the Automate Playbook execute permission on the playbook content set.
The following mutation performs the END operation on the playbook run that matches the ID. This ends a playbook run.
mutation exampleEndPlaybookRunOperation($input: PlaybookRunPerformOperationInput!) {
playbookRunPerformOperation(
input: $input
) {
playbookRun {
createdTime
endTime
events {
createdTime
initiator {
persona {
id
}
user {
id
}
}
name
}
id
playbook {
id
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
confirmationResult {
comment
completedUser {
id
}
completionTime
}
endTime
playbookStep {
description
name
}
startTime
status
error
}
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"operation": "END"
}
}
Example response:
{
"data": {
"playbookRunPerformOperation": {
"playbookRun": {
"createdTime": "2023-08-18T19:49:13.113955Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:49:13.1127798-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-18T19:49:13.1167809Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-18T19:49:13.1397834Z",
"initiator": null,
"name": "WAIT"
}
],
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:49:13.11678Z",
"status": "ENDING",
"steps": [
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
"startTime": "2023-08-18T19:49:13.1397834Z",
"status": "WAITING",
"error": ""
},
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
},
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
}
]
}
}
}
}
Pause a running playbook run
(mutation.playbookRunPerformOperation)
Stability: 1.2 - Experimental (Release Candidate)
The playbookRunPerformOperation mutation requires the Automate Playbook execute permission on the playbook content set.
The following mutation performs the PAUSE operation on the playbook run that matches the ID. This pauses a running playbook run.
mutation examplePausePlaybookRunOperation($input: PlaybookRunPerformOperationInput!) {
playbookRunPerformOperation(
input: $input
) {
playbookRun {
createdTime
endTime
events {
createdTime
initiator {
persona {
id
}
user {
id
}
}
name
}
id
playbook {
id
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
confirmationResult {
comment
completedUser {
id
}
completionTime
}
endTime
playbookStep {
description
name
}
startTime
status
error
}
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"operation": "PAUSE"
}
}
Example response:
{
"data": {
"playbookRunPerformOperation": {
"playbookRun": {
"createdTime": "2023-08-18T19:49:13.113955Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:49:13.1127798-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-18T19:49:13.1167809Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-18T19:49:13.1397834Z",
"initiator": null,
"name": "WAIT"
}
],
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:49:13.11678Z",
"status": "PAUSING",
"steps": [
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
"startTime": "2023-08-18T19:49:13.1397834Z",
"status": "WAITING",
"error": ""
},
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
},
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
}
]
}
}
}
}
Resume a paused playbook run
(mutation.playbookRunPerformOperation)
Stability: 1.2 - Experimental (Release Candidate)
The playbookRunPerformOperation mutation requires the Automate Playbook execute permission on the playbook content set.
The following mutation performs the RESUME operation on the playbook run that matches the ID. This resumes a paused playbook run.
mutation exampleResumePlaybookRunOperation($input: PlaybookRunPerformOperationInput!) {
playbookRunPerformOperation(
input: $input
) {
playbookRun {
createdTime
endTime
events {
createdTime
initiator {
persona {
id
}
user {
id
}
}
name
}
id
playbook {
id
}
runAs {
persona {
id
}
user {
id
}
}
scheduleStartTime
startTime
status
steps {
confirmationResult {
comment
completedUser {
id
}
completionTime
}
endTime
playbookStep {
description
name
}
startTime
status
error
}
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"operation": "RESUME"
}
}
Example response:
{
"data": {
"playbookRunPerformOperation": {
"playbookRun": {
"createdTime": "2023-08-18T19:49:13.113955Z",
"endTime": null,
"events": [
{
"createdTime": "2023-08-18T12:49:13.1127798-07:00",
"initiator": {
"persona": null,
"user": {
"id": "1"
}
},
"name": "CREATE"
},
{
"createdTime": "2023-08-18T19:49:13.1167809Z",
"initiator": null,
"name": "START"
},
{
"createdTime": "2023-08-18T19:49:13.1397834Z",
"initiator": null,
"name": "WAIT"
}
],
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"runAs": {
"persona": null,
"user": {
"id": "1"
}
},
"scheduleStartTime": null,
"startTime": "2023-08-18T19:49:13.11678Z",
"status": "RESUMING",
"steps": [
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 1 update: Initiation",
"name": "example_step_1"
},
"startTime": "2023-08-18T19:49:13.1397834Z",
"status": "WAITING",
"error": ""
},
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 2 update: Processing",
"name": "example_step_2"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
},
{
"confirmationResult": null,
"endTime": null,
"playbookStep": {
"description": "Example step 3 update: Resolution",
"name": "example_step_3"
},
"startTime": null,
"status": "NOT_STARTED",
"error": ""
}
]
}
}
}
}
Update playbook content set membership
(mutation.playbookContentSetUpdate)
Stability: 1.2 - Experimental (Release Candidate)
The playbookContentSetUpdate mutation requires the Automate Playbook write permission on the playbook content set to update a playbook content set membership.
The following mutation updates the playbook with the ID 12345678-90ab-cdef-1234-567890abcdef to belong to the content set with the ID 2:
mutation exampleChangePlaybookContentSet($input: PlaybookContentSetUpdateInput!) {
playbookContentSetUpdate(input: $input) {
playbook {
id
name
contentSet {
id
name
description
}
description
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"contentSet": {
"id": "2"
}
}
}
Example response:
{
"data": {
"playbookContentSetUpdate": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example playbook content set update",
"contentSet": {
"id": "2",
"name": "Default",
"description": null
},
"description": "example description",
"updatedTime": "2024-11-15T20:07:29.166156Z"
},
"error": null
}
}
}
Add Install Patch step to a playbook
(mutation.upsertPlaybook (input.steps))
Stability: 1.1 - Experimental (Active Development)
The playbookUpsert mutation requires the Automate Playbook write permission on the playbook content set to create or update a playbook.
The Install Patch step requires the following permissions:
-
Computer Group read permission
-
Patch Deployment execute permission
-
Patch Deployment write permission
-
Sensor read permission
Depending on the deployment, the Install Patch step might require additional Patch permissions.
The Install Patch step deploys a patch to targeted endpoints. The Install Patch step always creates a one-time deployment. The patch content download and patch deployment both start when the Install Patch step starts. You cannot configure an Install Patch step to create an ongoing patch deployment, configure a start time or end time, or configure patch content downloaded to endpoints prior to the patch deployment start.
The following mutation creates a playbook, because no ID is specified in the input, and defines an Install Patch step that deploys a Windows patch on the targeted endpoints belonging to the All Windows computer group:
mutation exampleUpsertPlaybookInstallPatch($input: PlaybookUpsertInput!) {
playbookUpsert(input: $input) {
playbook {
id
name
steps {
description
name
taskArgument {
__typename
}
}
}
isNewRecord
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_playbook_install_patch",
"description": "Example playbook - Install Patch step",
"contentSet": {
"id": "123"
},
"notificationSettings": {
"email": {
"events": [
"START",
"END"
],
"recipients": [
"host@example.com"
]
}
},
"startingStepID": "fedcba09-8765-4321-fedc-ba0987654321",
"steps": [
{
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"name": "example_install_patch_step",
"description": "Example step 1: Install Patch on Windows endpoints",
"endpointTargeting": {
"customTargeting": {
"memberOf": {
"name": "All Windows"
},
"negated": false,
"any": true
}
},
"taskArgument": {
"patchInstallDeployment": {
"completionPercentage": 1,
"patchDeploymentConfig": {
"contentDeploymentType": "MANUAL_SELECTION",
"contentSet": {
"id": "1"
},
"description": "example Patch deployment for Windows",
"distributeOver": {
"seconds": 900
},
"eussHideFromActivity": false,
"name": "example_deployment_windows",
"overrideBlocklists": false,
"overrideMaintenanceWindows": false,
"patches": [],
"patchLists": [
{
"id": "12",
"version": null
}
],
"platform": "WINDOWS",
"postDeploymentNotification": {
"body": "Example body",
"countdownToDeadline": {
"seconds": 600
},
"includeFrame": false,
"notificationPeriodDuration": {
"seconds": 7200
},
"postponeOptions": {
"durationOne": {
"seconds": 1800
},
"durationTwo": {
"seconds": 1200
},
"durationThree": {
"seconds": 600
}
},
"title": "Example title",
"translations": [
{
"body": "ejemplo",
"languageCode": "es",
"title": "ejemplo"
}
]
},
"restart": true
},
"deploymentDuration": {
"nanoseconds": 0,
"seconds": 86400
},
"skipVerification": false
}
}
}
]
}
}
Example response:
{
"data": {
"playbookUpsert": {
"playbook": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"name": "example_playbook_install_patch",
"steps": [
{
"description": "Example step 1: Install Patch on Windows endpoints",
"name": "example_install_patch_step",
"taskArgument": {
"__typename": "AutomateTaskArgumentPatchInstallDeployment"
}
}
]
},
"isNewRecord": true,
"error": null
}
}
}
Benchmark examples
The following queries retrieve endpoints and use Benchmark to also retrieve related risk overview or risk vector information.
Certain risk vector queries require additional Tanium solutions. For more information, see Solution dependencies.
Get endpoint with Risk Score 2.0 information
(query.endpoints.edges.node.sensorReadings (sensors.filters))
The following query retrieves the first endpoint with associated Benchmark overview information.
query exampleGetEndpoints($first: Int) {
endpoints(first: $first) {
edges {
node {
name
sensorReadings(sensors: [{ name: "Tanium Risk Score" }]) {
columns {
sensor {
name
}
name
values
}
}
}
}
}
}
Include a variable for the number of endpoints to return in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-endpoint",
"sensorReadings": {
"columns": [
{
"sensor": {
"name": "Tanium Risk Score"
},
"name": "Risk Score",
"values": [
"438"
]
},
{
"sensor": {
"name": "Tanium Risk Score"
},
"name": "Critical Severity Vulnerabilities Score",
"values": [
"665"
]
},
{
"sensor": {
"name": "Tanium Risk Score"
},
"name": "High Severity Vulnerabilities Score",
"values": [
"665"
]
},
{
"sensor": {
"name": "Tanium Risk Score"
},
"name": "Compliance Failures Score",
"values": [
"486"
]
},
{
"sensor": {
"name": "Tanium Risk Score"
},
"name": "Lateral Movement Risk Score",
"values": [
""
]
},
{
"sensor": {
"name": "Tanium Risk Score"
},
"name": "Insecure TLS/SSL Score",
"values": [
"0"
]
},
{
"sensor": {
"name": "Tanium Risk Score"
},
"name": "Expired Certificates Score",
"values": [
"0"
]
}
]
}
}
}
]
}
}
}
Comply examples
The following queries retrieve endpoints and use Comply to also retrieve associated compliance findings or vulnerability findings.
Get endpoints with compliance findings information
(query.endpoints.edges.node.compliance.complianceFindings)
Get endpoint compliance findings information
(query.endpoints.edges.node.compliance.complianceFindings)
The following query retrieves the first endpoint and associated compliance findings.
query exampleEndpointComplianceFindings($first: Int!) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
complianceFindings {
category
excepted
firstFoundDate
id
lastScanDate
profile
profileVersion
rule
ruleId
standard
standardVersion
state
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the cursor variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "comply-findings",
"ipAddress": "192.0.2.10",
"compliance": {
"complianceFindings": [
{
"category": "Fail",
"excepted": false,
"firstFoundDate": "2023-01-01",
"id": "CIS Microsoft Windows 10 Enterprise Release 20H2 Benchmark;1.10.1;MB Custom Win10;xccdf_com.tanium.comply_tailoring_1639024882628;xccdf_org.cisecurity.benchmarks_rule_18.9.4.1_L2_Ensure_Allow_a_Windows_app_to_share_application_data_between_users_is_set_to_Disabled",
"lastScanDate": "2023-02-02",
"profile": "MB Custom Win10",
"profileVersion": "xccdf_com.tanium.comply_tailoring_1639024882628",
"rule": "(L2) Ensure 'Allow a Windows app to share application data between users' is set to 'Disabled'",
"ruleId": "xccdf_org.cisecurity.benchmarks_rule_18.9.4.1_L2_Ensure_Allow_a_Windows_app_to_share_application_data_between_users_is_set_to_Disabled",
"standard": "CIS Microsoft Windows 10 Enterprise Release 20H2 Benchmark",
"standardVersion": "1.10.1",
"state": "fail"
}
]
}
}
}
],
"pageInfo": {
"startCursor": "NTc2NTM4MDow",
"endCursor": "NTc2NTM4MDoxOQ==",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get endpoint compliance findings information with per-test investigation results
(query.endpoints.edges.node.compliance.complianceFindings)
The following query retrieves the first endpoint and associated compliance findings, including the per-test investigation results (actual values, expected objects, and expected states) behind each finding.
query exampleEndpointComplianceFindingsWithTests($first: Int!) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
complianceFindings {
category
excepted
firstFoundDate
id
lastScanDate
profile
profileVersion
rule
ruleId
standard
standardVersion
state
tests {
testId
testResult
actualValues
expectedObjects
expectedStates
}
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the cursor variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "comply-findings",
"ipAddress": "192.0.2.10",
"compliance": {
"complianceFindings": [
{
"category": "Fail",
"excepted": false,
"firstFoundDate": "2023-01-01",
"id": "CIS Microsoft Windows 10 Enterprise Release 20H2 Benchmark;1.10.1;MB Custom Win10;xccdf_com.tanium.comply_tailoring_1639024882628;xccdf_org.cisecurity.benchmarks_rule_18.9.4.1_L2_Ensure_Allow_a_Windows_app_to_share_application_data_between_users_is_set_to_Disabled",
"lastScanDate": "2023-02-02",
"profile": "MB Custom Win10",
"profileVersion": "xccdf_com.tanium.comply_tailoring_1639024882628",
"rule": "(L2) Ensure 'Allow a Windows app to share application data between users' is set to 'Disabled'",
"ruleId": "xccdf_org.cisecurity.benchmarks_rule_18.9.4.1_L2_Ensure_Allow_a_Windows_app_to_share_application_data_between_users_is_set_to_Disabled",
"standard": "CIS Microsoft Windows 10 Enterprise Release 20H2 Benchmark",
"standardVersion": "1.10.1",
"state": "fail",
"tests": [
{
"testId": "oval:com.tanium.comply:tst:100234",
"testResult": "fail",
"actualValues": "1",
"expectedObjects": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy!LetAppsSyncWithDevices",
"expectedStates": "0"
}
]
}
]
}
}
}
],
"pageInfo": {
"startCursor": "NTc2NTM4MDow",
"endCursor": "NTc2NTM4MDoxOQ==",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get filtered endpoint compliance findings information
(query.endpoints.edges.node.compliance.complianceFindings)
The following query retrieves the first endpoint with a compliance finding category of Error and FirstFoundDate greater than or equal to 2025-07-10 and then returns the associated compliance findings for that endpoint with a category of Error.
query exampleFilterComplianceFindings($first: Int) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
complianceFindings(
filter: {any: false, filters: [{path: "category", value: "Error"}, {path: "firstFoundDate", op: GTE, value: "2025-07-10"}]}
) {
category
firstFoundDate
id
lastScanDate
profile
profileVersion
rule
ruleId
standard
standardVersion
state
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "IsolatedVM-Pdejesus",
"ipAddress": "192.10.1.102",
"compliance": {
"complianceFindings": [
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-253275r958478_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "Internet Information System (IIS) or its subcomponents must not be installed on a workstation.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-253275r958478_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-253278r958480_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "The Telnet Client must not be installed on the system.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-253278r958480_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-253287r958478_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "The Server Message Block (SMB) v1 protocol must be disabled on the SMB server.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-253287r958478_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-253279r958480_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "The TFTP Client must not be installed on the system.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-253279r958480_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-253285r958478_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "The Windows PowerShell 2.0 feature must be disabled on the system.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-253285r958478_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-253286r958478_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "The Server Message Block (SMB) v1 protocol must be disabled on the system.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-253286r958478_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-253288r958478_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "The Server Message Block (SMB) v1 protocol must be disabled on the SMB client.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-253288r958478_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2025-07-12",
"id": "Microsoft Windows 11 STIG SCAP Benchmark;002.001;I - Mission Critical Public;1;xccdf_mil.disa.stig_rule_SV-256893r958552_rule",
"lastScanDate": "2025-07-12",
"profile": "I - Mission Critical Public",
"profileVersion": "1",
"rule": "Internet Explorer must be disabled for Windows 11.",
"ruleId": "xccdf_mil.disa.stig_rule_SV-256893r958552_rule",
"standard": "Microsoft Windows 11 STIG SCAP Benchmark",
"standardVersion": "002.001",
"state": "error"
}
]
}
}
}
],
"pageInfo": {
"startCursor": "MTQ2MDIwMzQ3OjA=",
"endCursor": "MTQ2MDIwMzQ3OjA=",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get filtered endpoint compliance findings information from filtered set of endpoints
(query.endpoints.edges.node.compliance.complianceFindings)
The following query retrieves the first endpoint that is a member of the All Windows computer group, with a compliance findings category of Error and standardVersion value of 1.1.1, and returns that endpoint's associated compliance findings with a category of Error and standardVersion value of 1.1.1.
query exampleFilterWindowsComplianceFindings($first: Int!) {
endpoints(first: $first, filter: {memberOf: {name: "All Windows"}}) {
edges {
node {
name
ipAddress
compliance {
complianceFindings(
filter: {any: false, filters: [{path: "category", value: "Error"}, {path: "standardVersion", value: "1.1.1"}]}
) {
category
firstFoundDate
id
lastScanDate
profile
profileVersion
rule
ruleId
standard
standardVersion
state
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the cursor variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-2",
"ipAddress": "192.0.2.20",
"compliance": {
"complianceFindings": [
{
"category": "Error",
"firstFoundDate": "2023-01-01",
"id": "CIS Microsoft IIS 10 Benchmark;1.1.1;Level 1 - IIS 10;1;xccdf_org.cisecurity.benchmarks_rule_4.6_L1_Ensure_HTTP_Trace_Method_is_disabled",
"lastScanDate": "2023-02-02",
"profile": "Level 1 - IIS 10",
"profileVersion": "1",
"rule": "(L1) Ensure 'HTTP Trace Method' is disabled",
"ruleId": "xccdf_org.cisecurity.benchmarks_rule_4.6_L1_Ensure_HTTP_Trace_Method_is_disabled",
"standard": "CIS Microsoft IIS 10 Benchmark",
"standardVersion": "1.1.1",
"state": "error"
},
{
"category": "Error",
"firstFoundDate": "2023-01-01",
"id": "CIS Microsoft IIS 10 Benchmark;1.1.1;Level 1 - IIS 10;1;xccdf_org.cisecurity.benchmarks_rule_3.4_L1_Ensure_IIS_HTTP_detailed_errors_are_hidden_from_displaying_remotely",
"lastScanDate": "2023-02-02",
"profile": "Level 1 - IIS 10",
"profileVersion": "1",
"rule": "(L1) Ensure IIS HTTP detailed errors are hidden from displaying remotely",
"ruleId": "xccdf_org.cisecurity.benchmarks_rule_3.4_L1_Ensure_IIS_HTTP_detailed_errors_are_hidden_from_displaying_remotely",
"standard": "CIS Microsoft IIS 10 Benchmark",
"standardVersion": "1.1.1",
"state": "error"
}
]
}
}
}
],
"pageInfo": {
"startCursor": "NjA5ODg0MDow",
"endCursor": "NjA5ODg0MDow",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get endpoints with vulnerability findings information
(query.endpoints.edges.node.compliance.cveFindings)
Get endpoint vulnerability findings information
(query.endpoints.edges.node.compliance.cveFindings)
The following query retrieves the first endpoint and associated vulnerability findings, including CVSS v2 score and severity, and related CISA KEV information.
query exampleEndpointVulnerabilityCVSSv2($first: Int!) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
cveFindings {
absoluteFirstFoundDate
affectedProducts
cisaDateAdded
cisaDueDate
cisaNotes
cisaProduct
cisaRequiredAction
cisaShortDescription
cisaVendor
cisaVulnerabilityName
cpes
cveId
cveYear
cvssScore
detectedProducts
detectedCPEs
excepted
firstFound
isCisaKev
lastFound
scanType
severity
summary
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-one",
"ipAddress": "192.10.80.10",
"compliance": {
"cveFindings": [
{
"absoluteFirstFoundDate": "2024-07-03",
"affectedProducts": [
""
],
"cisaDateAdded": null,
"cisaDueDate": null,
"cisaNotes": "",
"cisaProduct": "",
"cisaRequiredAction": "",
"cisaShortDescription": "",
"cisaVendor": "",
"cisaVulnerabilityName": "",
"cpes": [
""
],
"cveId": "CVE-2022-1966",
"cveYear": "2022",
"cvssScore": null,
"detectedProducts": [
"kernel",
"kernel-core",
"kernel-modules",
"oraclelinux-release"
],
"detectedCPEs": [
""
],
"excepted": false,
"firstFound": "2024-07-03",
"isCisaKev": false,
"lastFound": "2025-07-11",
"scanType": "oval",
"severity": "Unscored",
"summary": "A description for this vulnerability has not yet been provided."
}
]
}
}
}
],
"pageInfo": {
"startCursor": "MTQ2NTkwMjQzOjA=",
"endCursor": "MTQ2NTkwMjQzOjA=",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get endpoint vulnerability findings information (CVSS v3 and CISA KEV)
(query.endpoints.edges.node.compliance.cveFindings)
The following query retrieves the first endpoint and associated vulnerability findings, including CVSS v3 score and severity, and related CISA KEV information.
query exampleEndpointVulnerabilityCVSSv3($first: Int!) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
cveFindings {
absoluteFirstFoundDate
affectedProducts
cisaDateAdded
cisaDueDate
cisaNotes
cisaProduct
cisaRequiredAction
cisaShortDescription
cisaVendor
cisaVulnerabilityName
cpes
cveId
cveYear
cvssScoreV3
cvssTemporalScoreV3
detectedProducts
detectedCPEs
excepted
firstFound
isCisaKev
lastFound
scanType
severityV3
summary
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example.host.two",
"ipAddress": "1.2.3.4",
"compliance": {
"cveFindings": [
{
"absoluteFirstFoundDate": "2025-10-30",
"affectedProducts": [
"Microsoft .NET Framework",
"Microsoft .NET Framework 4.7.2"
],
"cisaDateAdded": "2025-10-14",
"cisaDueDate": "2025-11-04",
"cisaNotes": "https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2025-24990 ; https://nvd.nist.gov/vuln/detail/CVE-2025-24990",
"cisaProduct": "Windows",
"cisaRequiredAction": "Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.",
"cisaShortDescription": "Microsoft Windows Agere Modem Driver contains an untrusted pointer dereference vulnerability that allows for privilege escalation. An attacker who successfully exploited this vulnerability could gain administrator privileges.",
"cisaVendor": "Microsoft",
"cisaVulnerabilityName": "Microsoft Windows Untrusted Pointer Dereference Vulnerability",
"cpes": [
"cpe:/o:microsoft:windows_10_1507:::~~~~x64~",
"cpe:/o:microsoft:windows_10_1607:::~~~~x64~",
"cpe:/o:microsoft:windows_10_1809:::~~~~x64~",
"cpe:/o:microsoft:windows_10_21h2:::~~~~x64~",
"cpe:/o:microsoft:windows_10_22h2:::~~~~x64~",
"cpe:/o:microsoft:windows_11_22h2:::~~~~x64~",
"cpe:/o:microsoft:windows_11_23h2:::~~~~x64~",
"cpe:/o:microsoft:windows_11_24h2:::~~~~x64~",
"cpe:/o:microsoft:windows_11_25h2:::~~~~x64~",
"cpe:/o:microsoft:windows_server_2008:-:sp2:~~~~x64~",
"cpe:/o:microsoft:windows_server_2008:r2:sp1:~~~~x64~",
"cpe:/o:microsoft:windows_server_2012:-",
"cpe:/o:microsoft:windows_server_2012:r2",
"cpe:/o:microsoft:windows_server_2016",
"cpe:/o:microsoft:windows_server_2019",
"cpe:/o:microsoft:windows_server_2022",
"cpe:/o:microsoft:windows_server_2022_23h2",
"cpe:/o:microsoft:windows_server_2025"
],
"cveId": "CVE-2025-24990",
"cveYear": "2025",
"cvssScoreV3": 7.8,
"cvssTemporalScoreV3": 7.8,
"detectedProducts": [
"Operating System"
],
"detectedCPEs": [
"cpe:/o:microsoft:windows_11:23h2::x64"
],
"excepted": false,
"firstFound": "2025-10-30",
"isCisaKev": true,
"lastFound": "2025-12-03",
"scanType": "oval",
"severityV3": "High",
"summary": "Microsoft is aware of vulnerabilities in the third party Agere Modem driver that ships natively with supported Windows operating systems. This is an announcement of the upcoming removal of ltmdm64.sys driver. The driver has been removed in the October cumulative update.\nFax modem hardware dependent on this specific driver will no longer work on Windows.\nMicrosoft recommends removing any existing dependencies on this hardware."
}
]
}
}
}
],
"pageInfo": {
"startCursor": "ODU5Nzk2MDow",
"endCursor": "ODU5Nzk2MDow",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get endpoint vulnerability findings information (CVSS v4 and CISA KEV)
The following query retrieves the first endpoint and associated vulnerability findings, including CVSS v4 score and severity, and related CISA KEV information.
query exampleEndpointVulnerabilityCVSSv4($first: Int!) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
cveFindings {
absoluteFirstFoundDate
affectedProducts
cpes
cveId
cveYear
cvssScoreV4
firstFound
lastFound
scanType
cvssSeverityV4
cvssThreatScoreV4
cvssVectorV4
cwes {
id
name
}
mitreAttacks {
id
name
}
alias
epssScore
epssPercentile
epssPercentileRange
maxMaturity
createdDate
modifiedDate
mitreLink
nistLink
secpodLink
solutionLinks
remediation
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-one",
"ipAddress": "192.168.4.100",
"compliance": {
"cveFindings": [
{
"absoluteFirstFoundDate": "2025-10-31",
"affectedProducts": [
"Oracle Coherence",
"netty"
],
"cpes": [
"cpe:/a:netty:netty"
],
"cveId": "CVE-2025-55163",
"cveYear": "2025",
"cvssScoreV4": 8.2,
"firstFound": "2025-10-31",
"lastFound": "2025-11-25",
"scanType": "sbom",
"cvssSeverityV4": "High",
"cvssThreatScoreV4": 6.9,
"cvssVectorV4": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"cwes": [
{
"id": "CWE-770",
"name": "Allocation of Resources Without Limits or Throttling"
}
],
"mitreAttacks": [
{
"id": "T1210",
"name": "T1210"
}
],
"alias": "MadeYouReset",
"epssScore": 0.00076,
"epssPercentile": 0.19072,
"epssPercentileRange": "0-25th percentile",
"maxMaturity": "Proof of Concept",
"createdDate": "2025-08-13",
"modifiedDate": "2025-11-04",
"mitreLink": "https://www.cve.org/CVERecord?id=CVE-2025-55163",
"nistLink": "https://nvd.nist.gov/vuln/detail/CVE-2025-55163",
"secpodLink": "https://scaprepo.com/view.jsp?id=CVE-2025-55163",
"solutionLinks": [
"https://github.com/netty/netty/security/advisories/GHSA-prj3-ccx8-p6x4",
"http://www.openwall.com/lists/oss-security/2025/08/16/1",
"https://www.kb.cert.org/vuls/id/767506"
],
"remediation": "The vendor identifies the following advisory that may contain remediation information. Apply the patches as necessary: https://github.com/netty/netty/security/advisories/GHSA-prj3-ccx8-p6x4,http://www.openwall.com/lists/oss-security/2025/08/16/1,https://www.kb.cert.org/vuls/id/767506"
}
]
}
}
}
],
"pageInfo": {
"startCursor": "MjE1ODU0NjUzOjA=",
"endCursor": "MjE1ODU0NjUzOjA=",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get endpoint vulnerability findings information with per-test investigation results
The following query retrieves the first endpoint and associated vulnerability findings, including CVSS v4 score and severity, related CISA KEV information, and the per-test investigation results (actual values, expected objects, and expected states) behind each finding.
query exampleEndpointVulnerabilityCVSSv4WithTests($first: Int!) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
cveFindings {
absoluteFirstFoundDate
affectedProducts
cpes
cveId
cveYear
cvssScoreV4
firstFound
lastFound
scanType
cvssSeverityV4
cvssThreatScoreV4
cvssVectorV4
cwes {
id
name
}
mitreAttacks {
id
name
}
alias
epssScore
epssPercentile
epssPercentileRange
maxMaturity
createdDate
modifiedDate
mitreLink
nistLink
secpodLink
solutionLinks
remediation
tests {
testId
testResult
actualValues
expectedObjects
expectedStates
}
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-one",
"ipAddress": "192.168.4.100",
"compliance": {
"cveFindings": [
{
"absoluteFirstFoundDate": "2025-10-31",
"affectedProducts": [
"Oracle Coherence",
"netty"
],
"cpes": [
"cpe:/a:netty:netty"
],
"cveId": "CVE-2025-55163",
"cveYear": "2025",
"cvssScoreV4": 8.2,
"firstFound": "2025-10-31",
"lastFound": "2025-11-25",
"scanType": "sbom",
"cvssSeverityV4": "High",
"cvssThreatScoreV4": 6.9,
"cvssVectorV4": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"cwes": [
{
"id": "CWE-770",
"name": "Allocation of Resources Without Limits or Throttling"
}
],
"mitreAttacks": [
{
"id": "T1210",
"name": "T1210"
}
],
"alias": "MadeYouReset",
"epssScore": 0.00076,
"epssPercentile": 0.19072,
"epssPercentileRange": "0-25th percentile",
"maxMaturity": "Proof of Concept",
"createdDate": "2025-08-13",
"modifiedDate": "2025-11-04",
"mitreLink": "https://www.cve.org/CVERecord?id=CVE-2025-55163",
"nistLink": "https://nvd.nist.gov/vuln/detail/CVE-2025-55163",
"secpodLink": "https://scaprepo.com/view.jsp?id=CVE-2025-55163",
"solutionLinks": [
"https://github.com/netty/netty/security/advisories/GHSA-prj3-ccx8-p6x4",
"http://www.openwall.com/lists/oss-security/2025/08/16/1",
"https://www.kb.cert.org/vuls/id/767506"
],
"remediation": "The vendor identifies the following advisory that may contain remediation information. Apply the patches as necessary: https://github.com/netty/netty/security/advisories/GHSA-prj3-ccx8-p6x4,http://www.openwall.com/lists/oss-security/2025/08/16/1,https://www.kb.cert.org/vuls/id/767506",
"tests": [
{
"testId": "oval:com.tanium.comply:tst:200451001",
"testResult": "true",
"actualValues": "4.1.112.0",
"expectedObjects": "netty-codec-http2.jar",
"expectedStates": "less than 4.1.123.0"
}
]
}
]
}
}
}
],
"pageInfo": {
"startCursor": "MjE1ODU0NjUzOjA=",
"endCursor": "MjE1ODU0NjUzOjA=",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get filtered endpoint vulnerability findings information
(query.endpoints.edges.node.compliance.cveFindings)
The following query retrieves the first endpoint with a vulnerability findings cveYear of 2020 and firstFound greater than or equal to 2025-07-10 and then returns the associated vulnerability findings for that endpoint with a finding cveYear of 2020.
query exampleFilterEndpointVulnerability($first: Int!) {
endpoints(first: $first) {
edges {
node {
name
ipAddress
compliance {
cveFindings(
filter: {any: false, filters: [{path: "cveYear", value: "2020"}, {path: "firstFound", op: GTE, value: "2025-07-10"}]}
) {
absoluteFirstFoundDate
cveId
cveYear
cvssScore
detectedProducts
detectedCPEs
firstFound
lastFound
severity
summary
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the cursor variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-1",
"ipAddress": "192.30.80.203",
"compliance": {
"cveFindings": [
{
"absoluteFirstFoundDate": "2025-07-14",
"cveId": "CVE-2020-0817",
"cveYear": "2020",
"cvssScore": null,
"detectedProducts": [
"Operating System"
],
"detectedCPEs": [
"cpe:/o:microsoft:windows_10:1507::x64"
],
"firstFound": "2025-07-14",
"lastFound": "2025-07-14",
"severity": "Unscored",
"summary": "A remote code execution vulnerability exists in the Windows Remote Desktop Client when a user connects to a malicious server. An attacker who successfully exploited this vulnerability could execute arbitrary code on the computer of the connecting client. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. NOTE: This vulnerability is currently awaiting analysis."
},
{
"absoluteFirstFoundDate": "2025-07-14",
"cveId": "CVE-2020-0818",
"cveYear": "2020",
"cvssScore": null,
"detectedProducts": [
"Operating System"
],
"detectedCPEs": [
"cpe:/o:microsoft:windows_10:1507::x64"
],
"firstFound": "2025-07-14",
"lastFound": "2025-07-14",
"severity": "Unscored",
"summary": "An elevation of privilege vulnerability exists in the way that the sysmain.dll handles objects in memory. An attacker who successfully exploited the vulnerability could execute code with elevated permissions. NOTE: This vulnerability is currently awaiting analysis."
}
]
}
}
}
],
"pageInfo": {
"startCursor": "MTQ2NTkxODE5OjA=",
"endCursor": "MTQ2NTkxODE5OjA=",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get filtered endpoint vulnerability findings information from filtered set of endpoints
(query.endpoints.edges.node.compliance.cveFindings)
The following query retrieves the first endpoint that is a member of the All Windows computer group, with a vulnerability findings cveYear of 2020 and cvssScore value of 5, and returns that endpoint's associated vulnerability findings with a cveYear of 2020 and cvssScore value of 5.
query exampleFilterWindowsEndpointVulnerability($first: Int!) {
endpoints(first: $first, filter: {memberOf: {name: "All Windows"}}) {
edges {
node {
name
ipAddress
compliance {
cveFindings(
filter: {any: false, filters: [{path: "cveYear", value: "2020"}, {path: "cvssScore", value: "5"}]}
) {
absoluteFirstFoundDate
cveId
cveYear
cvssScoreV3
detectedProducts
detectedCPEs
firstFound
lastFound
severityV3
summary
}
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the cursor variable in the Variables panel or in your variables dictionary:
{
"first": 1
}
Example response:
{
"data": {
"endpoints": {
"edges": [
{
"node": {
"name": "example-host-3",
"ipAddress": "10.30.0.100",
"compliance": {
"cveFindings": [
{
"absoluteFirstFoundDate": "2024-02-08",
"cveId": "CVE-2020-0645",
"cveYear": "2020",
"cvssScoreV3": 7.5,
"detectedProducts": [
"Operating System"
],
"detectedCPEs": [
"cpe:/o:microsoft:windows_server_2016:::x64"
],
"firstFound": "2024-02-08",
"lastFound": "2025-07-10",
"severityV3": "High",
"summary": "A tampering vulnerability exists when Microsoft IIS Server improperly handles malformed request headers, aka 'Microsoft IIS Server Tampering Vulnerability'."
},
{
"absoluteFirstFoundDate": "2024-02-08",
"cveId": "CVE-2020-0660",
"cveYear": "2020",
"cvssScoreV3": 7.5,
"detectedProducts": [
"Operating System"
],
"detectedCPEs": [
"cpe:/o:microsoft:windows_server_2016:::x64"
],
"firstFound": "2024-02-08",
"lastFound": "2025-07-10",
"severityV3": "High",
"summary": "A denial of service vulnerability exists in Remote Desktop Protocol (RDP) when an attacker connects to the target system using RDP and sends specially crafted requests, aka 'Windows Remote Desktop Protocol (RDP) Denial of Service Vulnerability'."
}
]
}
}
}
],
"pageInfo": {
"startCursor": "MTQ2NTkyOTI5OjA=",
"endCursor": "MTQ2NTkyOTI5OjA=",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Computer group examples
The following queries and mutations create, retrieve, and delete computer groups.
Create a type of computer group
(mutation.computerGroupCreate)
You can create the following computer group types:
-
computer management group (computer group) - A Tanium user can view question results from, and deploy actions to, only those endpoints that belong to a computer group that is assigned to the user persona selected for the current session. You can view computer groups in Tanium Console at . To create a computer group, in your mutation request, configure
managementRightsEnabledas true. For more information, see Create computer group. -
computer filter group (filter group) - Tanium users use filter groups as filters in questions and question results. You can view filter groups in Tanium Console at . To create a filter group, in your mutation request, configure a content set reference at
contentSetRef.name. For more information, see Create filter group.
You can configure a computer group to also function as a filter group. In your mutation request, configure managementRightsEnabled as true and a content set reference at contentSetRef.name. For more information, see Create computer group that also filters.
For more information about computer groups, see Tanium Console User Guide: Computer groups overview.
Create computer group
The following mutation creates a computer group, configuring managementRightsEnabled as true.
mutation exampleCreateComputerGroup($name: String!, $groupName: String, $mrEnabled: Boolean!) {
computerGroupCreate(
input: {name: $name, filter: {memberOf: {name: $groupName}}, managementRightsEnabled: $mrEnabled}
) {
group {
id
}
error {
message
}
}
}
Include the name, filter condition, and management rights flag variables in the Variables panel or in your variables dictionary:
{
"name": "Example computer group",
"groupName": "No Computers",
"mrEnabled": true
}
Example response:
{
"data": {
"computerGroupCreate": {
"group": {
"id": "12345"
},
"error": null
}
}
}
Create filter group
The following mutation creates a filter group by defining a content set (Default) to which the group belongs.
mutation exampleCreateComputerGroup2($name: String!, $contentSetName: String, $groupName: String, $mrEnabled: Boolean!) {
computerGroupCreate(
input: {name: $name, contentSetRef: {name: $contentSetName}, filter: {memberOf: {name: $groupName}}, managementRightsEnabled: $mrEnabled}
) {
group {
id
}
error {
message
}
}
}
Include the name, content set, filter condition, and management rights flag variables in the Variables panel or in your variables dictionary:
{
"name": "Example computer group",
"contentSetName": "Default",
"groupName": "No Computers",
"mrEnabled": false
}
Example response:
{
"data": {
"computerGroupCreate": {
"group": {
"id": "12345"
},
"error": null
}
}
}
Create computer group that also filters
The following mutation creates a computer group that can also be used as a filter group. This request configures managementRightsEnabled as true and references the Default content set.
mutation exampleCreateComputerGroupFilter($name: String!, $contentSetName: String, $groupName: String, $mrEnabled: Boolean!) {
computerGroupCreate(
input: {name: $name, contentSetRef: {name: $contentSetName}, filter: {memberOf: {name: $groupName}}, managementRightsEnabled: $mrEnabled}
) {
group {
id
}
error {
message
}
}
}
Include the name, filter condition, and management rights flag variables in the Variables panel or in your variables dictionary:
{
"name": "Example computer group that filters",
"contentSetName": "Default",
"groupName": "No Computers",
"mrEnabled": true
}
Example response:
{
"data": {
"computerGroupCreate": {
"group": {
"id": "12345"
},
"error": null
}
}
}
Create computer group based on existing computer groups
The following mutation creates a computer group, defining membership based on existing computer groups. Endpoints in Windows or Mac example group belong to either the All Windows or the All Mac computer group.
any in the filter to false, and the computer groups you define have mutually exclusive criteria, no endpoints are members of your created computer group because no endpoints can meet all of the mutually exclusive criteria.
mutation exampleCreateComputerGroup3($cgName: String!, $mrEnabled: Boolean!, $filterAny: Boolean!, $groupName1: String, $groupName2: String) {
computerGroupCreate(
input: {name: $cgName, managementRightsEnabled: $mrEnabled, filter: {any: $filterAny, filters: [{memberOf: {name: $groupName1}}, {memberOf: {name: $groupName2}}]}}
) {
group {
id
}
error {
message
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"cgName": "Windows or Mac example group",
"mrEnabled": true,
"filterAny": true,
"groupName1": "All Windows",
"groupName2": "All Mac"
}
Example response:
{
"data": {
"computerGroupCreate": {
"group": {
"id": "12345"
},
"error": null
}
}
}
Create computer group based on sensor
The following mutation creates a computer group, defining membership based on a sensor. All Mac example group contains endpoints that match when the Is Mac sensor returns true for that endpoint.
mutation exampleCreateComputerGroup4($cgName: String!, $mrEnabled: Boolean!, $sensorName: String, $sensorOp: FieldFilterOp!, $sensorValue: String) {
computerGroupCreate(
input: {name: $cgName, managementRightsEnabled: $mrEnabled, filter: {sensor: {name: $sensorName}, op: $sensorOp, value: $sensorValue}}
) {
group {
id
}
error {
message
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"cgName": "All Mac example group",
"mrEnabled": true,
"sensorName": "Is Mac",
"sensorOp": "EQ",
"sensorValue": "true"
}
Example response:
{
"data": {
"computerGroupCreate": {
"group": {
"id": "12345"
},
"error": null
}
}
}
Create computer group using multiple criteria
The following mutation creates a computer group using multiple filters to define membership based on existing computer groups and sensors. Based on the filter logic, the following endpoints are members of Example multiple filters computer group:
-
All virtual endpoints running Linux
-
All virtual endpoints running macOS
-
All virtual endpoints running Windows with a high memory consumption
mutation exampleCreateComputerGroup5($cgName: String!, $mrEnabled: Boolean!, $filterAny1: Boolean!, $sensorName1: String, $sensorColumn1: String, $sensorOp1: FieldFilterOp!, $sensorValue1: String, $filterAny2: Boolean!, $cGroup1: String, $cGroup2: String, $filterAny3: Boolean!, $cGroup3: String, $sensorName2: String, $sensorColumn2: String, $sensorOp2: FieldFilterOp!, $sensorValue2: String, $sensorNegated2: Boolean!) {
computerGroupCreate(
input: {name: $cgName, managementRightsEnabled: $mrEnabled, filter: {any: $filterAny1, filters: [{sensor: {name: $sensorName1, column: $sensorColumn1}, op: $sensorOp1, value: $sensorValue1}, {any: $filterAny2, filters: [{memberOf: {name: $cGroup1}}, {memberOf: {name: $cGroup2}}, {any: $filterAny3, filters: [{memberOf: {name: $cGroup3}}, {sensor: {name: $sensorName2, column: $sensorColumn2}, op: $sensorOp2, negated: $sensorNegated2, value: $sensorValue2}]}]}]}}
) {
group {
id
}
error {
message
}
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"cgName": "Example multiple filters computer group",
"mrEnabled": true,
"filterAny1": false,
"sensorName1": "Is Virtual",
"sensorColumn1": "Is Virtual",
"sensorOp1": "EQ",
"sensorValue1": "true",
"filterAny2": true,
"cGroup1": "All Linux",
"cGroup2": "All Mac",
"filterAny3": false,
"cGroup3": "All Windows",
"sensorName2": "High Memory Consumption",
"sensorColumn2": "High Memory Consumption",
"sensorOp2": "EQ",
"sensorValue2": "Under Threshold",
"sensorNegated2": true
}
Example response:
{
"data": {
"computerGroupCreate": {
"group": {
"id": "12345"
},
"error": null
}
}
}
Delete computer group by ID or name
(mutation.computerGroupDelete)
Delete computer group by ID
The following mutation deletes the computer group that matches the ID.
mutation exampleDeleteComputerGroup($id: ID) {
computerGroupDelete(ref: {id: $id}) {
error {
message
}
id
}
}
Include the computer group ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"computerGroupDelete": {
"error": null,
"id": "12345"
}
}
}
Delete computer group by name
You can also delete a computer group that matches a name.
mutation exampleDeleteComputerGroup2($name: String) {
computerGroupDelete(ref: {name: $name}) {
error {
message
}
id
}
}
Include the computer group name variable in the Variables panel or in your variables dictionary:
{
"name": "Example computer group"
}
Get a computer group by ID or name
(query.computerGroup)
Get computer group by ID
The following query retrieves a computer group that matches an ID.
query exampleGetComputerGroupByID($id: ID) {
computerGroup(ref: {id: $id}) {
id
name
contentSet {
id
name
}
expression
modifiedTime
type
filterEnabled
managementRightsEnabled
}
}
Include the computer group ID variable in the Variables panel or in your variables dictionary:
{
"id": "12345"
}
Example response:
{
"data": {
"computerGroup": {
"id": "12345",
"name": "Example computer group",
"contentSet": {
"id": "5",
"name": "Client Management"
},
"expression": "No Computers",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": false
}
}
}
Get computer group by name
You can also retrieve a computer group that matches a name.
query exampleGetComputerGroupByName($name: String!) {
computerGroup(ref: {name: $name}) {
id
name
contentSet {
id
name
}
expression
modifiedTime
type
filterEnabled
managementRightsEnabled
}
}
Include the computer group name variable in the Variables panel or in your variables dictionary:
{
"name": "Example computer group"
}
Get multiple computer groups, filter groups, or management rights groups
(query.computerGroups)
Get computer groups
The following query retrieves the first 2 computer groups. For more information about pagination, see Pagination.
query exampleGetTwoComputerGroups($first: Int) {
computerGroups(first: $first) {
edges {
node {
id
name
contentSet {
id
name
}
expression
modifiedTime
type
filterEnabled
managementRightsEnabled
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"computerGroups": {
"edges": [
{
"node": {
"id": "12345",
"name": "Example computer group",
"contentSet": {
"id": "5",
"name": "Client Management"
},
"expression": "No Computers",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": false
}
},
{
"node": {
"id": "23456",
"name": "Example computer group 2",
"contentSet": {
"id": "2",
"name": "Default"
},
"expression": "Computer Name contains example",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": false
}
}
]
}
}
}
Get manual computer groups
The following query retrieves the first 2 manual computer groups, whose membership is based on a manually entered list of computer names or fully qualified domain names (FQDNs).
query exampleGetManualGroups($first: Int, $type: ComputerGroupType) {
computerGroups(first: $first, filter: {type: $type}) {
edges {
node {
id
name
contentSet {
id
name
}
expression
modifiedTime
type
filterEnabled
managementRightsEnabled
}
}
}
}
Include the pagination and type variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"type": "MANUAL"
}
Example response:
{
"data": {
"computerGroups": {
"edges": [
{
"node": {
"id": "12345",
"name": "Manual Group 1",
"contentSet": {
"id": "23456",
"name": ""
},
"expression": " Manual Group Membership equals 12345",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "MANUAL",
"filterEnabled": true,
"managementRightsEnabled": true
}
},
{
"node": {
"id": "34567",
"name": "Manual Group 2",
"contentSet": null,
"expression": " Manual Group Membership equals 34567",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "MANUAL",
"filterEnabled": false,
"managementRightsEnabled": true
}
}
]
}
}
}
(1.2 - Experimental (Release Candidate)) Get computer groups by name
The following query retrieves all computer groups whose name starts with test.
query exampleGetComputerGroupsWhoseNameStartsWithTest {
computerGroups(filter:{name:"test", nameOp:STARTS_WITH},) {
edges {
node {
id,
name,
type
}
}
}
}
Example response:
{
"data": {
"computerGroups": {
"edges": [
{
"node": {
"id": "1131",
"name": "test ras targeting",
"type": "STANDARD"
}
},
{
"node": {
"id": "1132",
"name": "test rus targeting",
"type": "STANDARD"
}
}
]
}
}
}
Get standard computer groups
The following query retrieves the first 2 standard computer groups, whose membership is based on the results of a sensor filter expression.
query exampleGetStandardGroups($first: Int, $type: ComputerGroupType) {
computerGroups(first: $first, filter: {type: $type}) {
edges {
node {
id
name
contentSet {
id
name
}
expression
modifiedTime
type
filterEnabled
managementRightsEnabled
}
}
}
}
Include the pagination and type variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"type": "STANDARD"
}
Example response:
{
"data": {
"computerGroups": {
"edges": [
{
"node": {
"id": "12345",
"name": "Standard group test",
"contentSet": {
"id": "2",
"name": "Default"
},
"expression": " Computer Name contains test ",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": true
}
},
{
"node": {
"id": "23456",
"name": "Domain test",
"contentSet": {
"id": "3",
"name": "Default Filter Groups"
},
"expression": " ( Domain Name contains test.example )",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": true
}
}
]
}
}
}
Get filter groups
The following query retrieves the first 2 filter groups.
query exampleGetFilterGroups($first: Int, $filterEnabled: Boolean) {
computerGroups(first: $first, filter: {filterEnabled: $filterEnabled}) {
edges {
node {
id
name
contentSet {
id
name
}
expression
modifiedTime
type
filterEnabled
managementRightsEnabled
}
}
}
}
Include the pagination and filter enabled variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"filterEnabled": true
}
Example response:
{
"data": {
"computerGroups": {
"edges": [
{
"node": {
"id": "12345",
"name": "All Windows Workstations - x64",
"contentSet": {
"id": "3",
"name": "Default Filter Groups"
},
"expression": " ( Windows OS Type contains windows workstation and \"x64/x86?\" contains x64 )",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": true
}
},
{
"node": {
"id": "23456",
"name": "All Windows Server 2008 R2",
"contentSet": {
"id": "3",
"name": "Default Filter Groups"
},
"expression": " Operating System Generation equals Windows Server 2008 R2",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": true
}
}
]
}
}
}
Get management rights groups
The following query retrieves the first 2 management rights groups.
query exampleGetMRGroups($first: Int, $mrEnabled: Boolean) {
computerGroups(first: $first, filter: {managementRightsEnabled: $mrEnabled}) {
edges {
node {
id
name
contentSet {
id
name
}
expression
modifiedTime
type
filterEnabled
managementRightsEnabled
}
}
}
}
Include the pagination and management rights enabled variables in the Variables panel or in your variables dictionary:
{
"first": 2,
"mrEnabled": true
}
Example response:
{
"data": {
"computerGroups": {
"edges": [
{
"node": {
"id": "12345",
"name": "Test Filter",
"contentSet": {
"id": "3",
"name": "Default Filter Groups"
},
"expression": " Computer Name starts with test",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": true
}
},
{
"node": {
"id": "23456",
"name": "All Windows Workstations",
"contentSet": {
"id": "3",
"name": "Default Filter Groups"
},
"expression": " ( Windows OS Type contains windows workstation )",
"modifiedTime": "2023-12-31T23:59:59Z",
"type": "STANDARD",
"filterEnabled": true,
"managementRightsEnabled": true
}
}
]
}
}
}
(1.1 - Experimental (Active Development)) Get management rights groups current user and persona can access
The following query retrieves the list of management rights groups assigned to the requesting user and active persona. The assigned management rights groups determine the endpoints that the user can access.
query exampleGetUserPersonaManagementRights {
managementRightsGroups {
id
name
contentSetV2 {
id
name
description
}
expression
filterEnabled
managementRightsEnabled
modifiedTime
type
}
}
Example response if user and active persona have unrestricted management rights:
{
"data": {
"managementRightsGroups": []
}
}
Example response if user and active persona have restricted management rights:
{
"data": {
"managementRightsGroups": [
{
"id": "123",
"name": "All Linux",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Is Linux equals True",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"type": "STANDARD"
},
{
"id": "234",
"name": "All Mac",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Is Mac equals True",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"type": "STANDARD"
}
]
}
}
Connect examples
The following queries and mutations require Connect, retrieve information about connections and connection runs, and allow you to start or stop connection runs.
Connect v1 REST API replacement
The Connect GraphQL APIs are at stability index 1.2 - Experimental (Release Candidate). For the best results, if a GraphQL API provides functionality, use that instead of the corresponding legacy Connect REST API. Connect REST APIs not listed in the table do not have comparable functionality in Tanium Gateway, or are otherwise not used in favor of other Connect REST APIs.
| Connect v1 REST API endpoint | Gateway GraphQL API replacement | Notes |
|---|---|---|
|
|
n/a |
Delete a connection by ID |
|
|
|
Get connection runs |
|
|
|
Get connections |
|
|
|
Get a connection by ID |
|
|
|
Get a connection run by ID |
|
|
n/a | Get the log data for a connection run |
|
|
|
Start a connection run |
|
|
|
Stop an in-progress connection run |
|
|
n/a | Create or modify a connection |
Get Connect connection by ID
(query.connectConnection)
The following query retrieves a connection that matches the ID.
query exampleGetSingleConnection($id: ID!) {
connectConnection(ref: {id: $id}) {
id
currentRun {
id
connectionID
status
createdTime
updatedTime
}
description
displayName
isScheduled
lastRunStatus
lastRunTime
pastRuns {
edges {
node {
id
connectionID
status
createdTime
updatedTime
}
}
}
}
}
Include an ID variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"id": "123"
}
Example response:
{
"data": {
"connectConnection": {
"id": "123",
"currentRun": null,
"description": "Example connection description",
"displayName": "Example connection name",
"isScheduled": true,
"lastRunStatus": "Finished",
"lastRunTime": "2026-05-08T17:00:15.737Z",
"pastRuns": {
"edges": [
{
"node": {
"id": "234",
"connectionID": "23",
"status": "Finished",
"createdTime": "2026-05-08T17:00:15.737Z",
"updatedTime": "2026-05-08T17:00:21.276Z"
}
},
{
"node": {
"id": "345",
"connectionID": "23",
"status": "Finished",
"createdTime": "2026-05-08T15:45:00.575Z",
"updatedTime": "2026-05-08T15:45:03.567Z"
}
}
]
}
}
}
}
Get Connect connection run by ID
(query.connectRun)
The following query retrieves a connection run that matches the ID.
query exampleGetSingleConnectionRun($id: ID!) {
connectRun(ref: {id: $id}) {
id
connectionID
status
createdTime
updatedTime
}
}
Include an ID variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"id": "123"
}
Example response:
{
"data": {
"connectRun": {
"id": "123",
"connectionID": "234",
"status": "Finished",
"createdTime": "2023-08-15T07:01:21.824Z",
"updatedTime": "2023-08-15T07:01:30.912Z"
}
}
}
Get multiple Connect connection runs
(query.connectRuns)
The following query retrieves the first 2 connection runs.
query exampleGetConnectionRuns($first: Int) {
connectRuns(first: $first) {
edges {
node {
id
connectionID
status
createdTime
updatedTime
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
totalRecords
}
}
Include a pagination variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"connectRuns": {
"edges": [
{
"node": {
"id": "1",
"connectionID": "123",
"status": "Finished",
"createdTime": "2023-08-15T07:01:21.824Z",
"updatedTime": "2023-08-15T07:01:30.912Z"
}
},
{
"node": {
"id": "2",
"connectionID": "234",
"status": "Finished",
"createdTime": "2023-08-15T07:01:19.678Z",
"updatedTime": "2023-08-15T07:01:23.757Z"
}
}
],
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": true,
"startCursor": "MA==",
"endCursor": "MQ=="
},
"totalRecords": 504
}
}
}
Get multiple Connect connections
(query.connectConnections)
The following query retrieves the first 2 connections.
query exampleGetConnections($first: Int) {
connectConnections(first: $first) {
edges {
node {
id
currentRun {
id
connectionID
status
createdTime
updatedTime
}
description
displayName
isScheduled
lastRunStatus
lastRunTime
pastRuns {
edges {
node {
id
connectionID
status
createdTime
updatedTime
}
}
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include a pagination variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"connectConnections": {
"edges": [
{
"node": {
"id": "23",
"currentRun": null,
"description": "Example connection description",
"displayName": "Example connection name",
"isScheduled": true,
"lastRunStatus": "Finished",
"lastRunTime": "2026-05-08T15:36:00.010Z",
"pastRuns": {
"edges": [
{
"node": {
"id": "234",
"connectionID": "23",
"status": "Finished",
"createdTime": "2026-05-08T15:36:00.010Z",
"updatedTime": "2026-05-08T15:46:09.098Z"
}
},
{
"node": {
"id": "345",
"connectionID": "23",
"status": "Finished",
"createdTime": "2026-05-08T12:36:00.012Z",
"updatedTime": "2026-05-08T12:46:06.430Z"
}
}
]
}
}
},
{
"node": {
"id": "13",
"currentRun": null,
"description": "Example connection description 2",
"displayName": "Example connection name 2",
"isScheduled": false,
"lastRunStatus": "Finished",
"lastRunTime": "2026-02-12T21:27:46.686Z",
"pastRuns": {
"edges": []
}
}
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "MA==",
"endCursor": "MQ=="
},
"totalRecords": 23
}
}
}
Get multiple Connect connections by ID
(query.connectConnections)
The following query retrieves the connections that match either ID 1234 or 5678.
query exampleGetMultipleConnectionsByIDs($first_id: ID!, $second_id: ID!) {
connectConnections(filter: {ids: [$first_id, $second_id]}) {
totalRecords
edges {
node {
id
displayName
isScheduled
lastRunTime
lastRunStatus
}
}
}
}
Include the ID variables in the QUERY VARIABLES panel or in your variables dictionary:
{
"first_id": "1234",
"second_id": "5678"
}
Example response:
{
"data": {
"connectConnections": {
"totalRecords": 2,
"edges": [
{
"node": {
"id": "1234",
"displayName": "Example connection 1",
"isScheduled": false,
"lastRunTime": "2026-02-12T21:27:46.686Z",
"lastRunStatus": "Finished"
}
},
{
"node": {
"id": "5678",
"displayName": "Example connection 2",
"isScheduled": false,
"lastRunTime": null,
"lastRunStatus": null
}
}
]
}
}
}
Get multiple Connect connections by description
(query.connectConnections)
The following query retrieves connections that contain Example in the description.
query exampleGetConnectionsByDescription($target_description: String) {
connectConnections(filter: {description: $target_description}) {
totalRecords
edges {
node {
id
displayName
description
isScheduled
lastRunStatus
lastRunTime
}
}
}
}
Include the description variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"target_description": "Example"
}
Example response:
{
"data": {
"connectConnections": {
"totalRecords": 3,
"edges": [
{
"node": {
"id": "1234",
"displayName": "Example connection 1",
"description": "An example description",
"isScheduled": true,
"lastRunStatus": "Finished",
"lastRunTime": "2026-05-08T15:36:00.010Z"
}
},
{
"node": {
"id": "567",
"displayName": "Example connection 2",
"description": "Example description",
"isScheduled": false,
"lastRunStatus": null,
"lastRunTime": null
}
},
{
"node": {
"id": "8901",
"displayName": "Example connection 3",
"description": "A description that contains example",
"isScheduled": false,
"lastRunStatus": null,
"lastRunTime": null
}
}
]
}
}
}
Get Connect connection by ID and displayName
(query.connectConnections)
The following query retrieves the connection that matches ID 1234 and contains Example Connection in the displayName field.
query exampleGetConnectionByIDAndDisplayName($target_id: ID!, $target_display_name: String) {
connectConnections(filter: { ids: [$target_id], displayName: $target_display_name }) {
totalRecords
edges {
node {
id
displayName
}
}
}
}
Include the ID and display name variables in the QUERY VARIABLES panel or in your variables dictionary:
{
"target_id": "1234",
"target_display_name": "Example Connection"
}
Example response:
{
"data": {
"connectConnections": {
"totalRecords": 1,
"edges": [
{
"node": {
"id": "1234",
"displayName": "Example Connection"
}
}
]
}
}
}
Get SQL Server stored procedures
(query.connectSQLServerStoredProcedures)
The following query retrieves the stored procedures defined in one or more schemas within a SQL Server database. For each procedure, the query returns the procedure name, whether the configured user has EXECUTE permission, and the declared parameters with their SQL Server data types.
query exampleGetSQLServerStoredProcedures(
$server: String!
$username: String!
$password: String!
$database: String!
$schemaNames: [String!]!
) {
connectSQLServerStoredProcedures(
input: {
connectionConfiguration: {
server: $server
username: $username
password: $password
encrypt: false
validateServerCertificate: false
connectTimeoutMillis: 5000
requestTimeoutMillis: 30000
cancelTimeoutMillis: 5000
packetSizeBytes: 4096
multiSubnetFailover: false
}
database: $database
schemaNames: $schemaNames
}
) {
schemaName
procedures {
name
hasExecute
parameters {
name
dataType
}
}
}
}
Include variables in the QUERY VARIABLES panel or in your variables dictionary:
{
"server": "sql.example.com",
"username": "reportuser",
"password": "examplepassword",
"database": "Sales",
"schemaNames": [
"dbo",
"reporting"
]
}
Example response:
{
"data": {
"connectSQLServerStoredProcedures": [
{
"schemaName": "dbo",
"procedures": [
{
"name": "sp_onConnectionStart",
"hasExecute": true,
"parameters": [
{
"name": "@connectionName",
"dataType": "nvarchar"
},
{
"name": "@connectionId",
"dataType": "bigint"
},
{
"name": "@connectionRunId",
"dataType": "bigint"
},
{
"name": "@source",
"dataType": "nvarchar"
},
{
"name": "@databaseTable",
"dataType": "nvarchar"
},
{
"name": "@startTime",
"dataType": "datetime"
},
{
"name": "@expectedRowCount",
"dataType": "bigint"
}
]
},
{
"name": "sp_onConnectionFinish",
"hasExecute": true,
"parameters": [
{
"name": "@connectionRunId",
"dataType": "bigint"
},
{
"name": "@runStatus",
"dataType": "nvarchar"
},
{
"name": "@sourceRowCount",
"dataType": "bigint"
},
{
"name": "@destinationRowCount",
"dataType": "bigint"
},
{
"name": "@finishTime",
"dataType": "datetime"
}
]
}
]
},
{
"schemaName": "reporting",
"procedures": []
}
]
}
}
Get SQL Server stored procedures through a satellite
(query.connectSQLServerStoredProcedures)
The following query retrieves the stored procedures defined in one or more schemas within a SQL Server database through a satellite. For each procedure, the query returns the procedure name, whether the configured user has EXECUTE permission, and the declared parameters with their SQL Server data types.
query exampleGetSQLServerStoredProceduresThroughSatellite(
$server: String!,
$username: String!,
$password: String!,
$database: String!,
$satelliteID: ID!,
$schemaNames: [String!]!
) {
connectSQLServerStoredProcedures(
input: {
connectionConfiguration: {
server: $server,
username: $username,
password: $password,
satelliteID: $satelliteID,
encrypt: false,
validateServerCertificate: false,
connectTimeoutMillis: 5000,
requestTimeoutMillis: 30000,
cancelTimeoutMillis: 5000,
packetSizeBytes: 4096,
multiSubnetFailover: false
},
database: $database,
schemaNames: $schemaNames
}
) {
schemaName
procedures {
name
hasExecute
parameters {
name
dataType
}
}
}
}
Include variables in the QUERY VARIABLES panel or in your variables dictionary:
{
"server": "sql.example.com",
"username": "reportuser",
"password": "examplepassword",
"database": "Sales",
"satelliteID": "e66081b7-5900-46bb-97eb-fcbf16d2c24f",
"schemaNames": [
"dbo"
]
}
Start a Connect connection run
(mutation.connectConnectionStart)
The following mutation starts a connection run from a connection that matches the connection ID.
mutation exampleStartConnection($connectionID: ID!) {
connectConnectionStart(input: {connectionID: $connectionID}) {
run {
id
connectionID
status
createdTime
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include an ID variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionID": "123"
}
Example response:
{
"data": {
"connectConnectionStart": {
"run": {
"id": "12345",
"connectionID": "123",
"status": "Starting",
"createdTime": "2023-08-15T18:16:54.509Z",
"updatedTime": "2023-08-15T18:16:54.512Z"
},
"error": null
}
}
}
Stop the active run for a Connect connection
(mutation.connectConnectionStop)
The following mutation stops the active run, if any, for the specified Connect connection. If the connection has no in-progress run, this mutation succeeds with runID set to null. No run is started.
mutation exampleStopConnection($connectionID: ID!) {
connectConnectionStop(input: {connectionID: $connectionID}) {
runID
error {
message
retryable
timedOut
}
}
}
Include an ID variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionID": "234"
}
Example response:
{
"data": {
"connectConnectionStop": {
"runID": "123",
"error": null
}
}
}
Stop a specific Connect connection run
(mutation.connectConnectionRunStop)
The following mutation stops a connection run that is currently in progress. The connection run is identified by ID. This request returns an error if the connection run is not in progress.
mutation exampleStopConnectionRun($runID: ID!) {
connectConnectionRunStop(input: {runID: $runID}) {
run {
id
connectionID
status
createdTime
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include an ID variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"runID": "123"
}
Example response:
{
"data": {
"connectConnectionRunStop": {
"run": {
"id": "123",
"connectionID": "234",
"status": "Running",
"createdTime": "2023-08-15T18:36:29.739Z",
"updatedTime": "2023-08-15T18:36:32.235Z"
},
"error": null
}
}
}
Start multiple Connect connection runs
(mutation.connectConnectionsBulkStart)
The following mutation starts a run for each connection ID in connectionIDs. Each connection is processed independently, and each failure is recorded in errors with the connection ID, its position in the request list, and a structured error. connectionIDs is limited to 100 IDs per request by default.
mutation exampleBulkStartConnections($connectionIDs: [ID!]!) {
connectConnectionsBulkStart(input: {connectionIDs: $connectionIDs}) {
runs {
id
connectionID
status
createdTime
updatedTime
}
successCount
failureCount
errors {
connectionID
inputIndex
error {
code
message
retryable
}
}
error {
message
retryable
timedOut
}
}
}
Include an ID list variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionIDs": [
"123",
"456"
]
}
Example response with one success and one failure:
{
"data": {
"connectConnectionsBulkStart": {
"runs": [
{
"id": "12345",
"connectionID": "123",
"status": "Starting",
"createdTime": "2026-07-17T18:16:54.509Z",
"updatedTime": "2026-07-17T18:16:54.512Z"
}
],
"successCount": 1,
"failureCount": 1,
"errors": [
{
"connectionID": "456",
"inputIndex": 1,
"error": {
"code": "validation_exists",
"message": "Connection 456 does not exist or is not visible to the caller.",
"retryable": null
}
}
],
"error": null
}
}
}
Stop multiple Connect connection runs
(mutation.connectConnectionsBulkStop)
The following mutation stops the active run, if any, for each connection ID in connectionIDs. Connections with no run in progress are counted as successes. connectionIDs is limited to 100 IDs per request by default.
mutation exampleBulkStopConnections($connectionIDs: [ID!]!) {
connectConnectionsBulkStop(input: {connectionIDs: $connectionIDs}) {
stoppedRunIDs
successCount
failureCount
errors {
connectionID
inputIndex
error {
code
message
retryable
}
}
error {
message
retryable
timedOut
}
}
}
Include an ID list variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionIDs": [
"123",
"456"
]
}
Example response:
{
"data": {
"connectConnectionsBulkStop": {
"stoppedRunIDs": [
"78901"
],
"successCount": 2,
"failureCount": 0,
"errors": [],
"error": null
}
}
}
Enable multiple Connect connections for scheduled runs
(mutation.connectConnectionsBulkEnable)
The following mutation enables each connection ID in connectionIDs for scheduled runs. Connections are processed independently. connectionIDs is limited to 100 IDs per request by default.
mutation exampleBulkEnableConnections($connectionIDs: [ID!]!) {
connectConnectionsBulkEnable(input: {connectionIDs: $connectionIDs}) {
connections {
id
displayName
}
successCount
failureCount
errors {
connectionID
inputIndex
error {
code
message
retryable
}
}
error {
message
retryable
timedOut
}
}
}
Include an ID list variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionIDs": [
"123",
"456"
]
}
Example response:
{
"data": {
"connectConnectionsBulkEnable": {
"connections": [
{
"id": "123",
"displayName": "Trends — Endpoint Inventory"
},
{
"id": "456",
"displayName": "Comply Findings Export"
}
],
"successCount": 2,
"failureCount": 0,
"errors": [],
"error": null
}
}
}
Disable multiple Connect connections from scheduled runs
(mutation.connectConnectionsBulkDisable)
The following mutation disables each connection ID in connectionIDs from scheduled runs. Connections are processed independently. connectionIDs is limited to 100 IDs per request by default.
mutation exampleBulkDisableConnections($connectionIDs: [ID!]!) {
connectConnectionsBulkDisable(input: {connectionIDs: $connectionIDs}) {
connections {
id
displayName
}
successCount
failureCount
errors {
connectionID
inputIndex
error {
code
message
retryable
}
}
error {
message
retryable
timedOut
}
}
}
Include an ID list variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionIDs": [
"123",
"456"
]
}
Example response:
{
"data": {
"connectConnectionsBulkDisable": {
"connections": [
{
"id": "123",
"displayName": "Trends — Endpoint Inventory"
},
{
"id": "456",
"displayName": "Comply Findings Export"
}
],
"successCount": 2,
"failureCount": 0,
"errors": [],
"error": null
}
}
}
Delete multiple Connect connections
(mutation.connectConnectionsBulkDelete)
The following mutation deletes each connection ID in connectionIDs. Connections are processed independently. Set deleteComponents to false to preserve the source, destination, filter, and format components for reuse by other connections. connectionIDs is limited to 100 IDs per request by default.
mutation exampleBulkDeleteConnections($connectionIDs: [ID!]!, $deleteComponents: Boolean) {
connectConnectionsBulkDelete(input: {connectionIDs: $connectionIDs, deleteComponents: $deleteComponents}) {
deletedIDs
successCount
failureCount
errors {
connectionID
inputIndex
error {
code
message
retryable
}
}
error {
message
retryable
timedOut
}
}
}
Include the ID list and deleteComponents variables in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionIDs": [
"123",
"456"
],
"deleteComponents": true
}
Example response:
{
"data": {
"connectConnectionsBulkDelete": {
"deletedIDs": [
"123",
"456"
],
"successCount": 2,
"failureCount": 0,
"errors": [],
"error": null
}
}
}
Transfer ownership of multiple Connect connections
(mutation.connectConnectionsBulkTransferOwnership)
The following mutation transfers ownership of each connection ID in connectionIDs to the calling user. This mutation cannot transfer ownership to a third party. The calling user always takes ownership. The persona of each connection is reset to the active persona of the calling user. Connections are processed independently. connectionIDs is limited to 100 IDs per request by default.
mutation exampleBulkTransferOwnershipConnections($connectionIDs: [ID!]!) {
connectConnectionsBulkTransferOwnership(input: {connectionIDs: $connectionIDs}) {
connections {
id
displayName
}
successCount
failureCount
errors {
connectionID
inputIndex
error {
code
message
retryable
}
}
error {
message
retryable
timedOut
}
}
}
Include an ID list variable in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionIDs": [
"123",
"456"
]
}
Example response:
{
"data": {
"connectConnectionsBulkTransferOwnership": {
"connections": [
{
"id": "123",
"displayName": "Trends — Endpoint Inventory"
},
{
"id": "456",
"displayName": "Comply Findings Export"
}
],
"successCount": 2,
"failureCount": 0,
"errors": [],
"error": null
}
}
}
Change the persona of multiple Connect connections
(mutation.connectConnectionsBulkChangePersona)
The following mutation changes the persona that each connection ID in connectionIDs runs as. The calling user must own every connection in the request. Set targetPersonaID to 0 to use the default persona of the owner at run time, or specify a persona ID available to the calling user. Connections are processed independently. connectionIDs is limited to 100 IDs per request by default.
mutation exampleBulkChangePersonaConnections($connectionIDs: [ID!]!, $targetPersonaID: ID!) {
connectConnectionsBulkChangePersona(input: {connectionIDs: $connectionIDs, targetPersonaID: $targetPersonaID}) {
connections {
id
displayName
}
successCount
failureCount
errors {
connectionID
inputIndex
error {
code
message
retryable
}
}
error {
message
retryable
timedOut
}
}
}
Include the ID list and targetPersonaID variables in the QUERY VARIABLES panel or in your variables dictionary:
{
"connectionIDs": [
"123",
"456"
],
"targetPersonaID": "0"
}
Example response:
{
"data": {
"connectConnectionsBulkChangePersona": {
"connections": [
{
"id": "123",
"displayName": "Trends — Endpoint Inventory"
},
{
"id": "456",
"displayName": "Comply Findings Export"
}
],
"successCount": 2,
"failureCount": 0,
"errors": [],
"error": null
}
}
}
Deploy examples
The following queries and mutation require Deploy, retrieve information about software packages deployed in your environment, and allow you to deploy a software package to endpoints.
Deploy a package to all endpoints
(mutation.manageSoftware)
The following mutation deploys a package to All Computers.
mutation exampleDeployPackage($group:String) {
manageSoftware(
operation: INSTALL
softwarePackageID: 2
start: "2021-10-27T00:00:00Z"
end: "2021-11-03T00:00:00Z"
target: {targetGroup: $group}
) {
ID
name
}
}
Include the computer group variable in the Variables panel or in your variables dictionary:
{
"group": "All Computers"
}
Example response:
{
"data": {
"manageSoftware": {
"ID": "2",
"name": "Install Tanium Standard Utilities (Linux)"
}
}
}
Get all deploy packages
(query.softwarePackages)
The following query retrieves all Deploy packages.
query exampleGetDeployPackages {
softwarePackages {
edges {
node {
id
productName
productVendor
productVersion
}
}
}
}
Example response:
{
"data": {
"softwarePackages": {
"edges": [
{
"node": {
"id": "19",
"productName": "Firefox (x64 en-US)",
"productVendor": "Mozilla",
"productVersion": "98.0"
}
},
{
"node": {
"id": "30",
"productName": "Power BI Desktop (x64)",
"productVendor": "Microsoft",
"productVersion": "2.102.845.0"
}
},
{
"node": {
"id": "43",
"productName": "VLC media player (64-bit)",
"productVendor": "VideoLAN",
"productVersion": "3.0.16.0"
}
},
{
"node": {
"id": "46",
"productName": "Visual Studio Code (x64 en-us)",
"productVendor": "Microsoft",
"productVersion": "1.65.2"
}
}
]
}
}
}
Get status of software deployment
(query.softwareDeployment)
The following query retrieves the deployment status of all Deploy packages.
query exampleGetSoftwareDeploymentStatus {
softwareDeployment {
ID
name
status {
completeCount
downloadCompleteWaitingCount
downloadingCount
failedCount
notApplicableCount
runningCount
waitingCount
}
errors {
error
count
}
}
}
Example response:
{
"data": {
"softwareDeployment": [
{
"ID": "5",
"name": "Install Tanium Standard Utilities",
"status": {
"completeCount": 1,
"downloadCompleteWaitingCount": 0,
"downloadingCount": 0,
"failedCount": 0,
"notApplicableCount": 0,
"runningCount": 0,
"waitingCount": 0
},
"errors": null
},
{
"ID": "6",
"name": "Install Tanium Standard Utilities (Linux)",
"status": {
"completeCount": 0,
"downloadCompleteWaitingCount": 0,
"downloadingCount": 1,
"failedCount": 0,
"notApplicableCount": 0,
"runningCount": 0,
"waitingCount": 0
},
"errors": null
}
]
}
}
LEGACY: Get details of all packages
(query.packages)
The following query retrieves multiple fields for all packages.
query examplePackagesQuery {
packages {
items {
id
name
displayName
command
commandTimeout
expireSeconds
contentSet {
id
name
}
processGroupFlag
skipLockFlag
metadata {
adminFlag
name
value
}
sourceHash
sourceHashChangedFlag
sourceID
sourceName
parameters {
key
value
}
rawParameterDefinition
parameterDefinition {
parameterType
model
parameters {
model
parameterType
key
label
helpString
defaultValue
validationExpressions {
model
parameterType
expression
helpString
}
promptText
heightInLines
maxChars
values
restrict
allowEmptyList
minimum
maximum
stepSize
snapInterval
dropdownOptions {
model
parameterType
name
value
}
componentType
startDateRestriction {
model
parameterType
type
interval
intervalCount
unixTimeStamp
}
endDateRestriction {
model
parameterType
type
interval
intervalCount
unixTimeStamp
}
startTimeRestriction {
model
parameterType
type
interval
intervalCount
unixTimeStamp
}
endTimeRestriction {
model
parameterType
type
interval
intervalCount
unixTimeStamp
}
allowDisableEnd
defaultRangeStart {
model
parameterType
type
interval
intervalCount
unixTimeStamp
}
defaultRangeEnd {
model
parameterType
type
interval
intervalCount
unixTimeStamp
}
separatorText
}
}
verifyExpireSeconds
}
}
}
Example response:
{
"data": {
"packages": {
"items": [
{
"id": "1",
"name": "Distribute Tanium Standard Utilities",
"displayName": "Distribute Tanium Standard Utilities",
"command": "cmd.exe /c cscript.exe //E:VBScript install-standard-utils.vbs \"Tools\\StdUtils\"",
"commandTimeout": 2700,
"expireSeconds": 3300,
"contentSet": {
"id": "5",
"name": "Client Management"
},
"processGroupFlag": true,
"skipLockFlag": false,
"metadata": [],
"sourceHash": "60b3e906f92929da67341792db9675d5cd91686546f01b57857686c8c6d84fa8",
"sourceHashChangedFlag": false,
"sourceID": 0,
"sourceName": "",
"parameters": [],
"rawParameterDefinition": null,
"parameterDefinition": null,
"verifyExpireSeconds": 600
},
{
"id": "2",
"name": "Distribute Tanium Standard Utilities (Linux)",
"displayName": "Distribute Tanium Standard Utilities (Linux)",
"command": "/bin/bash distribute-tools.sh STRICT",
"commandTimeout": 120,
"expireSeconds": 720,
"contentSet": {
"id": "5",
"name": "Client Management"
},
"processGroupFlag": true,
"skipLockFlag": false,
"metadata": [],
"sourceHash": "4ed7a30a1ca6c81be5a71b892dfadcdb489122cc641fa4b644f53255134215c9",
"sourceHashChangedFlag": false,
"sourceID": 0,
"sourceName": "",
"parameters": [],
"rawParameterDefinition": null,
"parameterDefinition": null,
"verifyExpireSeconds": 600
}
]
}
}
}
Direct Connect examples
The following queries and mutations use Direct Connect to connect to a single endpoint, retrieve data, stop a process, and then close the connection. Queries that retrieve information from endpoints or terminate processes on endpoints require Performance.
Open direct connection to endpoint
(mutation.directConnectOpen)
The following mutation uses Direct Connect to establish a connection to the endpoint with an ID of 12323. You can retrieve IDs through the Get endpoints IDs from Tanium Data Service query. If a direct connection status is not READY (such as CONNECTING or UNKNOWN) after you use this mutation, you can use the Get direct connection status query to check the direct connection status.
Connections opened with directConnectOpen are compatible with stable Direct Connect APIs, including directConnectEndpoint, directConnectPing, directConnectProcessTerminate, and directConnectClose. Connections opened with directConnectOpen are not compatible with legacy Direct Connect APIs, including directEndpoint, pingDirectConnection, killProcess, and closeDirectConnection.
mutation exampleOpenEndpointConnection($id: ID!) {
directConnectOpen(input: {endpointID: $id}) {
connectionID
status
}
}
Include the endpoint ID in the Variables panel or in your variables dictionary:
{
"id": "12323"
}
Example response:
{
"data": {
"directConnectOpen": {
"connectionID": "86d9a9ac-0229-481b-9d88-5f1bcb1b177b",
"status": "READY"
}
}
}
Get direct connection status
(query.directConnectConnectionStatus)
The following query uses Direct Connect to retrieve the status of a direct connection. If a direct connection status is not READY (such as CONNECTING or UNKNOWN) after you use the Open direct connection to endpoint mutation to establish a direct connection to an endpoint, you can use the connection ID from that response in this query to determine whether the direct connection is established.
The input requires a direct endpoint connection opened using directConnectOpen.
query exampleGetDCStatus($id: ID!) {
directConnectConnectionStatus(input: {connectionID: $id}) {
status
}
}
Include the connection ID in the Variables panel or in your variables dictionary:
{
"id": "86d9a9ac-0229-481b-9d88-5f1bcb1b177b"
}
Example response:
{
"data": {
"directConnectConnectionStatus": {
"status": "READY"
}
}
}
Ping direct connection to endpoint
(mutation.directConnectPing)
The following mutation retrieves whether a Direct Connect connection is active. Use this mutation to check connection details or to keep the connection active.
The input requires a direct endpoint connection opened using directConnectOpen.
mutation examplePingDirectConnection($connectionID: ID!) {
directConnectPing(input: {connectionID: $connectionID}) {
result
}
}
Include the connection ID in the Variables panel or in your variables dictionary:
{
"connectionID": "5fc564d6-5767-47fc-abb6-25cba65409d8"
}
Example response:
{
"data": {
"directConnectPing": {
"result": true
}
}
}
Get data from endpoint
(query.directConnectEndpoint.performance)
After you establish a connection to an endpoint through Direct Connect, you can query the endpoint for specific information. The input requires a direct endpoint connection opened using directConnectOpen.
The following query retrieves the CPU usage on the endpoint:
query exampleGetEndpointData($id: ID!) {
directConnectEndpoint(input: {connectionID: $id}) {
performance {
cpuUsagePercent
}
}
}
Include the connection ID in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"directConnectEndpoint": {
"performance": {
"cpuUsagePercent": 28.751501243887798
}
}
}
}
Get process from endpoint
(query.directConnectEndpoint.processes)
After you establish a connection to an endpoint through Direct Connect, you can query the endpoint for process information. The input requires a direct endpoint connection opened using directConnectOpen.
The following query retrieves the state of all processes running on the endpoint.
query exampleGetEndpointProcess($id: ID!) {
directConnectEndpoint(input: {connectionID: $id}) {
processes {
all {
pid
ppid
name
commandLine
userName
groupName
memoryResidentBytes
}
}
}
}
Include the endpoint ID in the Variables panel or in your variables dictionary:
{
"id": "12323"
}
Example response:
{
"data": {
"directConnectEndpoint": {
"processes": {
"all": [
{
"pid": 2092,
"ppid": 496,
"name": "TaniumReceiver.exe",
"commandLine": "\"C:\\Program Files\\Tanium\\Tanium Server\\TaniumReceiver.exe\" --service",
"userName": "admin",
"groupName": "test-group",
"memoryResidentBytes": 59842560
},
{
"pid": 5760,
"ppid": 1112,
"name": "TaniumClient.exe",
"commandLine": "\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\TaniumClient.exe\" -c",
"userName": "SYSTEM",
"groupName": "NT AUTHORITY",
"memoryResidentBytes": 17965056
},
{
"pid": 1036,
"ppid": 496,
"name": "TaniumBlobService.exe",
"commandLine": "\"C:\\Program Files\\Tanium\\Tanium Module Server\\services\\blob-service\\TaniumBlobService.exe\"",
"userName": "SYSTEM",
"groupName": "NT AUTHORITY",
"memoryResidentBytes": 7426048
}
]
}
}
}
}
Get past 24 hours of alerts from endpoint
(query.directConnectEndpoint.alerts)
-
The end time must be before the current time.
-
The start time must be before the end time.
-
If you define a start time without an end time, the request time period retrieves alerts from the start time to the current time.
-
If you do not define a start time or end time, the request defaults to the past 24 hours.
The input requires a direct endpoint connection opened using directConnectOpen.
The following query retrieves alerts from an endpoint that occurred during the past 24 hours.
query exampleGetEndpointAlerts($id: ID!) {
directConnectEndpoint(input: {connectionID: $id}) {
alerts {
all {
schema
key
type
ref
topProcessesExpr
labels
pendingAt
start
resolvedAt
leadup
value
}
}
}
}
Include the connection ID in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"directConnectEndpoint": {
"alerts": {
"all": [
{
"schema": 1,
"key": "available-mem{heuristic=\"available-mem\"}",
"type": "available-mem",
"ref": null,
"topProcessesExpr": null,
"labels": {
"heuristic": "available-mem"
},
"pendingAt": "2022-03-15T15:54:38.574990164Z",
"start": "2022-03-15T15:54:38.574990164Z",
"resolvedAt": null,
"leadup": 300000000000,
"value": 168.48828125
}
]
}
}
}
}
Get 48 hours of alerts from endpoint
The following query sets a time period of 48 hours from January 1, 2022 to January 3, 2022 and retrieves alerts for an endpoint from that period.
query exampleGetEndpointAlerts48Hours($id: ID!, $startTime: Time!, $endTime: Time) {
directConnectEndpoint(input: {connectionID: $id}) {
alerts {
all(scope: {startTime: $startTime, endTime: $endTime}) {
schema
key
type
ref
topProcessesExpr
labels
pendingAt
start
resolvedAt
leadup
value
}
}
}
}
Include the connection ID and time period variables in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"startTime": "2022-01-01T00:00:00Z",
"endTime": "2022-01-03T00:00:00Z"
}
Get alerts from prior date from endpoint
The following query sets a time period start date of January 1, 2022 and retrieves alerts for an endpoint from that date to the current time.
query exampleGetEndpointAlertsPriorDate($id: ID!, $startTime: Time!) {
directConnectEndpoint(input: {connectionID: $id}) {
alerts {
all(scope: {startTime: $startTime}) {
schema
key
type
ref
topProcessesExpr
labels
pendingAt
start
resolvedAt
leadup
value
}
}
}
}
Include the connection ID and start time variables in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"startTime": "2022-01-01T00:00:00Z"
}
Stop endpoint process
(mutation.directConnectProcessTerminate)
After you establish a connection to an endpoint through Direct Connect, you can stop running processes on the endpoint. The following mutation stops a process named notepad.exe on an endpoint.
The input requires a direct endpoint connection opened using directConnectOpen.
mutation exampleStopEndpointProcess($connectionID: ID!, $processName: String!, $pid: Int!, $signal: Signal!) {
directConnectProcessTerminate(
input: {connectionID: $connectionID, name: $processName, pid: $pid, signal: $signal}
) {
result
}
}
Include the connection ID and process name variables in the Variables panel or in your variables dictionary:
{
"connectionID": "5fc564d6-5767-47fc-abb6-25cba65409d8",
"processName": "notepad.exe",
"pid": 7056,
"signal": "SIGKILL"
}
Example response:
{
"data": {
"directConnectProcessTerminate": {
"result": true
}
}
}
Close endpoint connection
(mutation.directConnectClose)
The following mutation closes a Direct Connect connection to an endpoint.
mutation exampleCloseEndpointConnection($connectionID: ID!) {
directConnectClose(input: {connectionID: $connectionID}) {
result
}
}
Include the connection ID in the Variables panel or in your variables dictionary:
{
"connectionID": "5fc564d6-5767-47fc-abb6-25cba65409d8"
}
Example response:
{
"data": {
"directConnectClose": {
"result": true
}
}
}
LEGACY: Open a connection to an endpoint
(mutation.openDirectConnection)
The following mutation uses Direct Connect to establish a connection to the endpoint with an ID of 12323. You can retrieve IDs through the Get endpoints IDs from Tanium Data Service query.
Connections opened with openDirectConnection are compatible with legacy Direct Connect APIs, including directEndpoint, pingDirectConnection, killProcess, and closeDirectConnection. Connections opened with openDirectConnection are not compatible with stable Direct Connect APIs, including directConnectEndpoint, directConnectPing, directConnectProcessTerminate, and directConnectClose.
mutation exampleOpenEndpointConnection($id: ID) {
openDirectConnection(input: {endpointID: $id}) {
connectionID
}
}
Include the endpoint ID in the Variables panel or in your variables dictionary:
{
"id": "12323"
}
Example response:
{
"data": {
"openDirectConnection": {
"connectionID": "86d9a9ac-0229-481b-9d88-5f1bcb1b177b"
}
}
}
LEGACY: Ping the connection to an endpoint
(mutation.pingDirectConnection)
The following mutation retrieves the status for a Direct Connect connection. Use this mutation to check connection details or to keep the connection active.
The input requires a direct endpoint connection opened using openDirectConnection.
mutation ($connectionID: ID!) {
pingDirectConnection(input: {connectionID: $connectionID}) {
result
}
}
Include the connection ID in the Variables panel or in your variables dictionary:
{
"connectionID": "5fc564d6-5767-47fc-abb6-25cba65409d8"
}
Example response:
{
"data": {
"pingDirectConnection": {
"result": true
}
}
}
LEGACY: Get data from an endpoint
(query.directEndpoint.performance)
After you establish a connection to an endpoint through Direct Connect, you can query the endpoint for specific information.
The input requires a direct endpoint connection opened using openDirectConnection.
The following query retrieves the CPU usage on the endpoint:
query exampleGetEndpointData($id: ID) {
directEndpoint(input : {endpointID: $id}) {
performance {
cpuUsagePercent
}
}
}
Include the endpoint ID in the Variables panel or in your variables dictionary:
{
"id": "12323"
}
Example response:
{
"data": {
"directEndpoint": {
"performance": {
"cpuUsagePercent": 28.751501243887798
}
}
}
}
LEGACY: Get process from an endpoint
(query.directEndpoint.processes)
After you establish a connection to an endpoint through Direct Connect, you can query the endpoint for process information.
The input requires a direct endpoint connection opened using openDirectConnection.
The following query retrieves the state of all processes running on the endpoint.
query exampleGetEndpointProcess($id: ID) {
directEndpoint(input: {endpointID: $id}) {
processes {
all {
pid
ppid
name
commandLine
userName
groupName
memoryResidentBytes
}
}
}
}
Include the endpoint ID in the Variables panel or in your variables dictionary:
{
"id": "12323"
}
Example response:
{
"data": {
"directEndpoint": {
"processes": {
"all": [
{
"pid": 2092,
"ppid": 496,
"name": "TaniumReceiver.exe",
"commandLine": "\"C:\\Program Files\\Tanium\\Tanium Server\\TaniumReceiver.exe\" --service",
"userName": "admin",
"groupName": "test-group",
"memoryResidentBytes": 59842560
},
{
"pid": 5760,
"ppid": 1112,
"name": "TaniumClient.exe",
"commandLine": "\"C:\\Program Files (x86)\\Tanium\\Tanium Client\\TaniumClient.exe\" -c",
"userName": "SYSTEM",
"groupName": "NT AUTHORITY",
"memoryResidentBytes": 17965056
},
{
"pid": 1036,
"ppid": 496,
"name": "TaniumBlobService.exe",
"commandLine": "\"C:\\Program Files\\Tanium\\Tanium Module Server\\services\\blob-service\\TaniumBlobService.exe\"",
"userName": "SYSTEM",
"groupName": "NT AUTHORITY",
"memoryResidentBytes": 7426048
}
]
}
}
}
}
LEGACY - Get alerts from an endpoint
(query.directEndpoint.alerts)
Get past 24 hours of alerts from endpoint
After you establish a connection to an endpoint through Direct Connect, you can query the endpoint for alert information. You can also define a time period for retrieving events based on the following rules:
-
The end time must be before the current time.
-
The start time must be before the end time.
-
If you define a start time without an end time, the request time period retrieves alerts from the start time to the current time.
-
If you do not define a start time or end time, the request defaults to the past 24 hours.
The input requires a direct endpoint connection opened using openDirectConnection.
The following query retrieves alerts from an endpoint that occurred during the past 24 hours.
query exampleGetEndpointAlerts($id: ID) {
directEndpoint(input: {endpointID: $id}) {
alerts {
all {
schema
key
type
ref
topProcessesExpr
labels
pendingAt
start
resolvedAt
leadup
value
}
}
}
}
Include the endpoint ID in the Variables panel or in your variables dictionary:
{
"id": "12323"
}
Example response:
{
"data": {
"directEndpoint": {
"alerts": {
"all": [
{
"schema": 1,
"key": "available-mem{heuristic=\"available-mem\"}",
"type": "available-mem",
"ref": null,
"topProcessesExpr": null,
"labels": {
"heuristic": "available-mem"
},
"pendingAt": "2022-03-15T15:54:38.574990164Z",
"start": "2022-03-15T15:54:38.574990164Z",
"resolvedAt": null,
"leadup": 300000000000,
"value": 168.48828125
}
]
}
}
}
}
Get 48 hours of alerts from endpoint
The following query sets a time period of 48 hours from January 1, 2022 to January 3, 2022 and retrieves alerts for an endpoint from that period.
The input requires a direct endpoint connection opened using openDirectConnection.
query exampleGetEndpointAlerts48Hours($id: ID, $startTime: Time!, $endTime: Time) {
directEndpoint(input: {endpointID: $id}) {
alerts {
all(scope: {startTime: $startTime, endTime: $endTime}) {
schema
key
type
ref
topProcessesExpr
labels
pendingAt
start
resolvedAt
leadup
value
}
}
}
}
Include the endpoint ID and time period variables in the Variables panel or in your variables dictionary:
{
"id": "123",
"startTime": "2022-01-01T00:00:00Z",
"endTime": "2022-01-03T00:00:00Z"
}
Get alerts from prior date from endpoint
The following query sets a time period start date of January 1, 2022 and retrieves alerts for an endpoint from that date to the current time.
The input requires a direct endpoint connection opened using openDirectConnection.
query exampleGetEndpointAlertsPriorDate($id: ID, $startTime: Time!) {
directEndpoint(input: {endpointID: $id}) {
alerts {
all(scope: {startTime: $startTime}) {
schema
key
type
ref
topProcessesExpr
labels
pendingAt
start
resolvedAt
leadup
value
}
}
}
}
Include the endpoint ID and start time variables in the Variables panel or in your variables dictionary:
{
"id": "123",
"startTime": "2022-01-01T00:00:00Z"
}
LEGACY - Stop a process on an endpoint
(mutation.killProcess)
After you establish a connection to an endpoint through Direct Connect, you can stop running processes on the endpoint. The following mutation stops a process named notepad.exe on an endpoint.
The input requires a direct endpoint connection opened using openDirectConnection.
mutation exampleStopEndpointProcess($connectionID: ID, $processName: String!, $pid: Int!, $signal: Signal!) {
killProcess(
input: {connectionID: $connectionID, name: $processName, pid: $pid, signal: $signal}
) {
result
}
}
Include the connection ID and process name variables in the Variables panel or in your variables dictionary:
{
"connectionID": "5fc564d6-5767-47fc-abb6-25cba65409d8",
"processName": "notepad.exe",
"pid": 7056,
"signal": "SIGKILL"
}
Example response:
{
"data": {
"killProcess": {
"result": true
}
}
}
LEGACY - Close connection to an endpoint
(mutation.closeDirectConnection)
The following mutation closes a Direct Connect connection to an endpoint.
The input requires a direct endpoint connection opened using openDirectConnection.
mutation exampleCloseEndpointConnection($connectionID: ID!) {
closeDirectConnection(input: {connectionID: $connectionID}) {
result
}
}
Include the connection ID in the Variables panel or in your variables dictionary:
{
"connectionID": "5fc564d6-5767-47fc-abb6-25cba65409d8"
}
Example response:
{
"data": {
"closeDirectConnection": {
"result": true
}
}
}
Discover examples
The following queries and mutation require Discover, retrieve information about Discover labels and interfaces, and allow you to create or delete labels, or update labels applied to interfaces.
Add Discover labels to Discover interfaces
(mutation.discoverInterfaceAddLabel)
The discoverInterfaceAddLabel mutation requires Discover and the Discover Tag write permission.
The following mutation manually adds one or more standard labels to one or more specified interfaces. This mutation does not support automatic evaluation to apply labels.
mutation exampleAddInterfaceLabel($labelNames: [String!]!, $interfaceIDs: [ID!]!) {
discoverInterfaceAddLabel(input: {names: $labelNames, interfaceIDs: $interfaceIDs}) {
success
error {
message
}
cursor
}
}
Include the interface variables in the Variables panel or in your variables dictionary:
{
"labelNames": [
"example_label",
"example_label_2"
],
"interfaceIDs": [
12345,
67890
]
}
Example response:
{
"data": {
"discoverInterfaceAddLabel": {
"success": true,
"error": null,
"cursor": null
}
}
}
If your mutation request returns a cursor, the label is not yet added to the interfaces that you specify. You can pass the cursor as input to a subsequent discoverInterfaceAddLabel mutation to determine the status of the initial request.
mutation exampleAddInterfaceLabel($labelNames: [String!]!, $interfaceIDs: [ID!]!) {
discoverInterfaceAddLabel(
input: {
labelNames: $labelNames,
interfaceIDs: $interfaceIDs
cursor: "Mg=="
}
) {
success
error {
message
}
cursor
}
}
Create a Discover label
(mutation.discoverLabelCreate)
The discoverLabelCreate mutation requires Discover and the Discover Tag Write permission. If you define at least one Discover location, this also requires the Discover Location Permissions Write permission.
The following mutation creates a standard-type label.
mutation exampleCreateInterfaceLabel($labelName: String!) {
discoverLabelCreate(input: {name: $labelName}) {
label {
name
type
createdTime
modifiedTime
}
error {
message
}
}
}
Include the name variable in the Variables panel or in your variables dictionary:
{
"labelName": "Example_label"
}
Example response:
{
"data": {
"discoverLabelCreate": {
"label": {
"name": "Example_label",
"type": "STANDARD",
"createdTime": "2023-03-29T13:42:22.760Z",
"modifiedTime": "2023-03-29T13:42:22.760Z"
},
"error": null
}
}
}
Delete a Discover label by name
(mutation.discoverLabelDelete)
The discoverLabelDelete mutation requires Discover and the Discover Tag write permission. If you define at least one Discover location, this also requires the Discover Location Permissions write permission.
The following mutation deletes a label. If you delete a label, the label is removed from all the related interfaces.
mutation exampleDeleteInterfaceLabel($labelName: String!) {
discoverLabelDelete(ref: {name: $labelName}) {
name
error {
message
}
}
}
Include the name variable in the Variables panel or in your variables dictionary:
{
"labelName": "Example_label"
}
Example response:
{
"data": {
"discoverLabelDelete": {
"name": "Example_label",
"error": null
}
}
}
Get a Discover interface by ID
(query.discoverInterface)
The discoverInterface query requires Discover and the Discover Asset read permission. If you define at least one Discover location, this also requires either the User Group read permission (returns only matching interfaces to which the user group membership allows access) or the Discover Location Permissions write permission (returns all matching interfaces).
The following query retrieves the Discover interface with the ID of 123.
query exampleGetSpecificInterface($id: ID!) {
discoverInterface(ref: {id: $id}) {
id
macAddress
manufacturer
locallyAdministeredMacAddress
hostnames
ipAddresses
labels {
name
type
createdTime
modifiedTime
}
osPlatform
openPorts
discoveryMethods
lastSeenTime
computerId
natIPAddresses
osGeneration
profiles {
name
}
firstSeenTime
firstManagedTime
lastManagedTime
lastDiscoveredTime
isManaged
isUnmanageable
isIgnored
satellites {
id
name
}
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"id": "123"
}
Example response:
{
"data": {
"discoverInterface": {
"id": "123",
"macAddress": "01-23-45-67-89-AB",
"manufacturer": "Microsoft Corporation",
"locallyAdministeredMacAddress": false,
"hostnames": [
"USB-81.lan.oxfordcs.com"
],
"ipAddresses": [
"192.2.2.0"
],
"labels": [
{
"name": "M11_Unmanaged_not_Unmanageable",
"type": "AUTOMATIC",
"createdTime": "2022-03-15T13:08:37.177Z",
"modifiedTime": "2022-03-15T13:08:37.177Z"
},
{
"name": "Client Install Pending Fixed",
"type": "AUTOMATIC",
"createdTime": "2024-06-25T17:39:34.843Z",
"modifiedTime": "2024-06-25T17:39:34.843Z"
},
{
"name": "cM_4351_repro",
"type": "AUTOMATIC",
"createdTime": "2024-09-30T17:33:10.861Z",
"modifiedTime": "2024-09-30T17:33:10.861Z"
},
{
"name": "dain_test",
"type": "STANDARD",
"createdTime": "2024-11-21T18:44:53.944Z",
"modifiedTime": "2024-11-21T18:44:53.944Z"
}
],
"osPlatform": "Windows",
"openPorts": [
135,
139,
445,
3389,
5357,
49152,
49153,
49154,
49155,
49156,
49167
],
"discoveryMethods": [
"ARP",
"CONNECTED",
"PING",
"NMAP"
],
"lastSeenTime": "2026-03-25T18:39:06.401Z",
"computerId": null,
"natIPAddresses": [
"198.50.20.200"
],
"osGeneration": null,
"profiles": [
{
"name": "Bad CIDR profile"
},
{
"name": "FXF - Discover Test"
},
{
"name": "SS-NMAP-HomeLab"
}
],
"firstSeenTime": "2022-09-28T14:16:10.000Z",
"firstManagedTime": null,
"lastManagedTime": null,
"lastDiscoveredTime": "2026-03-25T18:39:06.397Z",
"isManaged": false,
"isUnmanageable": false,
"isIgnored": false,
"satellites": []
}
}
}
Get multiple Discover interfaces
(query.discoverInterfaces)
The discoverInterfaces query requires Discover and the Discover Asset read permission. If you define at least one Discover location, this also requires either the User Group read permission (returns only matching interfaces to which the user group membership allows access) or the Discover Location Permissions write permission (returns all matching interfaces).
The following query retrieves the first 2 Discover interfaces.
query exampleGetInterfaces($first: Int) {
discoverInterfaces(first: $first) {
edges {
node {
id
macAddress
manufacturer
locallyAdministeredMacAddress
hostnames
ipAddresses
labels {
name
type
createdTime
modifiedTime
}
osPlatform
openPorts
discoveryMethods
lastSeenTime
computerId
natIPAddresses
osGeneration
profiles {
name
}
firstSeenTime
firstManagedTime
lastManagedTime
lastDiscoveredTime
isManaged
isUnmanageable
isIgnored
satellites {
id
name
}
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"discoverInterfaces": {
"edges": [
{
"node": {
"id": "1234",
"macAddress": "01-23-45-67-89-AB",
"manufacturer": "VMware, Inc.",
"locallyAdministeredMacAddress": false,
"hostnames": [],
"ipAddresses": [
"192.0.20.10"
],
"labels": [
{
"name": "Example label 1",
"type": "AUTOMATIC",
"createdTime": "2020-05-20T14:48:30.259Z",
"modifiedTime": "2025-07-07T19:58:02.976Z"
},
{
"name": "Example label 2",
"type": "AUTOMATIC",
"createdTime": "2022-03-15T13:08:37.177Z",
"modifiedTime": "2022-03-15T13:08:37.177Z"
},
{
"name": "Example label 3",
"type": "STANDARD",
"createdTime": "2026-03-17T13:10:32.462Z",
"modifiedTime": "2026-03-17T13:10:32.462Z"
}
],
"osPlatform": "Windows",
"openPorts": null,
"discoveryMethods": [
"ARP",
"CONNECTED",
"PING",
"NMAP",
"SATELLITE_NMAP",
"NDP"
],
"lastSeenTime": "2026-03-25T18:39:06.401Z",
"computerId": null,
"natIPAddresses": [
"198.50.100.10"
],
"osGeneration": "10",
"profiles": [
{
"name": "Example profile 1"
},
{
"name": "Example profile 2"
},
{
"name": "Example profile 3"
}
],
"firstSeenTime": "2021-07-20T01:28:49.000Z",
"firstManagedTime": "2023-08-14T12:09:41.000Z",
"lastManagedTime": "2024-01-12T16:47:20.796Z",
"lastDiscoveredTime": "2026-03-25T16:39:05.325Z",
"isManaged": false,
"isUnmanageable": false,
"isIgnored": false,
"satellites": [
{
"id": "b58a6c1a-79c6-46e5-903d-7975974ef349",
"name": "satellite-ubuntu24-intel-test1"
}
]
}
},
{
"node": {
"id": "4567",
"macAddress": "CD-EF-01-23-45-67",
"manufacturer": "VMware, Inc.",
"locallyAdministeredMacAddress": false,
"hostnames": [],
"ipAddresses": [
"192.10.20.30"
],
"labels": [
{
"name": "Example label 2",
"type": "AUTOMATIC",
"createdTime": "2022-03-15T13:08:37.177Z",
"modifiedTime": "2022-03-15T13:08:37.177Z"
},
{
"name": "Example label 4",
"type": "AUTOMATIC",
"createdTime": "2024-03-28T19:05:55.605Z",
"modifiedTime": "2024-03-28T19:05:55.605Z"
},
{
"name": "Example label 5",
"type": "AUTOMATIC",
"createdTime": "2024-06-25T17:39:34.843Z",
"modifiedTime": "2024-06-25T17:39:34.843Z"
}
],
"osPlatform": "Windows",
"openPorts": [
22,
135,
139,
445,
3389,
5357
],
"discoveryMethods": [
"ARP",
"CONNECTED",
"PING",
"NMAP",
"NDP"
],
"lastSeenTime": "2026-03-25T18:39:06.401Z",
"computerId": null,
"natIPAddresses": [
"20.70.20.190"
],
"osGeneration": "10",
"profiles": [
{
"name": "Example profile 2"
},
{
"name": "Example profile 4"
},
{
"name": "Example profile 5"
}
],
"firstSeenTime": "2022-08-05T16:48:40.000Z",
"firstManagedTime": null,
"lastManagedTime": null,
"lastDiscoveredTime": "2026-03-25T18:39:06.397Z",
"isManaged": false,
"isUnmanageable": false,
"isIgnored": false,
"satellites": []
}
}
]
}
}
}
Get a Discover label by name
(query.discoverLabel)
The discoverLabel query requires Discover and the Discover Asset read permission.
The following query retrieves the Discover label with the name of Example_label.
query exampleGetSpecificLabel($name: String!) {
discoverLabel(ref: {name: $name}) {
name
type
createdTime
modifiedTime
interfaceCounts {
managed
unmanaged
total
unmanageable
}
}
}
Include the name variable in the Variables panel or in your variables dictionary:
{
"name": "Example_label"
}
Example response:
{
"data": {
"discoverLabel": {
"name": "Example label 1",
"type": "AUTOMATIC",
"createdTime": "2024-07-23T18:51:58.230Z",
"modifiedTime": "2024-07-23T18:51:58.230Z",
"interfaceCounts": {
"managed": 0,
"unmanaged": 0,
"total": 0,
"unmanageable": 0
}
}
}
}
Get multiple Discover labels
(query.discoverLabels)
The discoverLabels query requires Discover and the Discover Asset read permission.
The following query retrieves the first 2 Discover labels.
query exampleGetLabels($first: Int) {
discoverLabels(first: $first) {
edges {
node {
name
type
createdTime
interfaceCounts {
managed
unmanaged
total
unmanageable
}
modifiedTime
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"discoverLabels": {
"edges": [
{
"node": {
"name": "Example label 1",
"type": "AUTOMATIC",
"createdTime": "2024-07-23T18:51:58.230Z",
"interfaceCounts": {
"managed": 0,
"unmanaged": 0,
"total": 0,
"unmanageable": 0
},
"modifiedTime": "2024-07-23T18:51:58.230Z"
}
},
{
"node": {
"name": "Example label 2",
"type": "AUTOMATIC",
"createdTime": "2020-05-20T14:48:30.268Z",
"interfaceCounts": {
"managed": 0,
"unmanaged": 0,
"total": 0,
"unmanageable": 0
},
"modifiedTime": "2020-05-20T14:48:30.268Z"
}
}
]
}
}
}
Remove Discover labels from Discover interfaces
(mutation.discoverInterfaceRemoveLabel)
The discoverInterfaceRemoveLabel mutation requires Discover and the Discover Tag write permission.
The following mutation manually removes one or more standard labels from one or more specified interfaces.
mutation exampleRemoveInterfaceLabel($labelNames: [String!]!, $interfaceIDs: [ID!]!) {
discoverInterfaceRemoveLabel(input: {names: $labelNames, interfaceIDs: $interfaceIDs}) {
success
error {
message
}
cursor
}
}
Include the interface variables in the Variables panel or in your variables dictionary:
{
"labelNames": [
"example_label",
"example_label_2"
],
"interfaceIDs": [
12345,
67890
]
}
Example response:
{
"data": {
"discoverInterfaceRemoveLabel": {
"success": true,
"error": null,
"cursor": null
}
}
}
If your mutation request returns a cursor, the label is not yet removed from the interfaces that you specify. You can pass the cursor as input to a subsequent discoverInterfaceRemoveLabel mutation to determine the status of the initial request.
mutation exampleRemoveInterfaceLabel($labelNames: [String!]!, $interfaceIDs: [ID!]!) {
discoverInterfaceRemoveLabel(
input: {
labelNames: $labelNames,
interfaceIDs: $interfaceIDs
cursor: "Mg=="
}
) {
success
error {
message
}
cursor
}
}
Email examples
The following requests require Email to retrieve email server profiles, or submit requests to send email.
(1.0 - Experimental (Early Development)) Get email server summary by ID
(query.emailServerSummary)
The emailServerSummary query requires Email and the Email send permission.
Use the emailServerSummary query to retrieve the summary information for an email server that matches the ID. Note the following:
-
Email server summary information includes information needed to submit a request to send an email using mutation.emailSend, including the email server ID.
-
You can retrieve an email server only if the email server is enabled to send emails, and you have the Email send permission for the content set containing the email server. If either is not true, the response does not return the email server summary information for a given email server.
The following query retrieves the email server that matches the ID, returning summary information only if the email server is enabled to send emails, and the requesting user has the Email send permission for the content set containing the email server.
query exampleGetEmailServerByID($input: IdRefInput!) {
emailServerSummary(ref: $input) {
id
description
fromAddress
name
}
}
Include an input variable in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
}
Example response:
{
"data": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example email server description",
"fromAddress": "from_user@example.com",
"name": "example_email_server"
}
}
(1.0 - Experimental (Early Development)) Get multiple email server summaries
(query.emailServerSummaries)
The emailServerSummaries query requires Email and the Email send permission.
Use the emailServerSummaries query to retrieve the summary information for multiple email servers. Note the following:
-
Email server summary information includes information needed to submit a request to send an email using mutation.emailSend, including the email server ID.
-
You can retrieve an email server only if the email server is enabled to send emails, and you have the Email send permission for the content set containing the email server. If either is not true, the response does not return the email server summary information for a given email server.
The following query retrieves the first 2 email servers that are enabled to send emails for which the requesting user also has the Email send permission for the content set containing the email server.
query exampleGetEmailServers($first: Int) {
emailServerSummaries(first: $first) {
edges {
node {
id
description
fromAddress
name
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"emailServerSummaries": {
"edges": [
{
"node": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example email server description",
"fromAddress": "from_user@example.com",
"name": "example_email_server"
}
},
{
"node": {
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"description": "Example email server description 2",
"fromAddress": "from_user_2@example.com",
"name": "example_email_server_2"
}
}
]
}
}
}
(1.0 - Experimental (Early Development)) Submit request to send email
(mutation.emailSend)
The emailSend mutation requires Email and the Email send permission.
Use the emailSend mutation to submit a request to Tanium Email to send an email. Note the following:
-
Configure an email server in Connect. For more information, see Configure email server profile settings for Microsoft 365.
-
Use an email server that is enabled to send emails, and to which you have the Email send permission for the content set containing the email server. Use the emailServerSummaries query to retrieve all email servers that meet these requirements, or the emailServerSummary query to verify whether the email server matching the ID meets these requirements.
-
You must define a 36 character hexadecimal UUID to pass as an input ID, such as
12345678-90ab-cdef-1234-567890abcdef. This mutation is idempotent; if you submit several requests with the same UUID, only the first successful request results in a sent email, and other requests have no effect. -
If the response is successful, the queuedTime value is the time that Tanium Email receives the request to send the email. The actual send time might be up to several minutes after the queuedTime value.
-
(Optional) To include file attachments, pass an attachments array in the input. Each attachment object requires name (the file name), contentType (the MIME type), data (the file content), and encoding. Set encoding to
RAWfor plain-text content orBASE64for Base64-encoded binary content. -
When you include attachments, note the following validation requirements:
-
The name, contentType, and data fields must not be empty.
-
The data field must be valid Base64 when encoding is BASE64.
-
The combined size of all attachments must not exceed 15 MB.
-
The following mutation submits a request to Tanium Email to send an email.
mutation exampleSubmitEmailSendRequest($input: EmailSendInput!) {
emailSend(input: $input) {
queuedTime
error {
message
retryable
timedOut
}
}
}
Include the input variable in the Variables panel or in your variables dictionary:
{
"input": {
"attachments": [
{
"contentType": "text/plain",
"data": "Example plain-text attachment content.",
"encoding": "RAW",
"name": "notes.txt"
},
{
"contentType": "application/pdf",
"data": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+",
"encoding": "BASE64",
"name": "report.pdf"
}
],
"bccAddresses": "bcc_user@example.com",
"body": "Example email body: Email sent.",
"bodyType": "TEXT",
"ccAddresses": "cc_user@example.com",
"emailServer": {
"id": "12345678-90ab-cdef-1234-567890abcdef"
},
"id": "fedcba09-8765-4321-fedc-ba0987654321",
"subject": "Example email subject",
"toAddresses": "to_user@example.com"
}
}
Example response:
{
"data": {
"queuedTime": "2023-01-01T00:00:00.00000000Z",
"error": null
}
}
Integrity Monitor examples
The following requests require Integrity Monitor to create, retrieve, update, deploy, and delete Integrity Monitor monitors and watchlists.
Create Integrity Monitor monitor
mutation.integrityMonitorMonitorCreate
The integrityMonitorMonitorCreate mutation requires Integrity Monitor and the Integrity Monitor Monitors write permission.
The following mutation creates a monitor.
mutation exampleCreateIMMonitor($input: IntegrityMonitorMonitorCreateInput!) {
integrityMonitorMonitorCreate(input: $input) {
monitor {
id
collectProcessInformation
computerGroups {
edges {
node {
id
contentSetV2 {
id
name
description
}
expression
filterEnabled
managementRightsEnabled
modifiedTime
name
type
}
}
}
databaseMaximumSizeMegabytes
deploymentStatus
description
indexFirstScanDistributeOverTime {
nanoseconds
seconds
}
indexScanFrequency {
nanoseconds
seconds
}
monitorPruningAge {
nanoseconds
seconds
}
name
priority
revision
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"collectProcessInformation": true,
"computerGroups": {
"id": "123"
},
"databaseMaximumSizeMegabytes": 512,
"description": "example monitor",
"indexFirstScanDistributeOverTime": {
"nanoseconds": 0,
"seconds": 14400
},
"indexScanFrequency": {
"nanoseconds": 0,
"seconds": 43200
},
"monitorPruningAge": {
"nanoseconds": 0,
"seconds": 86400
},
"name": "Example monitor",
"priority": 1
}
}
Example response:
{
"data": {
"integrityMonitorMonitorCreate": {
"monitor": {
"id": "123",
"collectProcessInformation": true,
"computerGroups": {
"edges": [
{
"node": {
"id": "123",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Operating System Generation equals Windows 10",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"name": "All Windows 10",
"type": "STANDARD"
}
}
]
},
"databaseMaximumSizeMegabytes": 512,
"deploymentStatus": "PendingDeployment",
"description": "example monitor",
"indexFirstScanDistributeOverTime": {
"nanoseconds": 0,
"seconds": 14400
},
"indexScanFrequency": {
"nanoseconds": 0,
"seconds": 43200
},
"monitorPruningAge": {
"nanoseconds": 0,
"seconds": 86400
},
"name": "Example monitor",
"priority": 1,
"revision": 1
},
"error": null
}
}
}
Create Integrity Monitor watchlist
mutation.integrityMonitorWatchlistCreate
The integrityMonitorWatchlistCreate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation creates a Windows-style watchlist. Associated watchlist paths use backslashes (\).
mutation exampleCreateIMWatchlist($input: IntegrityMonitorWatchlistCreateInput!) {
integrityMonitorWatchlistCreate(input: $input) {
watchlist {
id
name
computerGroups {
edges {
node {
id
name
managementRightsEnabled
filterEnabled
contentSetV2 {
id
name
description
}
type
expression
}
}
}
deploymentStatus
description
paths {
edges {
node {
path
watchlistPathType
includeFilePermissionChanges
inclusions {
edges {
cursor
node
}
}
exclusions {
edges {
cursor
node
}
}
}
}
}
pathStyle
revision
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"computerGroups": [
{
"name": "All Computers"
},
{
"id": "123"
}
],
"description": "example watchlist",
"name": "Example watchlist",
"pathStyle": "Windows"
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistCreate": {
"watchlist": {
"id": "123",
"name": "Example watchlist",
"computerGroups": {
"edges": [
{
"node": {
"id": "345",
"name": "All Computers",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "1",
"name": "Reserved",
"description": "Built in sensors which can not be edited or removed."
},
"type": "STANDARD",
"expression": " any Computer Name not matches .*"
}
}
]
},
"deploymentStatus": "PendingDeployment",
"description": "example watchlist",
"paths": {
"edges": []
},
"pathStyle": "Windows",
"revision": 1
},
"error": null
}
}
}
The following mutation creates a Unix-style watchlist. Associated watchlist paths use forward slashes (/).
mutation exampleCreateIMWatchlist($input: IntegrityMonitorWatchlistCreateInput!) {
integrityMonitorWatchlistCreate(input: $input) {
watchlist {
id
name
computerGroups {
edges {
node {
id
name
managementRightsEnabled
filterEnabled
contentSetV2 {
id
name
description
}
type
expression
}
}
}
deploymentStatus
description
paths {
edges {
node {
path
watchlistPathType
includeFilePermissionChanges
inclusions {
edges {
node
}
}
exclusions {
edges {
node
}
}
}
}
}
pathStyle
revision
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"computerGroups": [
{
"name": "All Computers"
},
{
"id": "123"
}
],
"description": "example watchlist",
"name": "Example watchlist Unix",
"pathStyle": "Unix"
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistCreate": {
"watchlist": {
"id": "234",
"name": "Example watchlist Unix",
"computerGroups": {
"edges": [
{
"node": {
"id": "345",
"name": "All Computers",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "1",
"name": "Reserved",
"description": "Built in sensors which can not be edited or removed."
},
"type": "STANDARD",
"expression": " any Computer Name not matches .*"
}
}
]
},
"deploymentStatus": "PendingDeployment",
"description": "example watchlist",
"paths": {
"edges": []
},
"pathStyle": "Unix",
"revision": 1
},
"error": null
}
}
}
Create Integrity Monitor watchlist Unix path
mutation.integrityMonitorWatchlistUnixPathCreate
The integrityMonitorWatchlistUnixPathCreate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation creates a Unix-style watchlist path that uses forward slashes (/). This path is associated with the watchlist that matches the ID 123.
mutation exampleCreateIMUnixPath($input: IntegrityMonitorWatchlistUnixPathCreateInput!) {
integrityMonitorWatchlistUnixPathCreate(input: $input) {
watchlistPath {
id
exclusions {
edges {
node
}
}
inclusions {
edges {
node
}
}
path
watchlistPathType
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"watchlistID": "123",
"path": "/a/b*/c",
"inclusions": [
".ssh/\\*\\*"
],
"exclusions": [
"\\*\\*.log",
"\\*\\*.db"
]
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistUnixPathCreate": {
"watchlistPath": {
"id": "123",
"exclusions": {
"edges": [
{
"node": "\\*\\*.db"
},
{
"node": "\\*\\*.log"
}
]
},
"inclusions": {
"edges": [
{
"node": ".ssh/\\*\\*"
}
]
},
"path": "/a/b*/c",
"watchlistPathType": "File"
},
"error": null
}
}
}
Create Integrity Monitor watchlist Windows file path
mutation.integrityMonitorWatchlistWindowsFilePathCreate
The integrityMonitorWatchlistWindowsFilePathCreate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation creates a Windows-style watchlist file path that uses backslashes (\). This path is associated with the watchlist that matches the ID 123.
mutation exampleCreateIMWinFilePath($input: IntegrityMonitorWatchlistWindowsFilePathCreateInput!) {
integrityMonitorWatchlistWindowsFilePathCreate(input: $input) {
watchlistPath {
id
exclusions {
edges {
node
}
}
includeFilePermissionChanges
inclusions {
edges {
node
}
}
path
watchlistPathType
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"watchlistID": "123",
"path": "C:\\Program Files",
"inclusions": [
"**.pem"
],
"exclusions": [
"**.log",
"**.db"
],
"includeFilePermissionChanges": true
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistWindowsFilePathCreate": {
"watchlistPath": {
"id": "2345",
"exclusions": {
"edges": [
{
"node": "**.db"
},
{
"node": "**.log"
}
]
},
"includeFilePermissionChanges": true,
"inclusions": {
"edges": [
{
"node": "**.pem"
}
]
},
"path": "C:\\Program Files",
"watchlistPathType": "File"
},
"error": null
}
}
}
Create Integrity Monitor watchlist Windows registry path
mutation.integrityMonitorWatchlistWindowsRegistryPathCreate
The integrityMonitorWatchlistWindowsRegistryPathCreate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation creates a Windows-style watchlist registry path that uses backslashes (\). This path is associated with the watchlist that matches the ID 123.
mutation exampleCreateIMWinRegPath($input: IntegrityMonitorWatchlistWindowsRegistryPathCreateInput!) {
integrityMonitorWatchlistWindowsRegistryPathCreate(input: $input) {
watchlistPath {
id
exclusions {
edges {
node
}
}
inclusions {
edges {
node
}
}
path
watchlistPathType
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"watchlistID": "123",
"path": "HKEY_LOCAL_MACHINE\\a\\b*\\c",
"inclusions": [
"Classes\\*\\ShellEx\\*\\*"
],
"exclusions": [
".NETFramework\\*\\NGenService\\**",
"Cryptography\\CertificateTemplateCache\\*"
]
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistWindowsRegistryPathCreate": {
"watchlistPath": {
"id": "12345",
"exclusions": {
"edges": [
{
"node": "Cryptography\\CertificateTemplateCache\\*"
},
{
"node": ".NETFramework\\*\\NGenService\\**"
}
]
},
"inclusions": {
"edges": [
{
"node": "Classes\\*\\ShellEx\\*\\*"
}
]
},
"path": "HKEY_LOCAL_MACHINE\\a\\b*\\c",
"watchlistPathType": "Registry"
},
"error": null
}
}
}
Delete Integrity Monitor watchlist path
mutation.integrityMonitorWatchlistPathDelete
The integrityMonitorWatchlistPathDelete mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation deletes a watchlist path that matches the ID 123.
mutation exampleDeleteIMPath($ref: IdRefInput!) {
integrityMonitorWatchlistPathDelete(input: $ref) {
pathID
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"ref": {
"id": "123"
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistPathDelete": {
"pathID": "123",
"error": null
}
}
}
Deploy Integrity Monitor monitors
mutation.integrityMonitorStartMonitorDeployment
The integrityMonitorStartMonitorDeployment mutation requires Integrity Monitor and the Integrity Monitor Deploy Monitors permission.
The following mutation deploys all monitors. Monitors marked for deletion are deleted during this deployment.
mutation exampleStartMonitorDeployment {
integrityMonitorStartMonitorDeployment {
error {
message
retryable
timedOut
}
}
}
Example response:
{
"data": {
"integrityMonitorStartMonitorDeployment": {
"error": null
}
}
}
Deploy Integrity Monitor watchlists
mutation.integrityMonitorStartWatchlistDeployment
The integrityMonitorStartWatchlistDeployment mutation requires Integrity Monitor and the Integrity Monitor Deploy Watchlists permission.
The following mutation deploys all watchlists. Watchlists marked for deletion are deleted during this deployment.
mutation exampleStartWatchlistDeployment {
integrityMonitorStartWatchlistDeployment {
error {
message
retryable
timedOut
}
}
}
Example response:
{
"data": {
"integrityMonitorStartWatchlistDeployment": {
"error": null
}
}
}
Get Integrity Monitor monitor by ID
query.integrityMonitorMonitor
The integrityMonitorMonitor query requires Integrity Monitor and the Integrity Monitor Monitor read permission.
The following query retrieves the monitor that matches the ID.
query exampleGetIMMonitorByID($id: ID!) {
integrityMonitorMonitor(ref: {id: $id}) {
id
collectProcessInformation
computerGroups {
edges {
node {
id
contentSetV2 {
id
name
description
}
expression
filterEnabled
managementRightsEnabled
modifiedTime
name
type
}
}
}
databaseMaximumSizeMegabytes
deploymentStatus
description
indexFirstScanDistributeOverTime {
seconds
nanoseconds
}
indexScanFrequency {
seconds
nanoseconds
}
monitorPruningAge {
seconds
nanoseconds
}
name
priority
revision
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"id": "123"
}
Example response:
{
"data": {
"integrityMonitorMonitor": {
"id": "123",
"collectProcessInformation": true,
"computerGroups": {
"edges": [
{
"node": {
"id": "75",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Is Linux equals True",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"name": "All Linux",
"type": "STANDARD"
}
}
]
},
"databaseMaximumSizeMegabytes": null,
"deploymentStatus": "PendingDeployment",
"description": "",
"indexFirstScanDistributeOverTime": {
"seconds": 14400,
"nanoseconds": 0
},
"indexScanFrequency": {
"seconds": 43200,
"nanoseconds": 0
},
"monitorPruningAge": {
"seconds": 2592000,
"nanoseconds": 0
},
"name": "Linux Monitor",
"priority": 3,
"revision": 5
}
}
}
Get Integrity Monitor service status
query.integrityMonitorStatus
The integrityMonitorStatus query requires Integrity Monitor and the following permissions:
-
Integrity Monitor Monitors read and Integrity Monitor Watchlists read permissions to submit the query request
-
Integrity Monitor Deploy Monitors permission to get monitor deployment status (isDeployingMonitors)
-
Integrity Monitor Deploy Watchlists permission to get watchlist deployment status( isDeployingWatchlists)
The following query retrieves the Integrity Monitor service status.
query exampleGetIMServiceStatus {
integrityMonitorStatus {
isDeployingMonitors
isDeployingWatchlists
}
}
Example response:
{
"data": {
"integrityMonitorStatus": {
"isDeployingMonitors": true,
"isDeployingWatchlists": true
}
}
}
Get Integrity Monitor watchlist by ID
query.integrityMonitorWatchlist
The integrityMonitorWatchlist query requires Integrity Monitor and the Integrity Monitor Watchlists read permission.
The following query retrieves the watchlist that matches the ID.
query exampleGetIMWatchlistByID($id: ID!) {
integrityMonitorWatchlist(ref: {id: $id}) {
id
name
computerGroups {
edges {
node {
id
name
managementRightsEnabled
filterEnabled
contentSetV2 {
id
name
description
}
type
expression
}
}
}
deploymentStatus
description
paths {
edges {
node {
path
watchlistPathType
includeFilePermissionChanges
inclusions {
edges {
node
}
}
exclusions {
edges {
node
}
}
}
}
}
pathStyle
revision
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"id": "123"
}
Example response:
{
"data": {
"integrityMonitorWatchlist": {
"id": "123",
"name": "Example watchlist update",
"computerGroups": {
"edges": [
{
"node": {
"id": "1",
"name": "All Computers",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "1",
"name": "Reserved",
"description": "Built in sensors which can not be edited or removed."
},
"type": "STANDARD",
"expression": " All Computers"
}
},
{
"node": {
"id": "123",
"name": "All Debian 9",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"type": "STANDARD",
"expression": " Operating System Generation equals Debian 9"
}
}
]
},
"deploymentStatus": "PendingDeployment",
"description": "example watchlist update",
"paths": {
"edges": [
{
"node": {
"path": "/a/b*/c",
"watchlistPathType": "File",
"includeFilePermissionChanges": true,
"inclusions": {
"edges": [
{
"node": ".ssh/\\*\\*"
}
]
},
"exclusions": {
"edges": []
}
}
}
]
},
"pathStyle": "Unix",
"revision": 3
}
}
}
Get multiple Integrity Monitor monitors
query.integrityMonitorMonitors
The integrityMonitorMonitors query requires Integrity Monitor and the Integrity Monitor Monitor read permission.
The following query retrieves the first 2 monitors.
query exampleGetMultipleIMMonitors($first: Int) {
integrityMonitorMonitors(first: $first) {
edges {
node {
id
collectProcessInformation
computerGroups {
edges {
node {
id
contentSetV2 {
id
name
description
}
expression
filterEnabled
managementRightsEnabled
modifiedTime
name
type
}
}
}
databaseMaximumSizeMegabytes
deploymentStatus
description
indexFirstScanDistributeOverTime {
seconds
nanoseconds
}
indexScanFrequency {
seconds
nanoseconds
}
monitorPruningAge {
seconds
nanoseconds
}
name
priority
revision
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"integrityMonitorMonitors": {
"edges": [
{
"node": {
"id": "123",
"collectProcessInformation": true,
"computerGroups": {
"edges": []
},
"databaseMaximumSizeMegabytes": null,
"deploymentStatus": "PendingDeployment",
"description": "",
"indexFirstScanDistributeOverTime": {
"seconds": 0,
"nanoseconds": 0
},
"indexScanFrequency": {
"seconds": 600,
"nanoseconds": 0
},
"monitorPruningAge": {
"seconds": 2592000,
"nanoseconds": 0
},
"name": "example monitor",
"priority": 1,
"revision": 6
}
},
{
"node": {
"id": "234",
"collectProcessInformation": true,
"computerGroups": {
"edges": [
{
"node": {
"id": "234",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Operating System Generation equals Windows Server 2008 R2",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"name": "All Windows Server 2008 R2",
"type": "STANDARD"
}
},
{
"node": {
"id": "345",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Operating System Generation equals Windows Server 2016",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"name": "All Windows Server 2016",
"type": "STANDARD"
}
},
{
"node": {
"id": "456",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Operating System Generation equals Windows Server 2019",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"name": "All Windows Server 2019",
"type": "STANDARD"
}
},
{
"node": {
"id": "567",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Operating System Generation equals Windows Server 2022",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"name": "All Windows Server 2022",
"type": "STANDARD"
}
},
{
"node": null
}
]
},
"databaseMaximumSizeMegabytes": null,
"deploymentStatus": "PendingDeployment",
"description": "",
"indexFirstScanDistributeOverTime": {
"seconds": 14400,
"nanoseconds": 0
},
"indexScanFrequency": {
"seconds": 43200,
"nanoseconds": 0
},
"monitorPruningAge": {
"seconds": 2592000,
"nanoseconds": 0
},
"name": "Windows Monitor",
"priority": 2,
"revision": 6
}
}
]
}
}
}
Get multiple Integrity Monitor watchlists
query.integrityMonitorWatchlists
The integrityMonitorWatchlists query requires Integrity Monitor and the Integrity Monitor Watchlists read permission.
The following query retrieves the first 2 watchlists.
query exampleGetIMWatchlists($first: Int) {
integrityMonitorWatchlists(first: $first) {
edges {
node {
id
name
computerGroups {
edges {
node {
id
name
managementRightsEnabled
filterEnabled
contentSetV2 {
id
name
description
}
type
expression
}
}
}
deploymentStatus
description
paths {
edges {
node {
path
watchlistPathType
includeFilePermissionChanges
inclusions {
edges {
node
}
}
exclusions {
edges {
node
}
}
}
}
}
pathStyle
revision
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"integrityMonitorWatchlists": {
"edges": [
{
"node": {
"id": "12",
"name": "Example AIX Watchlist",
"computerGroups": {
"edges": [
{
"node": {
"id": "33",
"name": "All AIX",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"type": "STANDARD",
"expression": " Is AIX equals True"
}
}
]
},
"deploymentStatus": "Deployed",
"description": "",
"paths": {
"edges": [
{
"node": {
"path": "/bin",
"watchlistPathType": "File",
"includeFilePermissionChanges": true,
"inclusions": {
"edges": []
},
"exclusions": {
"edges": [
{
"node": "**.db"
},
{
"node": "**.log"
},
{
"node": "**.state"
},
{
"node": "**.tmp"
}
]
}
}
},
{
"node": {
"path": "/boot",
"watchlistPathType": "File",
"includeFilePermissionChanges": true,
"inclusions": {
"edges": [
{
"node": "efi/**"
},
{
"node": "grub/**"
},
{
"node": "grub2/**"
}
]
},
"exclusions": {
"edges": []
}
}
},
{
"node": {
"path": "/etc/shells",
"watchlistPathType": "File",
"includeFilePermissionChanges": true,
"inclusions": {
"edges": []
},
"exclusions": {
"edges": []
}
}
}
]
},
"pathStyle": "Unix",
"revision": 2
}
},
{
"node": {
"id": "23",
"name": "Example watchlist",
"computerGroups": {
"edges": [
{
"node": {
"id": "1",
"name": "All Computers",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "1",
"name": "Reserved",
"description": "Built in sensors which can not be edited or removed."
},
"type": "STANDARD",
"expression": " All Computers"
}
}
]
},
"deploymentStatus": "Deployed",
"description": "",
"paths": {
"edges": [
{
"node": {
"path": "C:\\example",
"watchlistPathType": "File",
"includeFilePermissionChanges": true,
"inclusions": {
"edges": []
},
"exclusions": {
"edges": []
}
}
},
{
"node": {
"path": "HKEY_LOCAL_MACHINE\\SYSTEM\\EXAMPLE",
"watchlistPathType": "Registry",
"includeFilePermissionChanges": false,
"inclusions": {
"edges": []
},
"exclusions": {
"edges": []
}
}
}
]
},
"pathStyle": "Windows",
"revision": 3
}
}
]
}
}
}
Mark Integrity Monitor monitors for deletion
mutation.integrityMonitorMonitorMarkForDeletion
The integrityMonitorMonitorMarkForDeletion mutation requires Integrity Monitor and the Integrity Monitor Monitors write permission.
The following mutation marks the monitor that matches the ID 123 for deletion. Monitors marked for deletion are deleted during the next monitor deployment.
mutation exampleMarkIMMonitorForDeletion($ref: IdRefInput!) {
integrityMonitorMonitorMarkForDeletion(input: $ref) {
monitor {
id
name
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"ref": {
"id": "123"
}
}
Example response:
{
"data": {
"integrityMonitorMonitorMarkForDeletion": {
"monitor": {
"id": "123",
"name": "example monitor"
},
"error": null
}
}
}
Mark Integrity Monitor watchlists for deletion
mutation.integrityMonitorWatchlistMarkForDeletion
The integrityMonitorWatchlistMarkForDeletion mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation marks the watchlist that matches the ID 123 for deletion. Watchlists marked for deletion are deleted during the next watchlist deployment.
mutation exampleDeleteWatchlist($ref: IdRefInput!) {
integrityMonitorWatchlistMarkForDeletion(input: $ref) {
watchlist {
id
name
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"ref": {
"id": "123"
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistMarkForDeletion": {
"watchlist": {
"id": "123",
"name": "example watchlist"
},
"error": null
}
}
}
Update Integrity Monitor monitor by ID
mutation.integrityMonitorMonitorUpdate
The integrityMonitorMonitorUpdate mutation requires Integrity Monitor and the Integrity Monitor Monitors write permission.
The following mutation updates a monitor that matches the ID. Note the following:
-
The response returns an error if no monitor matches the ID, the name value is an empty string or null, or the name value is updated to a name that matches another monitor.
-
Fields defined with a value overwrite the existing field value with the defined value. Defining an array with at least one value for the computerGroups field overwrites all existing array values with the defined array values.
-
Fields defined with a null value are not updated, if null is allowed.
-
Fields defined with an empty string or empty array replace any existing value with the empty string or empty array, if an empty string or empty array are allowed.
mutation exampleUpdateIMMonitor($input: IntegrityMonitorMonitorUpdateInput!) {
integrityMonitorMonitorUpdate(input: $input) {
monitor {
id
collectProcessInformation
computerGroups {
edges {
node {
id
contentSetV2 {
id
name
description
}
expression
filterEnabled
managementRightsEnabled
modifiedTime
name
type
}
}
}
databaseMaximumSizeMegabytes
deploymentStatus
description
indexFirstScanDistributeOverTime {
nanoseconds
seconds
}
indexScanFrequency {
nanoseconds
seconds
}
monitorPruningAge {
nanoseconds
seconds
}
name
priority
revision
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12",
"collectProcessInformation": true,
"computerGroups": {
"id": "123"
},
"databaseMaximumSizeMegabytes": 1024,
"description": "example monitor",
"indexFirstScanDistributeOverTime": {
"seconds": 14400,
"nanoseconds": 0
},
"indexScanFrequency": {
"seconds": 43200,
"nanoseconds": 0
},
"monitorPruningAge": {
"seconds": 86400,
"nanoseconds": 0
},
"name": "Example monitor",
"priority": 1
}
}
Example response:
{
"data": {
"integrityMonitorMonitorUpdate": {
"monitor": {
"id": "12",
"collectProcessInformation": true,
"computerGroups": {
"edges": [
{
"node": {
"id": "123",
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"expression": " Operating System Generation equals Windows 10",
"filterEnabled": true,
"managementRightsEnabled": true,
"modifiedTime": null,
"name": "All Windows 10",
"type": "STANDARD"
}
}
]
},
"databaseMaximumSizeMegabytes": 1024,
"deploymentStatus": "PendingDeployment",
"description": "example monitor",
"indexFirstScanDistributeOverTime": {
"nanoseconds": 0,
"seconds": 14400
},
"indexScanFrequency": {
"nanoseconds": 0,
"seconds": 43200
},
"monitorPruningAge": {
"nanoseconds": 0,
"seconds": 86400
},
"name": "Example monitor",
"priority": 1,
"revision": 2
},
"error": null
}
}
}
Update Integrity Monitor watchlist
mutation.integrityMonitorWatchlistUpdate
The integrityMonitorWatchlistUpdate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation updates a watchlist that matches the ID. Note the following:
-
The response returns an error if no watchlist matches the ID, the name value is an empty string or null, or the name value is updated to a name that matches another watchlist with the same pathStyle value.
-
Fields defined with a value overwrite the existing field value with the defined value. Defining an array with at least one value for the computerGroups field overwrites all existing array values with the defined array values.
-
Fields defined with a null value are not updated, if null is allowed.
-
Fields defined with an empty string or empty array replace any existing value with the empty string or empty array, if an empty string or empty array are allowed.
-
If you change the pathStyle of a watchlist, all of the watchlist paths are deleted because paths must match the watchlist path style.
mutation exampleUpdateIMWatchlist($input: IntegrityMonitorWatchlistUpdateInput!) {
integrityMonitorWatchlistUpdate(input: $input) {
watchlist {
id
name
computerGroups {
edges {
node {
id
name
managementRightsEnabled
filterEnabled
contentSetV2 {
id
name
description
}
type
expression
}
}
}
deploymentStatus
description
paths {
edges {
node {
path
watchlistPathType
includeFilePermissionChanges
inclusions {
edges {
node
}
}
exclusions {
edges {
node
}
}
}
}
}
pathStyle
revision
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "123",
"computerGroups": [
{
"name": "All Computers"
},
{
"id": "123"
}
],
"description": "example watchlist update",
"name": "Example watchlist update",
"pathStyle": "Windows"
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistUpdate": {
"watchlist": {
"id": "123",
"name": "Example watchlist update",
"computerGroups": {
"edges": [
{
"node": {
"id": "1",
"name": "All Computers",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "1",
"name": "Reserved",
"description": "Built in sensors which can not be edited or removed."
},
"type": "STANDARD",
"expression": " All Computers"
}
},
{
"node": {
"id": "123",
"name": "All Windows 8.1",
"managementRightsEnabled": true,
"filterEnabled": true,
"contentSetV2": {
"id": "3",
"name": "Default Filter Groups",
"description": null
},
"type": "STANDARD",
"expression": " Operating System Generation equals Windows 8.1"
}
}
]
},
"deploymentStatus": "PendingDeployment",
"description": "example watchlist update",
"paths": {
"edges": []
},
"pathStyle": "Windows",
"revision": 5
},
"error": null
}
}
}
Update Integrity Monitor watchlist Unix path
mutation.integrityMonitorWatchlistUnixPathUpdate
The integrityMonitorWatchlistUnixPathUpdate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation updates a Unix-style watchlist path that uses forward slashes (/). This path matches the ID 1234.
mutation exampleUpdateIMUnixPath($input: IntegrityMonitorWatchlistUnixPathUpdateInput!) {
integrityMonitorWatchlistUnixPathUpdate(input: $input) {
watchlistPath {
id
exclusions {
edges {
node
}
}
inclusions {
edges {
node
}
}
path
watchlistPathType
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "1234",
"path": "/a/b*/c",
"inclusions": [
".ssh/\\*\\*"
],
"exclusions": [
"\\*\\*.log"
]
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistUnixPathUpdate": {
"watchlistPath": {
"id": "1234",
"exclusions": {
"edges": [
{
"node": "\\*\\*.log"
}
]
},
"inclusions": {
"edges": [
{
"node": ".ssh/\\*\\*"
}
]
},
"path": "/a/b*/c",
"watchlistPathType": "File"
},
"error": null
}
}
}
Update Integrity Monitor watchlist Windows file path
mutation.integrityMonitorWatchlistWindowsFilePathUpdate
The integrityMonitorWatchlistWindowsFilePathUpdate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation updates a Windows-style watchlist file path that uses backslashes (\). This path matches the ID 2345.
mutation exampleUpdateIMWinFilePath($input: IntegrityMonitorWatchlistWindowsFilePathUpdateInput!) {
integrityMonitorWatchlistWindowsFilePathUpdate(input: $input) {
watchlistPath {
id
exclusions {
edges {
node
}
}
includeFilePermissionChanges
inclusions {
edges {
node
}
}
path
watchlistPathType
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "2345",
"path": "C:\\Program Files",
"inclusions": [
"**.pem",
"**.log"
],
"exclusions": [
"**.db"
],
"includeFilePermissionChanges": true
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistWindowsFilePathUpdate": {
"watchlistPath": {
"id": "2345",
"exclusions": {
"edges": [
{
"node": "**.db"
}
]
},
"includeFilePermissionChanges": true,
"inclusions": {
"edges": [
{
"node": "**.log"
},
{
"node": "**.pem"
}
]
},
"path": "C:\\Program Files",
"watchlistPathType": "File"
},
"error": null
}
}
}
Update Integrity Monitor watchlist Windows registry path
mutation.integrityMonitorWatchlistWindowsRegistryPathUpdate
The integrityMonitorWatchlistWindowsRegistryPathUpdate mutation requires Integrity Monitor and the Integrity Monitor Watchlists write permission.
The following mutation updates a Windows-style watchlist registry path that uses backslashes (\). This path matches the ID 12345.
mutation exampleUpdateIMWinRegPath($input: IntegrityMonitorWatchlistWindowsRegistryPathUpdateInput!) {
integrityMonitorWatchlistWindowsRegistryPathUpdate(input: $input) {
watchlistPath {
id
exclusions {
edges {
node
}
}
inclusions {
edges {
node
}
}
path
watchlistPathType
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12345",
"path": "HKEY_LOCAL_MACHINE\\a\\b*\\c",
"inclusions": [
"Classes\\*\\ShellEx\\*\\*",
".NETFramework\\*\\NGenService\\**"
],
"exclusions": [
"Cryptography\\CertificateTemplateCache\\*"
]
}
}
Example response:
{
"data": {
"integrityMonitorWatchlistWindowsRegistryPathUpdate": {
"watchlistPath": {
"id": "12345",
"exclusions": {
"edges": [
{
"node": "Cryptography\\CertificateTemplateCache\\*"
}
]
},
"inclusions": {
"edges": [
{
"node": "Classes\\*\\ShellEx\\*\\*"
},
{
"node": ".NETFramework\\*\\NGenService\\**"
}
]
},
"path": "HKEY_LOCAL_MACHINE\\a\\b*\\c",
"watchlistPathType": "Registry"
},
"error": null
}
}
}
Jump Gate examples
The following request requires Jump Gate to create Jump Gate requests.
Create Jump Gate request
(mutation.jumpGateRequestCreate)
The jumpGateCreate mutation requires Jump Gate and the Jump Gate Requests write permission.
The following mutation creates a Jump Gate request to access a Window endpoint.
mutation exampleJumpGateRequestCreate($input: JumpGateRequestInput!) {
jumpGateRequestCreate(input: $input) {
request {
id
createdBy {
id
username
displayName
}
createdTime
updatedBy {
id
username
displayName
}
updatedTime
closedBy {
id
username
displayName
}
closedTime
expirationTime
policy {
approvingUserIDs
approvingUsers {
id
username
displayName
}
approvingUserGroupIDs
}
justification
targets {
createdTime
targetID
targetDetails {
name
id
serialNumber
model
isVirtual
operatingSystemPlatform
taniumClientIPAddress
lastSeenTime
}
}
approvalStatus
approvals {
id
updatedBy {
id
username
displayName
}
updatedTime
requestID
action
reason
}
notifications {
id
createdTime
notificationType
}
settings {
sessionIdleAfter {
nanoseconds
seconds
}
maxSessionDuration {
nanoseconds
seconds
}
maxCommandDuration {
nanoseconds
seconds
}
}
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"targets": [
{
"targetID": "123456",
"accessType": "POWERSHELL"
}
],
"justification": "Debug the endpoint"
}
}
Example response:
{
"data": {
"jumpGateRequestCreate": {
"request": {
"id": "019c4463-a011-7b4a-9789-f52cbf759b7f",
"createdBy": {
"id": "971",
"username": "exampleusername",
"displayName": null
},
"createdTime": "2026-02-09T21:51:45.68174Z",
"updatedBy": {
"id": "971",
"username": "example.user@company.com",
"displayName": null
},
"updatedTime": "2026-02-09T21:51:45.68174Z",
"closedBy": null,
"closedTime": null,
"expirationTime": "2026-02-11T21:51:45.681726Z",
"policy": null,
"justification": "Debug endpoints",
"targets": [
{
"createdTime": "2026-02-09T21:51:45.727457Z",
"targetID": "123456",
"targetDetails": {
"name": "gateway-windows-endpoint",
"id": "4477998899",
"serialNumber": "VMware-42 1d f8 5e 99 b3 c6 64-ba 8a 6d 97 bc 45 42 85",
"model": "VMware Virtual Platform",
"isVirtual": null,
"operatingSystemPlatform": "Windows",
"taniumClientIPAddress": "10.10.99.99",
"lastSeenTime": "2026-02-09T21:51:40Z"
}
}
],
"approvalStatus": "PENDING",
"approvals": [],
"notifications": [],
"settings": null
},
"error": null
}
}
}
Patch examples
The following requests require Patch to create, retrieve, and stop Patch deployments.
Get patch applicability
(query.endpoints)
The following query retrieves a list of patches that can be applied to endpoints in a specified computer group.
query exampleGetEndpointsPatch($cg: String!) {
endpoints(filter: {memberOf: {name: $cg}}) {
totalRecords
edges {
node {
computerID
name
sensorReadings(sensors: [{name: "Patch - Patch List Applicability"}]) {
columns {
name
values
}
}
}
}
}
}
Include the computer group variable in the Variables panel or in your variables dictionary:
{
"cg": "Corporate Systems"
}
Example response:
{
"data": {
"endpoints": {
"totalRecords": 2,
"edges": [
{
"node": {
"computerID": "1847392056",
"name": "ws-win10-prod-01",
"sensorReadings": {
"columns": [
{
"name": "Patch List Ids",
"values": [
"1,2,3,37",
"1,2,3,31,8",
"1,2,3,35,37",
"1,2,3,31,90",
"1,3,31,42,",
"1,3,49,50,52,8"
]
},
{
"name": "Title",
"values": [
"Windows Malicious Software Removal Tool x64 - v5.120 (KB890830)",
"2024-05 Cumulative Update for .NET Framework 3.5, 4.8 and 4.8.1 for Windows 10 Version 22H2 for x64 (KB5038285)",
"2024-05 Cumulative Update for Windows 10 Version 22H2 for x64-based Systems (KB5037768)",
"MSXML 6.0 RTM Security Update (KB925673)",
"2024-04 Cumulative Update for Windows 10 Version 22H2 for x64-based Systems (KB5036892)",
"2024-11 Security Update for Windows 10 Version 22H2 and Windows 10 Version 21H2 (KB5048239)"
]
},
{
"name": "Install Status",
"values": [
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed",
"Installed",
"Not Installed"
]
},
{
"name": "Uninstallable",
"values": [
"False",
"False",
"False",
"False",
"False",
"False"
]
},
{
"name": "Severity",
"values": [
"None",
"Important",
"Critical",
"Critical",
"Critical",
"Important"
]
},
{
"name": "Release Date",
"values": [
"5/14/2024",
"5/14/2024",
"5/14/2024",
"4/4/2012",
"4/9/2024",
"11/12/2024"
]
},
{
"name": "Bulletins",
"values": [
"N/A",
"N/A",
"N/A",
"MS06-061",
"N/A",
"N/A"
]
},
{
"name": "Size in Bytes",
"values": [
"71843328",
"74789356",
"691901888",
"1853208",
"687076099",
"89234560"
]
},
{
"name": "KB Articles",
"values": [
"KB890830",
"KB5038285",
"KB5037768",
"KB925673",
"KB5036892",
"KB5048239"
]
},
{
"name": "CVE IDs",
"values": [
"None",
"None",
"CVE-2024-30006 CVE-2024-30008 CVE-2024-30009 CVE-2024-30010 CVE-2024-30013 CVE-2024-30014 CVE-2024-30015 CVE-2024-30016 CVE-2024-30017 CVE-2024-30019 CVE-2024-30020 CVE-2024-30022 CVE-2024-30040 CVE-2024-30051",
"CVE-2006-4685 CVE-2006-4686",
"CVE-2024-26169 CVE-2024-26184 CVE-2024-26234 CVE-2024-28899 CVE-2024-30040 CVE-2024-30051",
"CVE-2024-43625"
]
},
{
"name": "Superseded",
"values": [
"False",
"False",
"False",
"False",
"True",
"False"
]
},
{
"name": "Custom Field",
"values": [
"None",
"None",
"None",
"None",
"None",
"None"
]
},
{
"name": "OS Type",
"values": [
"Windows",
"Windows",
"Windows",
"Windows",
"Windows",
"Windows"
]
},
{
"name": "Product",
"values": [
"Windows 10---Windows 10 LTSB---Windows 10, version 1903 and later---Windows 11",
"Windows 10, version 1903 and later",
"Windows 10, version 1903 and later",
"SQL Server Feature Pack",
"Windows 10, version 1903 and later",
"Windows 10, version 1903 and later"
]
},
{
"name": "Classification",
"values": [
"Update Rollups",
"Security Updates",
"Security Updates",
"Security Updates",
"Security Updates",
"Security Updates"
]
}
]
}
}
},
{
"node": {
"computerID": "2502458661",
"name": "ubuntu-2004",
"sensorReadings": {
"columns": [
{
"name": "Patch List Ids",
"values": [
"1,22,28,3",
"1,22,28,3",
"1,22,28,3",
"1,22,28,3",
"1,22,28,3",
"1,22,28,3",
"1,22,28,3",
"1,22,28,3",
"1,22,28,3",
"1,22,26,28,3"
]
},
{
"name": "Title",
"values": [
"python3-debian 0.1.36ubuntu1.1 in focal",
"python3-apport 2.20.11-0ubuntu27.28 in focal",
"grub-common 2.04-1ubuntu26.17 in focal",
"python3-distro-info 0.23ubuntu1.1 in focal",
"iputils-ping 3:20190709-3ubuntu1 in focal",
"systemd-sysv 245.4-4ubuntu3.24 in focal",
"python3-update-manager 1:20.04.10.23 in focal",
"base-files 11ubuntu5.8 in focal",
"ubuntu-release-upgrader-core 1:20.04.41 in focal",
"linux-firmware 1.187.39 in focal"
]
},
{
"name": "Install Status",
"values": [
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed",
"Not Installed"
]
},
{
"name": "Uninstallable",
"values": [
"False",
"False",
"False",
"False",
"False",
"False",
"False",
"False",
"False",
"False"
]
},
{
"name": "Severity",
"values": [
"Moderate",
"Moderate",
"Moderate",
"Moderate",
"Moderate",
"Moderate",
"Moderate",
"Moderate",
"Moderate",
"Moderate"
]
},
{
"name": "Release Date",
"values": [
"7/13/2023",
"5/12/2020",
"6/5/2023",
"8/3/2023",
"1/9/2024",
"9/17/2024",
"9/25/2024",
"1/18/2024",
"3/14/2023",
"5/15/2023"
]
},
{
"name": "Bulletins",
"values": [
"N/A",
"N/A",
"N/A",
"N/A",
"N/A",
"N/A",
"N/A",
"N/A",
"N/A",
"N/A"
]
},
{
"name": "Size in Bytes",
"values": [
"64932",
"86980",
"1871752",
"5944",
"40000",
"10284",
"38504",
"60332",
"24312",
"136166424"
]
},
{
"name": "KB Articles",
"values": [
"LAUNCHPAD-python3-debian",
"LAUNCHPAD-python3-apport",
"LAUNCHPAD-grub-common",
"LAUNCHPAD-python3-distro-info",
"LAUNCHPAD-iputils-ping",
"LAUNCHPAD-systemd-sysv",
"LAUNCHPAD-python3-update-manager",
"LAUNCHPAD-base-files",
"LAUNCHPAD-ubuntu-release-upgrader-core",
"LAUNCHPAD-linux-firmware"
]
},
{
"name": "CVE IDs",
"values": [
"None",
"None",
"None",
"None",
"None",
"None",
"None",
"None",
"None",
"None"
]
},
{
"name": "Superseded",
"values": [
"False",
"False",
"False",
"False",
"False",
"False",
"False",
"False",
"False",
"False"
]
},
{
"name": "Custom Field",
"values": [
"None",
"None",
"None",
"None",
"None",
"None",
"None",
"None",
"None",
"None"
]
},
{
"name": "OS Type",
"values": [
"Linux",
"Linux",
"Linux",
"Linux",
"Linux",
"Linux",
"Linux",
"Linux",
"Linux",
"Linux"
]
},
{
"name": "Product",
"values": [
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20",
"Ubuntu 20"
]
},
{
"name": "Classification",
"values": [
"updates",
"security",
"updates",
"updates",
"updates",
"updates",
"updates",
"updates",
"updates",
"updates"
]
}
]
}
}
}
]
}
}
}
Create a Linux patch deployment
(mutation.patchCreateDeployment)
The patchCreateDeployment mutation requires the Patch Deployment write and Patch Deployment execute permissions.
The following mutation creates a new deployment for installing Linux patches on targeted endpoints.
mutation exampleCreateLinuxPatchDeployment($input: PatchCreateDeploymentInput!) {
patchCreateDeployment(input: $input) {
deployment {
id
author {
id
displayName
username
}
contentDeploymentType
contentSet {
id
}
createdTime
description
downloadImmediately
name
notifications {
postDeployment {
body
countdownToDeadline {
nanoseconds
seconds
}
notificationPeriodDuration {
nanoseconds
seconds
}
postponeOptions {
durationOne {
nanoseconds
seconds
}
durationTwo {
nanoseconds
seconds
}
durationThree {
nanoseconds
seconds
}
}
title
translations {
body
languageCode
title
}
}
}
overrideBlocklists
patches {
id
}
patchLists {
id
version
}
platform
restart
schedule {
distributeOver {
nanoseconds
seconds
}
endTime
eussAvailableBeforeStart
eussHideFromActivity
overrideMaintenanceWindows
startTime
timeZone
type
}
status
stoppedTime
targets {
computerGroups {
id
}
}
type
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"contentDeploymentType": "ALL_UPDATES",
"contentSet": {
"id": "123"
},
"description": "example Patch deployment for Linux",
"downloadImmediately": true,
"name": "example_deployment_linux",
"overrideBlocklists": false,
"patches": null,
"patchLists": [
{
"id": "234",
"version": 1
}
],
"platform": "LINUX",
"restart": false,
"schedule": {
"distributeOver": {
"seconds": 600
},
"endTime": "2025-02-01",
"eussAvailableBeforeStart": false,
"eussHideFromActivity": false,
"overrideMaintenanceWindows": false,
"startTime": "2025-01-01",
"timeZone": "EST",
"type": "SINGLE"
},
"targets": {
"computerGroups": [
{
"id": "123"
}
]
},
"type": "INSTALL"
}
}
Example response:
{
"data": {
"patchCreateDeployment": {
"deployment": {
"id": "123",
"author": {
"id": "1",
"displayName": null,
"username": "Administrator"
},
"contentDeploymentType": "ALL_UPDATES",
"contentSet": {
"id": "123"
},
"createdTime": "2023-10-18T18:48:43.515Z",
"description": "example Patch deployment for Linux",
"downloadImmediately": true,
"name": "example_deployment_linux",
"notifications": null,
"overrideBlocklists": false,
"patches": [],
"patchLists": [
{
"id": "234",
"version": 1
}
],
"platform": "LINUX",
"restart": false,
"schedule": {
"distributeOver": {
"nanoseconds": 0,
"seconds": 600
},
"endTime": "2025-02-01T00:00:00.000Z",
"eussAvailableBeforeStart": false,
"eussHideFromActivity": false,
"overrideMaintenanceWindows": false,
"startTime": "2025-01-01T00:00:00.000Z",
"timeZone": "EST",
"type": "SINGLE"
},
"status": "INACTIVE",
"stoppedTime": null,
"targets": {
"computerGroups": [
{
"id": "123"
}
]
},
"type": "INSTALL",
"updatedTime": "2023-10-18T18:48:43.515Z"
},
"error": null
}
}
}
Create a Windows patch deployment
(mutation.patchCreateDeployment)
The patchCreateDeployment mutation requires the Patch Deployment write and Patch Deployment execute permissions.
The following mutation creates a new deployment for installing Windows patches on targeted endpoints.
mutation exampleCreateWindowsPatchDeployment($input: PatchCreateDeploymentInput!) {
patchCreateDeployment(input: $input) {
deployment {
id
author {
id
displayName
username
}
contentDeploymentType
contentSet {
id
}
createdTime
description
downloadImmediately
name
notifications {
postDeployment {
body
countdownToDeadline {
nanoseconds
seconds
}
notificationPeriodDuration {
nanoseconds
seconds
}
postponeOptions {
durationOne {
nanoseconds
seconds
}
durationTwo {
nanoseconds
seconds
}
durationThree {
nanoseconds
seconds
}
}
title
translations {
body
languageCode
title
}
}
}
overrideBlocklists
patches {
id
}
patchLists {
id
version
}
platform
restart
schedule {
distributeOver {
nanoseconds
seconds
}
endTime
eussAvailableBeforeStart
eussHideFromActivity
overrideMaintenanceWindows
startTime
timeZone
type
}
status
stoppedTime
targets {
computerGroups {
id
}
}
type
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"contentDeploymentType": "MANUAL_SELECTION",
"contentSet": {
"id": "123"
},
"description": "example Patch deployment for Windows",
"downloadImmediately": true,
"name": "example_deployment_windows",
"notifications": {
"postDeployment": {
"body": "example text display",
"countdownToDeadline": {
"seconds": 15
},
"notificationPeriodDuration": {
"seconds": 1440
},
"postponeOptions": {
"durationOne": {
"seconds": 60
},
"durationTwo": {
"seconds": 120
},
"durationThree": {
"seconds": 240
}
},
"title": "example title",
"translations": [
{
"body": "ejemplo",
"languageCode": "es",
"title": "texto"
}
]
}
},
"overrideBlocklists": false,
"patches": null,
"patchLists": [
{
"id": "234",
"version": 1
}
],
"platform": "WINDOWS",
"restart": true,
"schedule": {
"distributeOver": {
"seconds": 600
},
"endTime": null,
"eussAvailableBeforeStart": false,
"eussHideFromActivity": false,
"overrideMaintenanceWindows": false,
"startTime": "2025-01-01",
"timeZone": "EST",
"type": "ONGOING"
},
"targets": {
"computerGroups": [
{
"id": "345"
}
]
},
"type": "INSTALL"
}
}
Example response:
{
"data": {
"patchCreateDeployment": {
"deployment": {
"id": "123",
"author": {
"id": "1",
"displayName": null,
"username": "admin"
},
"contentDeploymentType": "MANUAL_SELECTION",
"contentSet": {
"id": "123"
},
"createdTime": "2023-10-24T17:59:00.274Z",
"description": "example Patch deployment for Windows",
"downloadImmediately": true,
"name": "example_deployment_windows",
"notifications": {
"postDeployment": {
"body": "example text display",
"countdownToDeadline": {
"nanoseconds": 0,
"seconds": 0
},
"notificationPeriodDuration": {
"nanoseconds": 0,
"seconds": 1440
},
"postponeOptions": {
"durationOne": {
"nanoseconds": 0,
"seconds": 60
},
"durationTwo": {
"nanoseconds": 0,
"seconds": 120
},
"durationThree": {
"nanoseconds": 0,
"seconds": 240
}
},
"title": "example title",
"translations": [
{
"body": "ejemplo",
"languageCode": "es",
"title": "texto"
}
]
}
},
"overrideBlocklists": false,
"patches": [],
"patchLists": [
{
"id": "234",
"version": 1
}
],
"platform": "WINDOWS",
"restart": true,
"schedule": {
"distributeOver": {
"nanoseconds": 0,
"seconds": 600
},
"endTime": null,
"eussAvailableBeforeStart": false,
"eussHideFromActivity": false,
"overrideMaintenanceWindows": false,
"startTime": "2025-01-01T00:00:00.000Z",
"timeZone": "EST",
"type": "ONGOING"
},
"status": "INACTIVE",
"stoppedTime": null,
"targets": {
"computerGroups": [
{
"id": "345"
}
]
},
"type": "INSTALL",
"updatedTime": "2023-10-24T17:59:00.274Z"
},
"error": null
}
}
}
Get multiple patch definitions
(query.patchDefinitions)
The patchDefinition query requires the Patch show permission.
The following query retrieves the first patch definition that matches the specified CVE ID.
query exampleGetPatchDefinitions($first: Int, $filter: PatchDefinitionFieldFilter, $sort: PatchDefinitionFieldSort) {
patchDefinitions(first: $first, filter: $filter, sort: $sort) {
edges {
node {
id
createdDate
cveIds
isSuperseded
platform
releaseDate
severity
sizeInBytes
title
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the pagination and filter variables in the Variables panel or in your variables dictionary:
{
"first": 1,
"filter": {
"cveIds": [
"CVE-2014-123456"
]
},
"sort": {
"field": "releaseDate",
"order": "desc"
}
}
Example response:
{
"data": {
"patchDefinitions": {
"edges": [
{
"node": {
"id": "1234567890abcdef1234567890abcdef",
"createdDate": "2021-04-20",
"cveIds": [
"CVE-2014-123456"
],
"isSuperseded": false,
"platform": "LINUX",
"releaseDate": "2020-01-01",
"severity": "Important",
"sizeInBytes": 12345678,
"title": "example patch definition"
}
}
],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "eyJpZCI6ImE4OWE0ZGFkZWY2YWU0YTAzZDBjYzY5NGFhZjg4MzMzIiwiY3JlYXRlZERhdGUiOiIyMDIxLTA0LTIwVDA2OjAxOjQ2Ljg1MloiLCJyZWxlYXNlRGF0ZSI6IjIwMTItMDYtMThUMDA6MDA6MDAuMDAwWiJ9",
"endCursor": "eyJpZCI6ImE4OWE0ZGFkZWY2YWU0YTAzZDBjYzY5NGFhZjg4MzMzIiwiY3JlYXRlZERhdGUiOiIyMDIxLTA0LTIwVDA2OjAxOjQ2Ljg1MloiLCJyZWxlYXNlRGF0ZSI6IjIwMTItMDYtMThUMDA6MDA6MDAuMDAwWiJ9"
},
"totalRecords": 1
}
}
}
Get a patch deployment by ID
(query.patchDeployment)
The patchDeployment query requires the Patch Deployment read permission.
The following query retrieves the Patch deployment that matches the specified ID.
query exampleGetPatchDeployment($id: ID!) {
patchDeployment(ref: {id: $id}) {
id
author {
id
displayName
username
}
contentDeploymentType
contentSet {
id
}
createdTime
description
downloadImmediately
name
notifications {
postDeployment {
body
countdownToDeadline {
nanoseconds
seconds
}
notificationPeriodDuration {
nanoseconds
seconds
}
postponeOptions {
durationOne {
nanoseconds
seconds
}
durationTwo {
nanoseconds
seconds
}
durationThree {
nanoseconds
seconds
}
}
title
translations {
body
languageCode
title
}
}
}
overrideBlocklists
patches {
id
}
patchLists {
id
version
}
platform
restart
schedule {
distributeOver {
nanoseconds
seconds
}
endTime
eussAvailableBeforeStart
eussHideFromActivity
overrideMaintenanceWindows
startTime
timeZone
type
}
status
stoppedTime
targets {
computerGroups {
id
}
}
type
updatedTime
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"id": "123"
}
Example response:
{
"data": {
"patchDeployment": {
"id": "123",
"author": {
"id": "1",
"displayName": null,
"username": "Administrator"
},
"contentDeploymentType": "ALL_UPDATES",
"contentSet": {
"id": "123"
},
"createdTime": "2023-10-18T18:48:43.515Z",
"description": "example Patch deployment for Linux",
"downloadImmediately": true,
"name": "example_deployment_linux",
"notifications": null,
"overrideBlocklists": false,
"patches": [],
"patchLists": [
{
"id": "234",
"version": 1
}
],
"platform": "LINUX",
"restart": false,
"schedule": {
"distributeOver": {
"nanoseconds": 0,
"seconds": 600
},
"endTime": "2025-02-01T00:00:00.000Z",
"eussAvailableBeforeStart": false,
"eussHideFromActivity": false,
"overrideMaintenanceWindows": false,
"startTime": "2025-01-01T00:00:00.000Z",
"timeZone": "EST",
"type": "SINGLE"
},
"status": "INACTIVE",
"stoppedTime": null,
"targets": {
"computerGroups": [
{
"id": "1"
}
]
},
"type": "INSTALL",
"updatedTime": "2023-10-18T18:48:44.693Z"
}
}
}
Stop a patch deployment by ID
(mutation.patchStopDeployment)
The patchStopDeployment mutation requires the Patch Deployment write and Patch Deployment execute permissions.
The following mutation updates a deployment that matches the ID 123.
mutation exampleStopPatchDeployment($id: ID!) {
patchStopDeployment(ref: {id: $id}) {
deployment {
id
author {
id
displayName
username
}
contentDeploymentType
contentSet {
id
}
createdTime
description
downloadImmediately
name
notifications {
postDeployment {
body
countdownToDeadline {
nanoseconds
seconds
}
notificationPeriodDuration {
nanoseconds
seconds
}
postponeOptions {
durationOne {
nanoseconds
seconds
}
durationTwo {
nanoseconds
seconds
}
durationThree {
nanoseconds
seconds
}
}
title
translations {
body
languageCode
title
}
}
}
overrideBlocklists
patches {
id
}
patchLists {
id
version
}
platform
restart
schedule {
distributeOver {
nanoseconds
seconds
}
endTime
eussAvailableBeforeStart
eussHideFromActivity
overrideMaintenanceWindows
startTime
timeZone
type
}
status
stoppedTime
targets {
computerGroups {
id
}
}
type
updatedTime
}
error {
message
retryable
timedOut
}
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"id": "123"
}
Example response:
{
"data": {
"patchStopDeployment": {
"deployment": {
"id": "123",
"author": {
"id": "1",
"displayName": null,
"username": "Administrator"
},
"contentDeploymentType": "ALL_UPDATES",
"contentSet": {
"id": "123"
},
"createdTime": "2023-10-18T18:48:43.515Z",
"description": "example Patch deployment for Linux",
"downloadImmediately": true,
"name": "example_deployment_linux",
"notifications": null,
"overrideBlocklists": false,
"patches": null,
"patchLists": [
{
"id": "234",
"version": 1
}
],
"platform": "LINUX",
"restart": false,
"schedule": {
"distributeOver": {
"nanoseconds": 0,
"seconds": 600
},
"endTime": "2025-02-01T00:00:00.000Z",
"eussAvailableBeforeStart": false,
"eussHideFromActivity": false,
"overrideMaintenanceWindows": false,
"startTime": "2025-01-01T00:00:00.000Z",
"timeZone": "EST",
"type": "SINGLE"
},
"status": "STOPPED",
"stoppedTime": "2023-10-18T19:16:28.105Z",
"targets": {
"computerGroups": [
{
"id": "1"
}
]
},
"type": "INSTALL",
"updatedTime": "2023-10-18T19:16:28.123Z"
},
"error": null
}
}
}
Upsert (create or update by ID) a patch list
(mutation.patchListUpsert)
The patchListUpsert mutation requires the Patch Patchlist execute and Patch Patchlist write permissions.
The patchListUpsert mutation either creates a new patch list or updates the existing patch list that matches an ID.
The following mutation creates a new Linux patch list. The list defines two rules:
-
include all patches with "example" in the title
-
include all critical severity patches released in the past seven days
mutation examplePatchListCreate($input: PatchListUpsertInput!) {
patchListUpsert(input: $input) {
patchList {
id
name
author {
id
displayName
username
}
contentSet {
id
description
name
}
createdTime
includeSupersededPatches
isTaniumManaged
patchDefinitionIDs
platform
rules {
name
conditions {
comparisonOperator
fieldName
fieldValue
}
}
updatedTime
version
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "example_patch_list",
"platform": "LINUX",
"contentSet": {
"id": "234"
},
"patchDefinitionIDs": [],
"includeSupersededPatches": false,
"rules": [
{
"name": "example_rule_1",
"conditions": [
{
"fieldName": "TITLE",
"comparisonOperator": "CONTAINS",
"fieldValue": {
"value": "example"
}
}
]
},
{
"name": "example_rule_2",
"conditions": [
{
"fieldName": "RELEASE_DATE",
"comparisonOperator": "ON_OR_BEFORE_RELATIVE_DAYS",
"fieldValue": {
"releaseDateDaysAgo": 7
}
},
{
"fieldName": "SEVERITY",
"comparisonOperator": "EQUALS",
"fieldValue": {
"severity": "CRITICAL"
}
}
]
}
]
}
}
Example response:
{
"data": {
"patchListUpsert": {
"patchList": {
"id": "123",
"name": "example_patch_list",
"author": {
"id": "1",
"displayName": null,
"username": "admin"
},
"contentSet": {
"id": "53",
"description": "Default container for objects.",
"name": "Patch Content Set"
},
"createdTime": "2025-02-03T14:24:43.327Z",
"includeSupersededPatches": false,
"isTaniumManaged": false,
"patchDefinitionIDs": [],
"platform": "LINUX",
"rules": [
{
"name": "example_rule_1",
"conditions": [
{
"comparisonOperator": "CONTAINS",
"fieldName": "TITLE",
"fieldValue": "example"
}
]
},
{
"name": "example_rule_2",
"conditions": [
{
"comparisonOperator": "ON_OR_BEFORE_RELATIVE_DAYS",
"fieldName": "RELEASE_DATE",
"fieldValue": "7"
},
{
"comparisonOperator": "EQUALS",
"fieldName": "SEVERITY",
"fieldValue": "CRITICAL"
}
]
}
],
"updatedTime": "2025-02-03T14:24:43.370Z",
"version": 1
},
"error": null
}
}
}
The following mutation updates the patch list with the ID 123.
mutation examplePatchListUpdate($input: PatchListUpsertInput!) {
patchListUpsert(input: $input) {
patchList {
id
name
author {
id
displayName
username
}
contentSet {
id
description
name
}
createdTime
includeSupersededPatches
isTaniumManaged
patchDefinitionIDs
platform
rules {
name
conditions {
comparisonOperator
fieldName
fieldValue
}
}
updatedTime
version
}
error {
message
retryable
timedOut
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "123",
"name": "example_patch_list",
"platform": "LINUX",
"contentSet": {
"id": "234"
},
"patchDefinitionIDs": [],
"includeSupersededPatches": false,
"rules": [
{
"name": "example_rule_1",
"conditions": [
{
"fieldName": "TITLE",
"comparisonOperator": "CONTAINS",
"fieldValue": {
"value": "example"
}
}
]
}
]
}
}
Example response:
{
"data": {
"patchListUpsert": {
"patchList": {
"id": "123",
"name": "example_patch_list",
"author": {
"id": "1",
"displayName": null,
"username": "admin"
},
"contentSet": {
"id": "53",
"description": "Default container for objects.",
"name": "Patch Content Set"
},
"createdTime": "2025-02-03T14:24:43.327Z",
"includeSupersededPatches": false,
"isTaniumManaged": false,
"patchDefinitionIDs": [],
"platform": "LINUX",
"rules": [
{
"name": "example_rule_1",
"conditions": [
{
"comparisonOperator": "CONTAINS",
"fieldName": "TITLE",
"fieldValue": "example"
}
]
}
],
"updatedTime": "2025-02-03T14:24:43.370Z",
"version": 1
},
"error": null
}
}
}
Provision examples
The following requests require Provision to create, retrieve, update, and delete retirement action definitions, and create, retrieve, and update retirement actions.
(1.0 - Experimental (Early Development)) Cancel retirement action
(mutation.provisionCancelRetirementAction)
The provisionCancelRetirementAction mutation requires Provision and the Provision Retirement Actions write permission.
The following mutation cancels the retirement action that matches the ID 12, updating the status from pending to canceled.
pending.
mutation exampleProvisionCancelRetirementAction($input: ID!) {
provisionCancelRetirementAction(input: $input) {
retirementAction {
id
definitionID
status
eventLogs {
edges {
node {
id
stepName
status
details
actionID
messageID
createdTime
endpointActionCode
}
}
totalRecords
}
notes {
comment
requestedBy
ticketNumber
}
manualEntry
ipAddress
natIPAddress
createdTime
updatedTime
createdBy {
persona {
id
name
}
user {
id
username
displayName
}
}
updatedBy {
persona {
id
name
}
user {
id
username
displayName
}
}
}
error {
message
}
}
}
Include the input variable in the Variables panel or in your variables dictionary:
{
"input": 12
}
Example response:
{
"data": {
"provisionCancelRetirementAction": {
"retirementAction": {
"id": "12",
"definitionID": "1",
"status": "canceled",
"eventLogs": {
"edges": [],
"totalRecords": 0
},
"notes": {
"comment": "this is a comment",
"requestedBy": "requested by test",
"ticketNumber": null
},
"manualEntry": true,
"ipAddress": null,
"natIPAddress": null,
"createdTime": "2025-02-17T15:37:43.031212Z",
"updatedTime": "2025-02-17T15:41:55.423116Z",
"createdBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
},
"updatedBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
}
},
"error": null
}
}
}
(1.0 - Experimental (Early Development)) Create retirement action
(mutation.provisionCreateRetirementAction)
The provisionCreateRetirementAction mutation requires Provision and the Provision Retirement Actions write permission.
The following mutation creates a retirement action to retire a single endpoint, based on the retirement action definition that matches the ID 1. You can target an endpoint using either an endpointID input value or targetEndpointParameters values, but not both.
mutation exampleProvisionCreateRetirementAction($input: ProvisionCreateRetirementActionInput!) {
provisionCreateRetirementAction(input: $input) {
retirementAction {
id
definitionID
status
notes {
comment
requestedBy
ticketNumber
}
manualEntry
ipAddress
natIPAddress
createdTime
updatedTime
createdBy {
persona {
id
name
}
user {
id
username
displayName
}
}
updatedBy {
persona {
id
name
}
user {
id
username
displayName
}
}
}
error {
message
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"definitionID": "1",
"notes": {
"comment": "this is a comment",
"ticketNumber": null,
"requestedBy": "requested by test"
},
"targetEndpointParameters": {
"computerName": "target computerName",
"serialNumber": "target serialNumber",
"manufacturer": "target manufacturer",
"model": "target model"
}
}
}
Example response:
{
"data": {
"provisionCreateRetirementAction": {
"retirementAction": {
"id": "12",
"definitionID": "1",
"status": "pending",
"notes": {
"comment": "this is a comment",
"requestedBy": "requested by test",
"ticketNumber": null
},
"manualEntry": true,
"ipAddress": null,
"natIPAddress": null,
"createdTime": "2025-02-17T15:37:43.031212Z",
"updatedTime": "2025-02-17T15:37:43.031212Z",
"createdBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
},
"updatedBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
}
},
"error": null
}
}
}
(1.0 - Experimental (Early Development)) Create retirement action definition
(mutation.provisionCreateRetirementActionDefinition)
The provisionCreateRetirementActionDefinition mutation requires Provision and the Provision Retirement Action Definitions write permission.
Create a retirement action definition as a template for retirement actions. Configure retirement action options based on the following:
-
If userLock is set to true, userUnlock must be set to false.
-
If userUnlock is set to true, userLock, deleteFiles, and bitlockerFreeze must all be set to false.
-
If deleteFiles is set to true, userUnlock must be set to false.
Tip: For the best results, if deleteFiles is set to true, set userLock and bitlockerFreeze to true, and assign a value to bitlockerMessage. -
If bitlockerFreeze is set to true, userUnlock must be set to false, and you must assign a value to bitlockerMessage.
Tip: For the best results, if bitlockerFreeze is set to true, set userLock to true.
The following mutation creates a retirement action definition with userUnlock set equal to true, and defined notes:
mutation exampleProvisionCreateRetirementActionDefinition($input: ProvisionCreateRetirementActionDefinitionInput!) {
provisionCreateRetirementActionDefinition(input: $input) {
actionDefinition {
id
name
description
endpointActionOptions {
userLock
userUnlock
deleteFiles
bitlockerFreeze
bitlockerMessage
}
enabled
deletedTime
createdTime
updatedTime
createdBy {
user {
username
id
displayName
}
persona {
name
id
}
}
updatedBy {
user {
username
id
displayName
}
persona {
name
id
}
}
notesDefinition {
requestedBy {
notesRequired
label
}
ticketNumber {
notesRequired
label
}
comment {
notesRequired
label
}
}
retirementActionsCount
}
error {
message
retryable
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"name": "Example retirement action definition",
"description": "example retirement action definition",
"endpointActionOptions": {
"userLock": false,
"userUnlock": true,
"deleteFiles": false,
"bitlockerFreeze": false,
"bitlockerMessage": ""
},
"enabled": true,
"notesDefinition": {
"requestedBy": {
"label": "requestedBy label",
"notesRequired": "OPTIONAL"
},
"comment": {
"label": "comment label",
"notesRequired": "REQUIRED"
},
"ticketNumber": {
"notesRequired": "NOT_ALLOWED"
}
}
}
}
Example response:
{
"data": {
"provisionCreateRetirementActionDefinition": {
"actionDefinition": {
"id": "6",
"name": "Example retirement action definition",
"description": "example retirement action definition",
"endpointActionOptions": {
"userLock": false,
"userUnlock": true,
"deleteFiles": false,
"bitlockerFreeze": false,
"bitlockerMessage": ""
},
"enabled": true,
"deletedTime": null,
"createdTime": "2025-02-17T15:07:40.792724Z",
"updatedTime": "2025-02-17T15:07:40.792724Z",
"createdBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"name": null,
"id": "0"
}
},
"updatedBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"name": null,
"id": "0"
}
},
"notesDefinition": {
"requestedBy": {
"notesRequired": "OPTIONAL",
"label": "requestedBy label"
},
"ticketNumber": {
"notesRequired": "NOT_ALLOWED",
"label": null
},
"comment": {
"notesRequired": "REQUIRED",
"label": "comment label"
}
},
"retirementActionsCount": 0
},
"error": null
}
}
}
(1.0 - Experimental (Early Development)) Delete retirement action definitions
(mutation.provisionDeleteRetirementActionDefinitions)
The provisionDeleteRetirementActionDefinitions mutation requires Provision and the Provision Retirement Action Definitions write permission.
Delete one or more retirement action definitions that match the input IDs.
The following mutation deletes the retirement action definitions that match the IDs 1 and 2.
mutation exampleProvisionDeleteRetirementActionDefinitions($input: ProvisionDeleteRetirementActionDefinitionsInput!) {
provisionDeleteRetirementActionDefinitions(input: $input) {
error {
message
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"ids": [
"1",
"2"
]
}
}
Example response:
{
"data": {
"provisionDeleteRetirementActionDefinitions": {
"error": null
}
}
}
Get retirement action by ID
(query.provisionRetirementAction)
The provisionRetirementAction query requires Provision and the Provision Retirement Actions read permission.
The following query retrieves the retirement action that matches the ID 1.
query exampleGetProvisionRetirementAction($ref: IdRefInput!) {
provisionRetirementAction(ref: $ref) {
id
definitionID
status
notes {
requestedBy
ticketNumber
comment
}
manualEntry
targetEndpointParameters {
computerName
serialNumber
manufacturer
model
}
endpointID
ipAddress
natIPAddress
createdTime
updatedTime
eventLogs {
edges {
cursor
node {
id
stepName
status
details
actionID
messageID
createdTime
endpointActionCode
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
createdBy {
user {
username
id
displayName
}
persona {
id
name
}
}
updatedBy {
user {
username
id
displayName
}
persona {
id
name
}
}
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"ref": {
"id": "1"
}
}
Example response:
{
"data": {
"provisionRetirementAction": {
"id": "12",
"definitionID": "1",
"status": "pending",
"notes": {
"requestedBy": "updated requested by",
"ticketNumber": null,
"comment": "updated new comment"
},
"manualEntry": true,
"targetEndpointParameters": {
"computerName": "target computerName",
"serialNumber": "target serialNumber",
"manufacturer": "target manufacturer",
"model": "target model"
},
"endpointID": "",
"ipAddress": null,
"natIPAddress": null,
"createdTime": "2025-02-17T15:44:51.771139Z",
"updatedTime": "2025-02-17T15:48:06.389774Z",
"eventLogs": {
"edges": [],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": null,
"endCursor": null
},
"totalRecords": 0
},
"createdBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"updatedBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
}
}
}
}
(1.0 - Experimental (Early Development)) Get retirement action definition by ID
(query.provisionRetirementActionDefinition)
The provisionRetirementActionDefinition query requires Provision and the Provision Retirement Action Definitions read permission.
The following query retrieves the retirement action definition that matches the ID 1.
query exampleGetProvisionRetirementActionDefinitionByID($ref: IdRefInput!) {
provisionRetirementActionDefinition(ref: $ref) {
id
name
description
endpointActionOptions {
userLock
userUnlock
deleteFiles
bitlockerFreeze
bitlockerMessage
}
enabled
deletedTime
createdTime
updatedTime
createdBy {
user {
id
username
displayName
}
persona {
id
name
}
}
updatedBy {
user {
id
username
displayName
}
persona {
id
name
}
}
notesDefinition {
requestedBy {
notesRequired
label
}
ticketNumber {
notesRequired
label
}
comment {
notesRequired
label
}
}
retirementActionsCount
}
}
Include the ID variable in the Variables panel or in your variables dictionary:
{
"ref": {
"id": "1"
}
}
Example response:
{
"data": {
"provisionRetirementActionDefinition": {
"id": "1",
"name": "Example retirement action definition",
"description": "example description",
"endpointActionOptions": {
"userLock": false,
"userUnlock": true,
"deleteFiles": false,
"bitlockerFreeze": false,
"bitlockerMessage": ""
},
"enabled": true,
"deletedTime": null,
"createdTime": "2025-02-17T15:07:40.792724Z",
"updatedTime": "2025-02-17T15:07:40.792724Z",
"createdBy": {
"user": {
"id": "1",
"username": "admin",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"updatedBy": {
"user": {
"id": "1",
"username": "admin",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"notesDefinition": {
"requestedBy": {
"notesRequired": "OPTIONAL",
"label": "requestedBy label"
},
"ticketNumber": {
"notesRequired": "NOT_ALLOWED",
"label": ""
},
"comment": {
"notesRequired": "REQUIRED",
"label": "comment label"
}
},
"retirementActionsCount": 0
}
}
}
(1.0 - Experimental (Early Development)) Get multiple retirement action definitions
(query.provisionRetirementActionDefinitions)
The provisionRetirementActionDefinitions query requires Provision and the Provision Retirement Action Definitions read permission.
The following query retrieves the first 2 retirement action definitions.
query exampleGetMultipleProvisionRetirementActionDefinitions($first: Int) {
provisionRetirementActionDefinitions(first: $first) {
edges {
cursor
node {
id
name
description
endpointActionOptions {
userLock
userUnlock
deleteFiles
bitlockerFreeze
bitlockerMessage
}
enabled
deletedTime
createdTime
updatedTime
createdBy {
user {
username
id
displayName
}
persona {
id
name
}
}
updatedBy {
user {
username
id
displayName
}
persona {
id
name
}
}
notesDefinition {
requestedBy {
label
notesRequired
}
ticketNumber {
label
notesRequired
}
comment {
label
notesRequired
}
}
retirementActionsCount
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the pagination variable in the Variables panel or in your variables dictionary:
{
"first": 2
}
Example response:
{
"data": {
"provisionRetirementActionDefinitions": {
"edges": [
{
"cursor": "ZGVmaW5pdGlvbjow",
"node": {
"id": "2",
"name": "example retirement action definition 2",
"description": "example description",
"endpointActionOptions": {
"userLock": false,
"userUnlock": false,
"deleteFiles": true,
"bitlockerFreeze": false,
"bitlockerMessage": ""
},
"enabled": true,
"deletedTime": null,
"createdTime": "2023-08-09T19:51:31.623351Z",
"updatedTime": "2023-08-09T19:53:01.446715Z",
"createdBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"updatedBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"notesDefinition": {
"requestedBy": {
"label": "",
"notesRequired": "OPTIONAL"
},
"ticketNumber": {
"label": "",
"notesRequired": "REQUIRED"
},
"comment": {
"label": "",
"notesRequired": "OPTIONAL"
}
},
"retirementActionsCount": 2
}
},
{
"cursor": "ZGVmaW5pdGlvbjox",
"node": {
"id": "1",
"name": "example retirement action definition",
"description": "",
"endpointActionOptions": {
"userLock": true,
"userUnlock": false,
"deleteFiles": false,
"bitlockerFreeze": true,
"bitlockerMessage": "Please contact the Helpdesk to unlock"
},
"enabled": true,
"deletedTime": null,
"createdTime": "2023-07-21T13:16:05.660767Z",
"updatedTime": "2023-08-09T19:50:40.716427Z",
"createdBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"updatedBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"notesDefinition": {
"requestedBy": {
"label": "Admin User",
"notesRequired": "REQUIRED"
},
"ticketNumber": {
"label": "",
"notesRequired": "NOT_ALLOWED"
},
"comment": {
"label": "",
"notesRequired": "NOT_ALLOWED"
}
},
"retirementActionsCount": 1
}
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "ZGVmaW5pdGlvbjow",
"endCursor": "ZGVmaW5pdGlvbjox"
},
"totalRecords": 8
}
}
}
(1.0 - Experimental (Early Development)) Get multiple retirement actions
(query.provisionRetirementActions)
The provisionRetirementActions query requires Provision and the Provision Retirement Actions read permission.
The following query retrieves the first 2 retirement actions.
query exampleGetMultipleProvisionRetirementActions($sort: ProvisionRetirementActionFieldSort!, $filter: [ProvisionFieldFilter!]) {
provisionRetirementActions(sort: $sort, filter: $filter) {
edges {
cursor
node {
id
definitionID
status
notes {
requestedBy
ticketNumber
comment
}
manualEntry
targetEndpointParameters {
computerName
serialNumber
manufacturer
model
}
endpointID
ipAddress
natIPAddress
createdTime
updatedTime
eventLogs {
edges {
cursor
node {
id
stepName
status
details
actionID
messageID
createdTime
endpointActionCode
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
createdBy {
user {
username
id
displayName
}
persona {
id
name
}
}
updatedBy {
user {
username
id
displayName
}
persona {
id
name
}
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the sort and filter variables in the Variables panel or in your variables dictionary:
{
"sort": {
"field": "computerName",
"order": "desc"
},
"filter": {
"value": "Win",
"filterField": "computerName"
}
}
Example response:
{
"data": {
"provisionRetirementActions": {
"edges": [
{
"cursor": "cmV0aXJlbWVudEFjdGlvbjow",
"node": {
"id": "1",
"definitionID": "12",
"status": "canceled",
"notes": {
"requestedBy": "example requestor",
"ticketNumber": "n/a",
"comment": "canceled"
},
"manualEntry": false,
"targetEndpointParameters": {
"computerName": "example computer",
"serialNumber": "1234567890abcdef",
"manufacturer": "example manufacturer",
"model": "example model"
},
"endpointID": "12345",
"ipAddress": null,
"natIPAddress": null,
"createdTime": "2024-02-22T19:58:28.193981Z",
"updatedTime": "2024-02-22T20:18:03.226979Z",
"eventLogs": {
"edges": [],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": null,
"endCursor": null
},
"totalRecords": 0
},
"createdBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"updatedBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
}
}
},
{
"cursor": "cmV0aXJlbWVudEFjdGlvbjox",
"node": {
"id": "2",
"definitionID": "12",
"status": "inProgress",
"notes": {
"requestedBy": "example requestor",
"ticketNumber": "12345678",
"comment": null
},
"manualEntry": false,
"targetEndpointParameters": {
"computerName": "example computer 2",
"serialNumber": "VMware-12 34 56 78 90 ab cd ef-12 34 56 78 90 ab cd ef",
"manufacturer": "VMware, Inc.",
"model": "VMware20,1"
},
"endpointID": "23456",
"ipAddress": "192.0.2.10:8443",
"natIPAddress": "192.0.2.20",
"createdTime": "2023-08-28T20:00:52.62558Z",
"updatedTime": "2025-02-03T19:47:07.99349Z",
"eventLogs": {
"edges": [
{
"cursor": "ZXZlbnRsb2c6MA==",
"node": {
"id": "1",
"stepName": "begin-action",
"status": "completed",
"details": "",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:30:06.565055Z",
"endpointActionCode": 0
}
},
{
"cursor": "ZXZlbnRsb2c6MQ==",
"node": {
"id": "2",
"stepName": "Confirmation",
"status": "issued",
"details": "Retirement accepted, execution has started.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:30:06.626969Z",
"endpointActionCode": 4608
}
},
{
"cursor": "ZXZlbnRsb2c6Mg==",
"node": {
"id": "3",
"stepName": "DeviceWipe",
"status": "issued",
"details": "Step started.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:30:06.64245Z",
"endpointActionCode": 512
}
},
{
"cursor": "ZXZlbnRsb2c6Mw==",
"node": {
"id": "4",
"stepName": "DeviceWipe",
"status": "information",
"details": "Device wipe is in progress.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:30:06.64245Z",
"endpointActionCode": 17232
}
},
{
"cursor": "ZXZlbnRsb2c6NA==",
"node": {
"id": "5",
"stepName": "DeviceWipe",
"status": "information",
"details": "Modifying standby and monitor timeout power settings.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:30:06.64245Z",
"endpointActionCode": 17248
}
},
{
"cursor": "ZXZlbnRsb2c6NQ==",
"node": {
"id": "6",
"stepName": "DeviceWipe",
"status": "information",
"details": "Verifying standby and monitor timeout power settings.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:30:06.64245Z",
"endpointActionCode": 17249
}
},
{
"cursor": "ZXZlbnRsb2c6Ng==",
"node": {
"id": "7",
"stepName": "DeviceWipe",
"status": "completed",
"details": "Standby and monitor timeout power settings modified.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:30:06.64245Z",
"endpointActionCode": 17504
}
},
{
"cursor": "ZXZlbnRsb2c6Nw==",
"node": {
"id": "8",
"stepName": "DeviceWipe",
"status": "issued",
"details": "Step resumed.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:34:06.349452Z",
"endpointActionCode": 513
}
},
{
"cursor": "ZXZlbnRsb2c6OA==",
"node": {
"id": "9",
"stepName": "DeviceWipe",
"status": "information",
"details": "Device wipe is in progress.",
"actionID": "2",
"messageID": "0",
"createdTime": "2023-09-18T17:34:06.365397Z",
"endpointActionCode": 17232
}
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "ZXZlbnRsb2c6MA==",
"endCursor": "ZXZlbnRsb2c6MTk="
},
"totalRecords": 27
},
"createdBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
},
"updatedBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"id": "0",
"name": null
}
}
}
}
],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "cmV0aXJlbWVudEFjdGlvbjow",
"endCursor": "cmV0aXJlbWVudEFjdGlvbjox"
},
"totalRecords": 2
}
}
}
(1.0 - Experimental (Early Development)) Resolve retirement action
(mutation.provisionResolveRetirementAction)
The provisionResolveRetirementAction mutation requires Provision and the Provision Retirement Actions write permission.
The following mutation resolves the retirement action that matches the ID 1, updating the status from in progress to completed.
mutation exampleProvisionResolveRetirementAction($input: ID!) {
provisionResolveRetirementAction(input: $input) {
retirementAction {
id
definitionID
status
eventLogs {
edges {
node {
id
stepName
status
details
actionID
messageID
createdTime
endpointActionCode
}
}
totalRecords
}
notes {
comment
requestedBy
ticketNumber
}
manualEntry
ipAddress
natIPAddress
createdTime
updatedTime
createdBy {
persona {
id
name
}
user {
id
username
displayName
}
}
updatedBy {
persona {
id
name
}
user {
id
username
displayName
}
}
}
error {
message
}
}
}
Include the input variable in the Variables panel or in your variables dictionary:
{
"input": 1
}
Example response:
{
"data": {
"provisionResolveRetirementAction": {
"retirementAction": {
"id": "12",
"definitionID": "1",
"status": "completed",
"eventLogs": {
"edges": [],
"totalRecords": 0
},
"notes": {
"comment": null,
"requestedBy": null,
"ticketNumber": null
},
"manualEntry": true,
"ipAddress": null,
"natIPAddress": null,
"createdTime": "2025-02-17T16:35:25.039883Z",
"updatedTime": "2025-02-17T16:59:27.427305Z",
"createdBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
},
"updatedBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
}
},
"error": null
}
}
}
(1.0 - Experimental (Early Development)) Update retirement action notes
(mutation.provisionUpdateRetirementAction)
The provisionUpdateRetirementAction mutation requires Provision and the Provision Retirement Actions write permission.
The following mutation updates the comment, requestedBy, and ticketNumber values associated with the retirement action that matches the ID 12.
mutation exampleProvisionUpdateRetirementActionNotes($input: ProvisionUpdateRetirementActionInput!) {
provisionUpdateRetirementAction(input: $input) {
retirementAction {
id
definitionID
status
eventLogs {
edges {
node {
id
stepName
status
details
actionID
messageID
createdTime
endpointActionCode
}
}
totalRecords
}
notes {
comment
requestedBy
ticketNumber
}
manualEntry
ipAddress
natIPAddress
createdTime
updatedTime
createdBy {
persona {
id
name
}
user {
id
username
displayName
}
}
updatedBy {
persona {
id
name
}
user {
id
username
displayName
}
}
}
error {
message
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "12",
"notes": {
"requestedBy": "updated requested by",
"ticketNumber": null,
"comment": "updated new comment"
}
}
}
Example response:
{
"data": {
"provisionUpdateRetirementAction": {
"retirementAction": {
"id": "12",
"definitionID": "1",
"status": "pending",
"eventLogs": {
"edges": [],
"totalRecords": 0
},
"notes": {
"comment": "updated new comment",
"requestedBy": "updated requested by",
"ticketNumber": null
},
"manualEntry": true,
"ipAddress": null,
"natIPAddress": null,
"createdTime": "2025-02-17T15:44:51.771139Z",
"updatedTime": "2025-02-17T15:48:06.389774Z",
"createdBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
},
"updatedBy": {
"persona": {
"id": "0",
"name": null
},
"user": {
"id": "1",
"username": "admin",
"displayName": null
}
}
},
"error": null
}
}
}
(1.0 - Experimental (Early Development)) Update retirement action definition
(mutation.provisionUpdateRetirementActionDefinition)
The provisionUpdateRetirementActionDefinition mutation requires Provision and the Provision Retirement Action Definitions write permission.
Update the retirement action definition that matches an input ID. Configure retirement action options based on the following:
-
If userLock is set to true, userUnlock must be set to false.
-
If userUnlock is set to true, userLock, deleteFiles, and bitlockerFreeze must all be set to false.
-
If deleteFiles is set to true, userUnlock must be set to false.
Tip: For the best results, if deleteFiles is set to true, set userLock and bitlockerFreeze to true, and assign a value to bitlockerMessage. -
If bitlockerFreeze is set to true, userUnlock must be set to false, and you must assign a value to bitlockerMessage.
Tip: For the best results, if bitlockerFreeze is set to true, set userLock to true.
The following mutation updates the retirement action definition that matches the ID 1 with different retirement action settings:
mutation exampleProvisionUpdateRetirementActionDefinition($input: ProvisionUpdateRetirementDefinitionInput!) {
provisionUpdateRetirementActionDefinition(input: $input) {
actionDefinition {
id
name
description
endpointActionOptions {
userLock
userUnlock
deleteFiles
bitlockerFreeze
bitlockerMessage
}
enabled
deletedTime
createdTime
updatedTime
createdBy {
user {
username
id
displayName
}
persona {
name
id
}
}
updatedBy {
user {
username
id
displayName
}
persona {
name
id
}
}
notesDefinition {
requestedBy {
notesRequired
label
}
ticketNumber {
notesRequired
label
}
comment {
notesRequired
label
}
}
retirementActionsCount
}
error {
message
retryable
}
}
}
Include the input variables in the Variables panel or in your variables dictionary:
{
"input": {
"id": "1",
"name": "Example retirement action definition update",
"description": "example description update",
"endpointActionOptions": {
"userLock": true,
"userUnlock": false,
"deleteFiles": true,
"bitlockerFreeze": true,
"bitlockerMessage": "example BitLocker message"
},
"enabled": true,
"notesDefinition": {
"requestedBy": {
"label": "requestedBy label new",
"notesRequired": "REQUIRED"
},
"comment": {
"label": "comment label new",
"notesRequired": "OPTIONAL"
},
"ticketNumber": {
"notesRequired": "REQUIRED",
"label": "new label"
}
}
}
}
Example response:
{
"data": {
"provisionUpdateRetirementActionDefinition": {
"actionDefinition": {
"id": "1",
"name": "Example retirement action definition update",
"description": "example description update",
"endpointActionOptions": {
"userLock": true,
"userUnlock": false,
"deleteFiles": true,
"bitlockerFreeze": true,
"bitlockerMessage": "example BitLocker message"
},
"enabled": true,
"deletedTime": null,
"createdTime": "2025-02-17T15:10:36.447904Z",
"updatedTime": "2025-02-17T15:15:50.940297Z",
"createdBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"name": null,
"id": "0"
}
},
"updatedBy": {
"user": {
"username": "admin",
"id": "1",
"displayName": null
},
"persona": {
"name": null,
"id": "0"
}
},
"notesDefinition": {
"requestedBy": {
"notesRequired": "REQUIRED",
"label": "requestedBy label new"
},
"ticketNumber": {
"notesRequired": "REQUIRED",
"label": "new label"
},
"comment": {
"notesRequired": "OPTIONAL",
"label": "comment label new"
}
},
"retirementActionsCount": 0
},
"error": null
}
}
}
Reporting examples
The following queries and mutation require Reporting and retrieve reports or report results, export and import report definitions, and delete reports and Reporting dashboards.
Delete a report by ID
(mutation.reportDelete)
The reportDelete mutation requires Reporting and the Report write permission.
The following mutation deletes the report that matches the referenced ID.
mutation exampleDeleteReport($id: ID!) {
reportDelete(ref: {id: $id}) {
id
error {
message
retryable
timedOut
}
}
}
Include the report ID variable in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"reportDelete": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"error": null
}
}
}
Delete a Reporting dashboard by ID
(mutation.reportingDashboardDelete)
The reportingDashboardDelete mutation requires Reporting and the Dashboard write permission.
The following mutation deletes the Reporting dashboard that matches the referenced ID.
mutation exampleDeleteReportingDashboard($id: ID!) {
reportingDashboardDelete(ref: {id: $id}) {
id
error {
message
retryable
timedOut
}
}
}
Include the Reporting dashboard ID variable in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"reportingDashboardDelete": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"error": null
}
}
}
Get a report by ID
(query.report)
The following query retrieves the report that matches the referenced ID.
query exampleGetReportByID($id: ID!) {
report(ref: {id: $id}) {
id
author {
user {
id
}
persona {
id
}
}
contentSet {
id
}
createdTime
description
favorite
labels
lastModifiedBy {
user {
id
}
persona {
id
}
}
modifiedTime
moduleName
name
viewDetails {
columns {
name
}
}
}
}
Include the report ID variable in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"report": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"author": {
"user": {
"id": "1"
},
"persona": {
"id": "0"
}
},
"contentSet": {
"id": "21"
},
"createdTime": "2022-01-01T05:33:35.838686969Z",
"description": "",
"favorite": false,
"labels": null,
"lastModifiedBy": {
"user": {
"id": "1"
},
"persona": {
"id": "0"
}
},
"modifiedTime": "2022-06-01T05:33:35.838686969Z",
"moduleName": null,
"name": "Example report",
"viewDetails": {
"columns": [
{
"name": "Example report column"
}
]
}
}
}
}
Get an ID of a report
(query.reports)
The following query retrieves reports that have the text "Example report" in the name or description, and returns the ID for each report.
query exampleGetReportIDs($first: Int, $text: String) {
reports(first: $first, filter: {text: $text}) {
edges {
node {
id
description
name
}
}
}
}
Include the pagination and text variables in the Variables panel or in your variables dictionary.
{
"first": 2,
"text": "Example report"
}
Example response:
{
"data": {
"reports": {
"edges": [
{
"node": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"description": "Example description",
"name": "Example report"
}
},
{
"node": {
"id": "abcdef12-3456-7890-abcd-ef1234567890",
"description": "Example report 2",
"name": "Report example"
}
}
]
}
}
}
Get reports
(query.reports)
The following query retrieves the first 2 reports.
query exampleGetReports($first: Int) {
reports(first: $first) {
edges {
node {
id
author {
user {
id
}
persona {
id
}
}
contentSet {
id
}
createdTime
description
favorite
labels
lastModifiedBy {
user {
id
}
persona {
id
}
}
modifiedTime
moduleName
name
}
}
}
}
Include the pagination variable in the Variables panel or in your variables dictionary.
{
"first": 2
}
Example response:
{
"data": {
"reports": {
"edges": [
{
"node": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"author": {
"user": {
"id": "1"
},
"persona": {
"id": "0"
}
},
"contentSet": {
"id": "21"
},
"createdTime": "2022-01-01T05:33:35.838686969Z",
"description": "Example description",
"favorite": false,
"labels": null,
"lastModifiedBy": {
"user": {
"id": "1"
},
"persona": {
"id": "0"
}
},
"modifiedTime": "2022-03-17T05:33:35.838686969Z",
"moduleName": null,
"name": "Example report"
}
},
{
"node": {
"id": "abcdef12-3456-7890-abcd-ef1234567890",
"author": {
"user": {
"id": "2"
},
"persona": {
"id": "1"
}
},
"contentSet": {
"id": "123"
},
"createdTime": "2022-01-01T19:58:08.175603337Z",
"description": "Example report 2",
"favorite": false,
"labels": null,
"lastModifiedBy": {
"user": {
"id": "3"
},
"persona": {
"id": "0"
}
},
"modifiedTime": "2022-06-01T19:58:08.175603337Z",
"moduleName": null,
"name": "Example report 2"
}
}
]
}
}
}
Get report results by report ID
(query.reportResultData)
The following query retrieves column values for the first 2 report results, and summarizes the results by returning a count of duplicate rows. The query also retrieves report definition details, including report column name, sourceName, and sourceColumnName.
query exampleGetReportResultData($id: ID!, $first: Int, $summarize: Boolean!) {
reportResultData(id: $id, first: $first, summarize: $summarize) {
edges {
node {
columns {
values
}
count
}
}
viewDetails {
columns {
name
sourceName
sourceColumnName
}
}
}
}
Include the ID, pagination, and summary variables in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"first": 2,
"summarize": true
}
Example response:
{
"data": {
"reportResultData": {
"edges": [
{
"node": {
"columns": [
{
"values": [
"Npcap OEM"
]
},
{
"values": [
"1.10"
]
},
{
"values": [
"Windows 10 Enterprise"
]
}
],
"count": 10
}
},
{
"node": {
"columns": [
{
"values": [
"Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.21005"
]
},
{
"values": [
"12.0.21005.1"
]
},
{
"values": [
"Windows 10 Enterprise"
]
}
],
"count": 10
}
}
],
"viewDetails": {
"columns": [
{
"name": "Name",
"sourceName": "Installed Applications",
"sourceColumnName": "Name"
},
{
"name": "Version",
"sourceName": "Installed Applications",
"sourceColumnName": "Version"
},
{
"name": "Operating System",
"sourceName": "Operating System",
"sourceColumnName": "Operating System"
}
]
}
}
}
}
For reports with multiple results, you can retrieve a page of data and a page end cursor, then submit your request, defining after in the input equal to the page end cursor to retrieve the next page of results. You can repeat this until hasNextPage equals false in the response, signifying that no more pages of data exist.
The following query retrieves column values for the first 2 report results, and summarizes the results by returning a count of duplicate rows. This query also retrieves hasNextPage, to determine whether at least one more page of data exists, and endCursor, to pass this cursor value in a separate request and retrieve the next page of results.
query exampleGetPaginatedResultData($id: ID!, $first: Int, $summarize: Boolean!) {
reportResultData(id: $id, first: $first, summarize: $summarize) {
edges {
node {
columns {
values
}
count
}
}
viewDetails {
columns {
name
sourceName
sourceColumnName
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
Include the ID, pagination, and summary variables in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"first": 2,
"summarize": true
}
Example response:
{
"data": {
"reportResultData": {
"edges": [
{
"node": {
"columns": [
{
"values": [
"example-endpoint-1"
]
},
{
"values": [
"192.0.2.10"
]
}
],
"count": 1
}
},
{
"node": {
"columns": [
{
"values": [
"example-endpoint-2"
]
},
{
"values": [
"192.0.2.20"
]
}
],
"count": 1
}
}
],
"viewDetails": {
"columns": [
{
"name": "Computer Name",
"sourceName": "Computer Name",
"sourceColumnName": "Computer Name"
},
{
"name": "IP Address",
"sourceName": "IP Address",
"sourceColumnName": "IP Address"
}
]
},
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": true,
"startCursor": "MjMwNDUzOTM6MA==",
"endCursor": "MjMwNDUzOTM6MQ=="
}
}
}
}
The following query defines after in the input equal to the prior endCursor value of MjMwNDUzOTM6MQ== to retrieve the next page of results.
query exampleGetPaginatedResultData($id: ID!, $first: Int, $after: Cursor, $summarize: Boolean!) {
reportResultData(id: $id, first: $first, after: $after, summarize: $summarize) {
edges {
node {
columns {
values
}
count
}
}
viewDetails {
columns {
name
sourceName
sourceColumnName
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
Include the ID, pagination, and summary variables in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"first": 2,
"after": "MjMwNDUzOTM6MQ==",
"summarize": true
}
Example response:
{
"data": {
"reportResultData": {
"edges": [
{
"node": {
"columns": [
{
"values": [
"example-endpoint-3"
]
},
{
"values": [
"192.0.2.30"
]
}
],
"count": 1
}
},
{
"node": {
"columns": [
{
"values": [
"example-endpoint-4"
]
},
{
"values": [
"192.0.2.40"
]
}
],
"count": 1
}
}
],
"viewDetails": {
"columns": [
{
"name": "Computer Name",
"sourceName": "Computer Name",
"sourceColumnName": "Computer Name"
},
{
"name": "IP Address",
"sourceName": "IP Address",
"sourceColumnName": "IP Address"
}
]
},
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "MjMwNDUzOTM6Mg==",
"endCursor": "MjMwNDUzOTM6Mw=="
}
}
}
}
Export a report by ID
(query.reportExport)
The following query exports the report definition that matches the referenced ID. You can import this definition using the importReport mutation.
query exampleExportReportDefinition($id: ID!) {
reportExport(ref: {id: $id}) {
reportDefinition
}
}
Include the report ID variable in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"reportExport": {
"reportDefinition": "{\"id\":\"12345678-90ab-cdef-1234-567890abcdef\", \"displayName\":\"Example Report\", \"description\":\"Example API Gateway Reporting functionality\", \"contentSet\":{\"name\":\"Reporting\"}, \"sourceView\":{\"id\":\"source data\", \"querySpec\":{\"hasChanged\":true, \"sources\":{\"Computer Name\":{\"id\":\"Computer Name\", \"sensor\":{\"sensorName\":\"Computer Name\", \"flatten\":true}}, \"IP Address\":{\"id\":\"IP Address\", \"sensor\":{\"sensorName\":\"IP Address\", \"flatten\":false}}}, \"selects\":[{\"id\":\"1\", \"sourceColumn\":{\"sourceId\":\"Computer Name\", \"columnName\":\"Computer Name\"}, \"displayName\":\"Computer Name\", \"display\":{}}, {\"id\":\"2\", \"sourceColumn\":{\"sourceId\":\"IP Address\", \"columnName\":\"IP Address\"}, \"displayName\":\"IP Address\", \"display\":{}}]}, \"summary\":{\"countId\":\"summary_count_id\", \"displayName\":\"Count\"}}, \"display\":{\"advanced_filters_enabled\":true, \"available_additional_filters\":[], \"available_quick_filters\":[\"quick:base:computerGroup\", \"quick:base:endpointLastSeen\", \"quick:base:os\"], \"version\":1}, \"categories\":[{\"name\":\"Test\"}], \"meta\":{\"class\":\"USER\", \"type\":\"V2\"}}"
}
}
}
Import a report definition
(mutation.reportImport)
The following query imports a report definition that you exported using the reportExport query.
mutation exampleImportReportDefinition($allowDuplicate: Boolean!, $reportDefinition: String!) {
reportImport(
input: {allowDuplicate: $allowDuplicate, reportDefinition: $reportDefinition}
) {
report {
id
}
error {
message
retryable
timedOut
}
}
}
Include the report ID variable in the Variables panel or in your variables dictionary.
{
"allowDuplicate": false,
"reportDefinition": "{\"id\":\"12345678-90ab-cdef-1234-567890abcdef\", \"displayName\":\"Example report import\", \"description\":\"Example import functionality\", \"contentSet\":{\"name\":\"Reporting\"}, \"sourceView\":{\"id\":\"source data\", \"querySpec\":{\"hasChanged\":true, \"sources\":{\"Computer Name\":{\"id\":\"Computer Name\", \"sensor\":{\"sensorName\":\"Computer Name\", \"flatten\":true}}, \"IP Address\":{\"id\":\"IP Address\", \"sensor\":{\"sensorName\":\"IP Address\", \"flatten\":false}}}, \"selects\":[{\"id\":\"1\", \"sourceColumn\":{\"sourceId\":\"Computer Name\", \"columnName\":\"Computer Name\"}, \"displayName\":\"Computer Name\", \"display\":{}}, {\"id\":\"2\", \"sourceColumn\":{\"sourceId\":\"IP Address\", \"columnName\":\"IP Address\"}, \"displayName\":\"IP Address\", \"display\":{}}]}, \"summary\":{\"countId\":\"summary_count_id\", \"displayName\":\"Count\"}}, \"display\":{\"advanced_filters_enabled\":true, \"available_additional_filters\":[], \"available_quick_filters\":[\"quick:base:computerGroup\", \"quick:base:endpointLastSeen\", \"quick:base:os\"], \"version\":1}, \"categories\":[{\"name\":\"Test\"}], \"meta\":{\"class\":\"USER\", \"type\":\"V2\"}}"
}
Example response:
{
"data": {
"reportImport": {
"report": {
"id": "abcdef12-3456-7890-abcd-ef1234567890"
},
"error": null
}
}
}
Retrieve report results collection start cursor
(query.reportResultData.collectionInfo.startCursor, query.reportResultData (refresh))
The following query retrieves report details. The query requests collectionInfo.startCursor, which is populated in the response only if the data is not ready within 30 seconds. Use the collectionInfo.startCursor value for refreshing the request.
query exampleGetReportResultCursor($id: ID!, $first: Int) {
reportResultData(id: $id, first: $first) {
edges {
node {
columns {
values
}
}
}
collectionInfo {
active
startCursor
}
}
}
Include the pagination and report ID variables in the Variables panel or in your variables dictionary.
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"first": 2
}
Example response for an ongoing collection with a startCursor value, meaning that the data is not yet ready to be returned:
{
"data": {
"reportResultData": {
"edges": [],
"collectionInfo": {
"active": true,
"startCursor": "4t2cB0ZGNPqy4J4P7O7opwz/24/5zgPi6OinDAA=:0"
}
}
}
}
Refresh report results collection using starting cursor
The following query refreshes the collection using the returned startCursor value:
query exampleRefreshReportResultCursor($id: ID!, $first: Int, $refresh: Cursor) {
reportResultData(id: $id, first: $first, refresh: $refresh) {
edges {
node {
columns {
values
}
}
}
collectionInfo {
active
startCursor
}
}
}
Include the pagination and report ID variables in the Variables panel or in your variables dictionary:
{
"id": "12345678-90ab-cdef-1234-567890abcdef",
"first": 2,
"refresh": "4t2cB0ZGNPqy4J4P7O7opwz/24/5zgPi6OinDAA=:0"
}
Example response with a completed collection:
{
"data": {
"reportResultData": {
"edges": [
{
"node": {
"columns": [
{
"values": [
"Example computer 1"
]
},
{
"values": [
"2001:DB8::1234",
"192.0.2.10"
]
}
]
}
},
{
"node": {
"columns": [
{
"values": [
"Example computer 2"
]
},
{
"values": [
"2001:DB8::1234",
"192.0.2.20"
]
}
]
}
}
],
"collectionInfo": {
"active": false,
"startCursor": null
}
}
}
}
Sensor examples
The following queries and mutation retrieve sensors and sensor parameters, and register a sensor for harvest.
Get normal sensors
(query.sensors)
Normal sensors are scripts that run on endpoints to compute a response to a Tanium question. This data can be sourced from either Tanium Cloud or Tanium Data Service if a sensor is being harvested. The following query retrieves the first 5 normal sensors. For more information about normal sensors, see Tanium Console User Guide: Managing sensors.
query exampleGetNormalSensors($first: Int, $path: String, $op: FieldFilterOp!, $value: String) {
sensors(first: $first, filter:{path: $path, op: $op, value: $value}) {
edges {
node {
contentSetName
description
endpointQueryPaths
harvested
lastUpdatedBy
name
parameterizations {
harvested
values {
name
value
}
}
parameters {
defaultValue
name
}
virtual
}
}
pageInfo {
endCursor
startCursor
hasNextPage
hasPreviousPage
}
}
}
Include pagination and filter variables in the Variables panel or in your variables dictionary:
{
"first": 5,
"path": "virtual",
"op": "EQ",
"value": "false"
}
Example response:
{
"data": {
"sensors": {
"edges": [
{
"node": {
"contentSetName": "Core Content",
"description": "The full Active Directory distinguished name for the computer\nExample: CN=Win8-test5,CN=Computers,DC=corp,DC=com",
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "AD Distinguished Name",
"parameterizations": null,
"parameters": null,
"virtual": false
}
},
{
"node": {
"contentSetName": "Core Content",
"description": "The Active Directory domain name (if any) that the computer is joined to.\nExample: intra.company.com",
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "AD Domain",
"parameterizations": null,
"parameters": null,
"virtual": false
}
},
{
"node": {
"contentSetName": "Core Content",
"description": "Returns the name of the Active Directory Forest that a machine is a member of. This may produce the same value that the Sensor named AD Domain produces.\nExample: corp.domain.com",
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "AD Forest",
"parameterizations": null,
"parameters": null,
"virtual": false
}
},
{
"node": {
"contentSetName": "Core Content",
"description": "The Active Directory organizational unit (OU) where the machine is located.\nExample: CN=Computers,DC=corp,DC=com",
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "AD Organizational Unit",
"parameterizations": null,
"parameters": null,
"virtual": false
}
},
{
"node": {
"contentSetName": "Core Content",
"description": "Returns the short, NetBIOS name of a machine's domain.\nExample: CORP",
"endpointQueryPaths": [],
"harvested": true,
"lastUpdatedBy": "taniumconsole",
"name": "AD Short Domain",
"parameterizations": null,
"parameters": null,
"virtual": false
}
}
],
"pageInfo": {
"endCursor": "NTc2NTM4MDoxOQ==",
"startCursor": "NTc2NTM4MDow",
"hasNextPage": true,
"hasPreviousPage": false
}
}
}
}
Get virtual sensors
(query.sensors)
Tanium solutions can insert data into Tanium Data Service (TDS) directly, in contrast to a normal sensor running a script on an endpoint to collect data. This data is sourced from TDS using virtual sensors. The following query retrieves the first 5 virtual sensors registered in TDS. For more information about virtual sensors, see Tanium Reporting User Guide: Data sources.
query exampleGetVirtualSensors($first: Int, $path: String, $op: FieldFilterOp!, $value: String) {
sensors(first: $first, filter:{path: $path, op: $op, value: $value}) {
edges {
node {
contentSetName
description
endpointQueryPaths
harvested
lastUpdatedBy
name
parameterizations {
harvested
values {
name
value
}
}
parameters {
defaultValue
name
}
virtual
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include filter variables in the Variables panel or in your variables dictionary:
{
"first": 5,
"path": "virtual",
"op": "EQ",
"value": "true"
}
Example response:
{
"data": {
"sensors": {
"edges": [
{
"node": {
"contentSetName": "Tanium Data Service",
"description": null,
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "Computer Groups",
"parameterizations": null,
"parameters": null,
"virtual": true
}
},
{
"node": {
"contentSetName": "Tanium Data Service",
"description": null,
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "EID First Seen",
"parameterizations": null,
"parameters": null,
"virtual": true
}
},
{
"node": {
"contentSetName": "Tanium Data Service",
"description": null,
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "EID Last Changed",
"parameterizations": null,
"parameters": null,
"virtual": true
}
},
{
"node": {
"contentSetName": "Tanium Data Service",
"description": null,
"endpointQueryPaths": [],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "EID Last Seen",
"parameterizations": null,
"parameters": null,
"virtual": true
}
},
{
"node": {
"contentSetName": "Tanium Data Service",
"description": null,
"endpointQueryPaths": [
[
"id"
]
],
"harvested": false,
"lastUpdatedBy": "taniumconsole",
"name": "Endpoint ID",
"parameterizations": null,
"parameters": null,
"virtual": true
}
}
],
"pageInfo": {
"startCursor": "NTc2NTM4MDow",
"endCursor": "NTc2NTM4MDoxOQ==",
"hasPreviousPage": false,
"hasNextPage": true
}
}
}
}
Get sensors available to Tanium Data Service
(query.sensors)
The following query retrieves virtual sensors registered in TDS and sensors registered for harvest in TDS. For more information about virtual sensors, see Tanium Reporting User Guide: Data sources.
query exampleGetTDSData($filter: FieldFilter) {
sensors(
filter: $filter
) {
edges {
node {
contentSetName
description
endpointQueryPaths
harvested
lastUpdatedBy
name
parameterizations {
harvested
values {
name
value
}
}
parameters {
defaultValue
name
}
virtual
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include the filter variable in the Variables panel or in your variables dictionary:
{
"filter": {"any":true,"filters":[{"path":"virtual","op":"EQ","negated":false,"value":"true"},{"path":"harvested","op":"EQ","negated":false,"value":"true"}]}
}
Example response:
{
"data": {
"sensors": {
"edges": [
{
"node": {
"contentSetName": "Core Content",
"description": "Returns the name of the Active Directory Forest that a machine is a member of. This may produce the same value that the Sensor named AD Domain produces.\nExample: corp.domain.com",
"endpointQueryPaths": [],
"harvested": true,
"lastUpdatedBy": "taniumconsole",
"name": "AD Forest",
"parameterizations": null,
"parameters": null,
"virtual": false
}
},
{
"node": {
"contentSetName": "Core Content",
"description": "The Active Directory organizational unit (OU) where the machine is located.\nExample: CN=Computers,DC=corp,DC=com",
"endpointQueryPaths": [],
"harvested": true,
"lastUpdatedBy": "taniumconsole",
"name": "AD Organizational Unit",
"parameterizations": null,
"parameters": null,
"virtual": false
}
}
],
"pageInfo": {
"startCursor": "c2Vuc29yczow",
"endCursor": "c2Vuc29yczozMjM=",
"hasPreviousPage": false,
"hasNextPage": false
}
}
}
}
Get sensor parameters (query.getSensorParameters)
Get sensor parameters
The following query retrieves sensors whose description contains the text custom tag, and returns both the sensor's parameters and sensor parameterizations, or sets of parameterized values harvested within Tanium Data Service or otherwise registered.
query exampleGetSensorParameters($path: String, $op: FieldFilterOp!, $value: String) {
sensors(filter: {path: $path, op: $op, value: $value}) {
edges {
node {
contentSetName
description
lastUpdatedBy
name
parameterizations {
harvested
values {
name
value
}
}
parameters {
defaultValue
name
}
}
}
pageInfo {
startCursor
endCursor
hasPreviousPage
hasNextPage
}
}
}
Include filter variables in the Variables panel or in your variables dictionary:
{
"path": "description",
"op": "CONTAINS",
"value": "custom tag"
}
Example response:
{
"data": {
"sensors": {
"edges": [
{
"node": {
"contentSetName": "Core Content",
"description": "Checks to see if a given custom tag exists on the endpoint. The input can either be a substring or an exact match, and the check is case insensitive.\nExample: True",
"lastUpdatedBy": "taniumconsole",
"name": "Custom Tag Exists",
"parameterizations": [
{
"harvested": true,
"values": [
{
"name": "exactMatch",
"value": "1"
},
{
"name": "tag",
"value": "testCustomTag"
}
]
},
{
"harvested": true,
"values": [
{
"name": "exactMatch",
"value": "0"
},
{
"name": "tag",
"value": "testedTag"
}
]
},
{
"harvested": true,
"values": [
{
"name": "exactMatch",
"value": "1"
},
{
"name": "tag",
"value": "customTagApplied"
}
]
}
],
"parameters": [
{
"defaultValue": "1",
"name": "tag"
},
{
"defaultValue": "1",
"name": "exactMatch"
}
]
}
},
{
"node": {
"contentSetName": "Core Content",
"description": "Any specified custom tags that have been set for this machine. See the Custom Tagging Dashboard.\nExample: Development, Test-Machines",
"lastUpdatedBy": "taniumconsole",
"name": "Custom Tags",
"parameterizations": null,
"parameters": null
}
}
],
"pageInfo": {
"startCursor": "NTc2NTM4MDow",
"endCursor": "NTc2NTM4MDoxOQ==",
"hasPreviousPage": false,
"hasNextPage": false
}
}
}
}
Register sensor for harvest (mutation.sensorHarvest)
Register a sensor for harvest
The following mutation registers a sensor for harvest by Tanium Data Service.
Registration takes several minutes. The first time you submit this request, the response may contain a cursor, indicating an ongoing registration. If your response contains a cursor, wait several minutes, then pass the cursor as a sensorHarvest argument in the request to retrieve a success message or error message.
mutation exampleHarvestSensor($harvest: Boolean!, $integrationName: String!, $name: String!) {
sensorHarvest(
input: {harvest: $harvest, integrationName: $integrationName, name: $name}
) {
cursor
error {
message
retryable
timedOut
}
success
}
}
Include the harvest, integration name, and sensor name variables in the Variables panel or in your variables dictionary:
{
"harvest": true,
"integrationName": "examplecompany-integratetanium",
"name": "test-sensor"
}
Example response with a cursor:
{
"data": {
"sensorHarvest": {
"cursor": "NTc2NTM4MDow",
"error": null,
"success": null
}
}
}
Register a sensor for harvest using a cursor
If the response contains a cursor, update your mutation request to pass the cursor:
mutation exampleHarvestSensor2($cursor: Cursor, $harvest: Boolean!, $integrationName: String!, $name: String!) {
sensorHarvest(
input: {cursor: $cursor, harvest: $harvest, integrationName: $integrationName, name: $name}
) {
cursor
error {
message
retryable
timedOut
}
success
}
}
Update your variables to include the cursor:
{
"cursor": "NTc2NTM4MDow",
"harvest": true,
"integrationName": "examplecompany-integratetanium",
"name": "test-sensor"
}
Example response after sensor registration completes:
{
"data": {
"sensorHarvest": {
"cursor": null,
"error": null,
"success": true
}
}
}
Threat Response example
The following mutation requires Threat Response and assigns the Resolved status to a Threat Response alert.
Assign Resolved status to alert
(mutation.threatResponseAlertResolve)
The following request assigns the Resolved status to the Threat Response alert matching the GUID.
mutation exampleResolveTHRAlert($guid: ID) {
threatResponseAlertResolve(ref: {guid: $guid}) {
resolved
guid
error
}
}
Include the GUID variable in the Variables panel or in your variables dictionary:
{
"guid": "12345678-90ab-cdef-1234-567890abcdef"
}
Example response:
{
"data": {
"threatResponseAlertResolve": {
"resolved": true,
"guid": "12345678-90ab-cdef-1234-567890abcdef",
"error": null
}
}
}