Start a Conversation

Unsolved

P

3 Posts

1093

July 12th, 2022 10:00

Can't authenticate to Wyse Management Suite API (Cloud)

I'm trying to connect to the Wyse Management Suite API in the Cloud, but I keep getting a 500 error.  I've tried from both PowerShell and Postman (instructions here), but no luck.  I did ask my admin to verify that WMS API is enabled according to this article, which it is.

Does anyone have any pointers for how to get past this?

 

 

3 Apprentice

 • 

704 Posts

July 12th, 2022 13:00

I would suggest opening a support case using the service tag for WMS (Which you can retrieve from the Dell Digital Locker) for assistance.

3 Posts

July 13th, 2022 07:00

Just spoke with support, and the reason for the error seems to be that we have 2FA enabled for the cloud instance.  At this time the API does not work when 2FA is enabled.

I was told that to put in a feature request for this, you have to talk to the sales person for the account. I'll be doing that next.

July 27th, 2022 08:00

Looks like the 2FA restriction was lifted for the API with the WMS 3.8 release the other day. 

Tried it again yesterday and was able to connect now.

3 Posts

July 27th, 2022 09:00

Did you do anything special to make this work?  I am getting an "invalid credentials" message. I guess that's an improvement from a generic 500 error though.

August 3rd, 2022 10:00

Was able to connect using POSTMan and powershell. I believe the user you are authenticating with needs to be a global admin. Sample powershell to get a token. 

$username = "XXXXXXXXX"
$password = "XXXXXXXXXXXXXX"
 
$body = @ {    
    UserName  = $username
    Password  = $password
}
 
$token = Invoke-WebRequest -Method POST -Uri $authURI -Headers @ { "accept" = "application/json" } -Body ($body | ConvertTo-Json) -ContentType 'application/json'
$XAuthToken =  $token.Headers. 'X-Auth-Token'

11 Posts

August 24th, 2022 15:00

I have tried using this to work with our on premises system, and I can't get it to work or get help on it. We are running WMS 3.3.1, but I have also tested on 3.5. I have the API enabled, I have a global admin user that I am using to login. We use proxies on our network, so I have configured the scripts to use proxies (and they do so successfully). But I cannot get an X-Auth-Token returned. All I get is 401 error saying "The authentication token header is missing in the request. Please sign-in with URL /wms/v1/SessionService/Sessions." But that is exactly what I am doing in the scripts. I can find no useful information about what the problem might be. Are we supposed to configure something under "External App Services?" I have tried that, too, but I don't know what we are supposed to with this...it generates an API key and a key secret, and with other APIs I have worked with, this was the information used to connect, but that doesn't seem to be the case here(?) This API feature is so confusing because there is very little useful information provided by Dell. So when I see that someone apparently has *something* working, I try to find out how. I don't want to ask Dell technical support as they are just going to tell me to upgrade to the bleeding edge version of WMS, *and we are not prepared to do that at the moment*, plus, I have no guarantee that the API situation will be any better there.

2 Posts

October 27th, 2023 09:56

@mdmann​ any solution you found?

2 Posts

October 27th, 2023 09:57

@ODell Wyzam​ I am trying from scratch to make API work to have a dashboard live on on Prem. How is it possible idea?

November 30th, 2023 20:10

@Vishnu_7​ Sorry not sure we have moved fully to the cloud. 

No Events found!

Top