Tanium - Get Saved Question Result

This playbook used generic polling to gets saved question result.

Tanium · 3 tasks · 1 input · 2 outputs

Details

IDTanium - Get Saved Question Result
From Version5.0.0
Tasks3

README

Uses generic polling to gets saved question result.

Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks

  • GenericPolling

Integrations

This playbook does not use any integrations.

Scripts

This playbook does not use any scripts.

Commands

  • tn-get-saved-question-result

Playbook Inputs


Name Description Required
saved-question-id The unique IDs of the saved questons. Required

Playbook Outputs


Path Description Type
Tanium.SavedQuestionResult.Results The saved question results. unknown
Tanium.SavedQuestionResult.SavedQuestionID The unique ID of the saved question object. unknown

Playbook Image


Tanium_Get_Saved_Question_Result

Inputs

  • saved-question-id

Outputs

  • Tanium.SavedQuestionResult.Results — The saved question results.
  • Tanium.SavedQuestionResult.SavedQuestionID — The unique ID of the saved question object.

Commands used

tn-get-saved-question-result

Flowchart

Start Start GenericPolling - GenericPolling GenericPolling GenericPolling Get results - tn-get-saved-question-result Get results tn-get-saved-question-result
id: Tanium - Get Saved Question Result
version: -1
fromversion: "5.0.0"
name: Tanium - Get Saved Question Result
description: 'This playbook used generic polling to gets saved question result.'
starttaskid: "0"
tasks:
  "0":
    id: "0"
    taskid: fd08b385-0693-43a8-8523-e4e344e47c7e
    type: start
    task:
      id: fd08b385-0693-43a8-8523-e4e344e47c7e
      version: -1
      description: ""
      name: ""
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "2"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 50,
          "y": 50
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "2":
    id: "2"
    taskid: c9237b16-f000-4425-8ae8-00c0a2e1349f
    type: playbook
    task:
      id: c9237b16-f000-4425-8ae8-00c0a2e1349f
      version: -1
      name: GenericPolling
      description: |-
        Use this playbook as a sub-playbook to block execution of the master playbook until a remote action is complete.
        This playbook implements polling by continuously running the command in Step \#2 until the operation completes.
        The remote action should have the following structure:

        1. Initiate the operation.
        2. Poll to check if the operation completed.
        3. (optional) Get the results of the operation.
      playbookName: GenericPolling
      type: playbook
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "4"
    scriptarguments:
      AdditionalPollingCommandArgNames: {}
      AdditionalPollingCommandArgValues: {}
      Ids:
        complex:
          root: inputs.saved-question-id
      Interval:
        simple: "1"
      PollingCommandArgName:
        simple: question-id
      PollingCommandName:
        simple: tn-get-saved-question-result
      Timeout:
        simple: "60"
      dt:
        simple: Tanium.SavedQuestionResult(val.Status != 'Completed').SavedQuestionID
    separatecontext: true
    loop:
      iscommand: false
      exitCondition: ""
      wait: 1
    view: |-
      {
        "position": {
          "x": 50,
          "y": 195
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "4":
    id: "4"
    taskid: a664c828-58f9-434e-8298-4d8b27cb7636
    type: regular
    task:
      id: a664c828-58f9-434e-8298-4d8b27cb7636
      version: -1
      description: ""
      name: Get results
      script: '|||tn-get-saved-question-result'
      type: regular
      iscommand: true
      brand: ""
    scriptarguments:
      question-id:
        simple: ${inputs.saved-question-id}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 50,
          "y": 370
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 415,
        "width": 380,
        "x": 50,
        "y": 50
      }
    }
  }
inputs:
- key: saved-question-id
  value: {}
  required: true
  description: ""
outputs:
- contextPath: Tanium.SavedQuestionResult.Results
  description: The saved question results.
- contextPath: Tanium.SavedQuestionResult.SavedQuestionID
  description: The unique ID of the saved question object.
tests:
- Tanium v2 - Test