Powershell Module

Comments

4 comments

  • Avatar
    David Puckett

    Any update on this request?

    3
    Comment actions Permalink
  • Avatar
    Justin McAlister

    +1 from us

    2
    Comment actions Permalink
  • Avatar
    Christopher Goff

    +1 from us too.  

    1
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink

Please sign in to leave a comment.