IT Management Suite

 View Only

  • 1.  Passing Authorization Credentials to API

    Posted Sep 30, 2025 05:18 PM

    We updated to 8.8 over the summer and are trying to get a connector to the ASDK REST API from our IT Service Management platform. I'm having trouble getting the credentials passed through and all my attempts are resulting in a 401. I've tried straight username/pass (We have a service account set up to use Windows Credentials), encrypting it, and setting it up as a credential on my ITSM. I've also tried using the new Access Tokens, but that menu just shows me the Token is not yet valid and doesn't give me an option to validate it yet. The documentation I've seen so far is pretty sparse, and there's nothing about it in the docs on my NS.

    Has any had success getting this going yet?



    -------------------------------------------


  • 2.  RE: Passing Authorization Credentials to API

    Broadcom Employee
    Posted Oct 01, 2025 05:05 AM

    Hi,

    While I'm not sure how exactly you try to call our ASDK REST API, here is code sample, that is working fine for me (ASP.NET 4.x, c#):

    1. for Windows auth, create handler

    var handler = new HttpClientHandler { Credentials = new NetworkCredential(user, password) };

    2. call ASDK with URL, where all required parameters are set:

    using (var client = new HttpClient(handler))
    {

     var resp = client.GetAsync(url).Result;

     resp.EnsureSuccessStatusCode();

     var data = resp.Content.ReadAsStringAsync().Result;

     ...

    }

    -------------------------------------------



  • 3.  RE: Passing Authorization Credentials to API

    Posted Oct 03, 2025 03:41 PM

    Thanks! I was actually able to get Token Authentication to work. I wound up having to create the domain account for my proxy server as a User in SMP, but all is good now.

    Now to figure out how to edit Resource Associations via API. I see Create, but that's not helpful if there's already one there...

    -------------------------------------------