Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

RE: The new REST API in VSA R9.3

$
0
0

I will respond to Dana's post off-forum as this isn't really a public matter.

In any case, there was no mention of swagger being available (as far as I can see) until Dana told us a few posts ago... I wonder how we're supposed to know about features that are completely undocumented.

In any case, I can achieve AUTH using swagger also, however it *still* doesn't explain how to correctly make a third party request. e.g. the description of the password field is "SHA265 hash of password using challenge value" - still not sure how to generate the "challenge value". have you had any luck working this out??

Also, when i do get back a successful auth, it looks like this:

{

 "Result": {

   "TenantId": "1",

   "Token": "7605xxxx",

   "UserName": "Craig Hart",

   "RoleId": 2,

   "ScopeId": "2",

   "AdminId": 64975473,

   "MachineId": null,

   "MachineGroupName": null,

   "Attributes": null

 },

 "ResponseCode": 0,

 "Status": "OK",

 "Error": "None"

}

So, my token for further requests is 7605xxxx, correct?

So then i go down to GET GET /assetmgmt/agents which accepts one parameter - the token - which I paste in, and the result I get is as follows:

{

 "ResponseCode": 401,

 "Status": "OK",

 "Error": "None"

}

I was expecting a list of agents to be returned. Not sure what i'm doing wrong....?


Viewing all articles
Browse latest Browse all 30534

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom