Skip to main content

Powershell Module

Comments

4 comments

  • David Puckett

    Any update on this request?

    3
  • Justin McAlister

    +1 from us

    2
  • Christopher Goff

    +1 from us too.  

    1
  • Justin McAlister

    We ended up creating a local user in Device42 with limited read access, wrote a saved DOQL query, and then just accessed it with Invoke-WebRequest.  If you access the DOQL query URL with Invoke-WebRequest:

    "https://YOURDEVICE42URL/services/data/v1.0/query/?saved_query_name=YOURSAVEDDOQL&delimiter=,&header=no&output_type=csv"

    And save the results to a variable, then you can just use Convert-FromCsv to get it into a manageable set of objects.

    Still clunky, but easy enough to get data out at least.

    0

Please sign in to leave a comment.