/build/static/layout/Breadcrumb_cap_w.png

KACE 7.0 API (Scripting)

I've done some testing with the new API. 

I can login and use the Inventory and Asset API. But when trying to use the Scripting part i'm getting "error: Failed Permissions check". 

Has anybody succeeded in using the Scriping API? Any code examples? 

0 Comments   [ + ] Show comments

Answers (3)

Posted by: KevinG 7 years ago
Red Belt
0
The scripting API needs to have Mobile Access enabled for both K1 and the user credentials being used in the login and the correct paths are /api/script and /api/scripts
Posted by: AbhayR 7 years ago
Red Belt
0
What headers you are using ?

Comments:
  • $objHTTP.setRequestHeader( "Accept", "application/json" )
    $objHTTP.setRequestHeader( "x-dell-csrf-token", $strCSRF )
    $objHTTP.setRequestHeader( "Content-type", "application/json" )
    $objHTTP.setRequestHeader( "Cookie", $strGlobalCookie )
    $objHTTP.setRequestHeader( "x-dell-api-version", "7" ) - fretyy 7 years ago
    • Try using x-dell-api-version = 2 - AbhayR 7 years ago
      • No, that didn't work. I'm getting the same error. - fretyy 7 years ago
      • Which Scripting API you are trying to call ?

        Does this work for you ?
        /api/scripts - AbhayR 7 years ago
  • I have tried all documented functions (http://support-public.cfm.quest.com/39143_K1000_7.0_API_Reference_en-US.pdf). No, when trying /api/scripts I'am getting a "Not logged in "-error. - fretyy 7 years ago
Posted by: AbhayR 7 years ago
Red Belt
0
This is all the headers I use and I get the result on the 7.0 server. x-dell-xsrf-token value is taken from the previous login headers.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ