Reference: Gateway examples for Provision
Tanium Gateway provides a GraphQL API integration point for Tanium solutions, including Provision. Provision requests create, retrieve, update, and delete retirement action definitions, and create, retrieve, and update retirement actions.
Provision requests have the following feature-specific dependencies at the specified minimum versions:
-
Provision 1.19 or later is required to submit a query or mutation request related to retirement action definitions or retirement actions.
For additional Gateway example syntax, see Reference: Filter syntax and Reference: Provision examples.
Provision query filter syntax
Provision queries that request retirement action information (query.provisionRetirementActions) support the following filter fields:
-
computerName
-
manufacturer
-
model
-
serialNumber
-
status
Provision queries that request retirement action information support sorting the response on the following filter fields in ascending (asc) or descending (desc) order:
-
computerName based on alphabetical order
-
createdAt based on chronological order
-
manufacturer based on alphabetical order
-
model based on alphabetical order
-
retirementActionDefinition based on alphabetical order
-
serialNumber based on alphanumerical order
-
status based on alphabetical order
-
updatedAt based on chronological order
If you do not define a sort order, the query defaults to sorting on updatedAt in asc order.
For more information on filter syntax, see ProvisionFieldFilter and ProvisionFilterField in the Documentation Explorer pane of the query explorer. For more information on sort syntax, see ProvisionRetirementActionFieldSort and ProvisionRetirementActionSortField in the Documentation Explorer pane of the query explorer.
Retirement actions targeting a manufacturer
You can retrieve retirement actions that target a manufacturer, including partial matches. Define a filter object with the following syntax:
{
filterField: manufacturer,
value: filter-value
}
For example, the following query retrieves retirement actions that target manufacturers that contain example:
query exampleGetMultipleProvisionRetirementActions($filter: [ProvisionFieldFilter!]) {
provisionRetirementActions(filter: $filter) {
edges {
cursor
node {
id
definitionID
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the variable in the Variables panel or in your variables dictionary:
{
"filter": {
"filterField": "manufacturer",
"value": "example"
}
}
Retirement actions targeting a hardware model
You can retrieve retirement actions that target a hardware model, including partial matches. Define a filter object with the following syntax:
{
filterField: model,
value: filter-value
}
For example, the following query retrieves retirement actions that target hardware models that contain example:
query exampleGetMultipleProvisionRetirementActions($filter: [ProvisionFieldFilter!]) {
provisionRetirementActions(filter: $filter) {
edges {
cursor
node {
id
definitionID
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the variable in the Variables panel or in your variables dictionary:
{
"filter": {
"filterField": "model",
"value": "example"
}
}
Retirement actions targeting an endpoint serial number
You can retrieve retirement actions that target an endpoint serial number, including partial matches. Define a filter object with the following syntax:
{
filterField: serialNumber,
value: filter-value
}
For example, the following query retrieves retirement actions that target endpoint serial numbers that contain example:
query exampleGetMultipleProvisionRetirementActions($filter: [ProvisionFieldFilter!]) {
provisionRetirementActions(filter: $filter) {
edges {
cursor
node {
id
definitionID
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the variable in the Variables panel or in your variables dictionary:
{
"filter": {
"filterField": "serialNumber",
"value": "example"
}
}
Retirement actions that are at a specific lifecycle status
You can retrieve retirement actions that target a specific lifecycle status, including partial matches. Retirement action statuses include pending, issued, information, in progress, canceled, and completed. Define a filter object with the following syntax:
{
filterField: status,
value: filter-value
}
For example, the following query retrieves retirement actions at a status of pending:
query exampleGetMultipleProvisionRetirementActions($filter: [ProvisionFieldFilter!]) {
provisionRetirementActions(filter: $filter) {
edges {
cursor
node {
id
definitionID
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the variable in the Variables panel or in your variables dictionary:
{
"filter": {
"filterField": "status",
"value": "pending"
}
}
Retirement action results sorting
You can sort retirement action results. Define a sort object with the following syntax:
sort: {
field: field-name,
order: sort-order
}
For example, the following query sorts retirement actions in descending order based on computer name:
query exampleGetMultipleProvisionRetirementActions($sort: ProvisionRetirementActionFieldSort!) {
provisionRetirementActions(sort: $sort) {
edges {
cursor
node {
id
definitionID
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalRecords
}
}
Include the variables in the Variables panel or in your variables dictionary:
{
"sort": {
"field": "computerName",
"order": "desc"
}
}
Cancel a retirement action
mutation.provisionCancelRetirementAction
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Cancel retirement action
(mutation.provisionCancelRetirementAction)
The provisionCancelRetirementAction mutation requires Provision 1.19 or later 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
}
}
}
Create a retirement action
mutation.provisionCreateRetirementAction
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Create retirement action
(mutation.provisionCreateRetirementAction)
The provisionCreateRetirementAction mutation requires Provision 1.19 or later 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
}
}
}
Create a retirement action definition
mutation.provisionCreateRetirementActionDefinition
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Create retirement action definition
(mutation.provisionCreateRetirementActionDefinition)
The provisionCreateRetirementActionDefinition mutation requires Provision 1.19 or later 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
}
}
}
Delete one or more retirement action definitions
mutation.provisionDeleteRetirementActionDefinitions
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Delete retirement action definitions
(mutation.provisionDeleteRetirementActionDefinitions)
The provisionDeleteRetirementActionDefinitions mutation requires Provision 1.19 or later 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 a retirement action by ID
query.provisionRetirementAction
Stability: 1.0 - Experimental (Early Development)
Get retirement action by ID
(query.provisionRetirementAction)
The provisionRetirementAction query requires Provision 1.19 or later 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
}
}
}
}
}
Get a retirement action definition by ID
query.provisionRetirementActionDefinition
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Get retirement action definition by ID
(query.provisionRetirementActionDefinition)
The provisionRetirementActionDefinition query requires Provision 1.19 or later 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
}
}
}
Get multiple retirement action definitions
query.provisionRetirementActionDefinitions
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Get multiple retirement action definitions
(query.provisionRetirementActionDefinitions)
The provisionRetirementActionDefinitions query requires Provision 1.19 or later 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
}
}
}
Get multiple retirement actions
query.provisionRetirementActions
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Get multiple retirement actions
(query.provisionRetirementActions)
The provisionRetirementActions query requires Provision 1.19 or later 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
}
}
}
Resolve a retirement action
mutation.provisionResolveRetirementAction
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Resolve retirement action
(mutation.provisionResolveRetirementAction)
The provisionResolveRetirementAction mutation requires Provision 1.19 or later 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
}
}
}
Update the notes associated with a retirement action
mutation.provisionUpdateRetirementAction
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Update retirement action notes
(mutation.provisionUpdateRetirementAction)
The provisionUpdateRetirementAction mutation requires Provision 1.19 or later 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
}
}
}
Update a retirement action definition
mutation.provisionUpdateRetirementActionDefinition
Stability: 1.0 - Experimental (Early Development)
(1.0 - Experimental (Early Development)) Update retirement action definition
(mutation.provisionUpdateRetirementActionDefinition)
The provisionUpdateRetirementActionDefinition mutation requires Provision 1.19 or later 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
}
}
}