REST API Login for Extreme Cloud

  • 0
  • 1
  • Question
  • Updated 4 days ago
  • Answered
Hello everybody

I'd like to login to the Extreme Cloud by REST API.
I found the following information:

server: ezcloudx.com; POST; management/v1/oauth2/token; POST Data: {grantType:
"password", userId: "example@extremenetworks.com", password: "examplePasswd", scope:
"myScope"}

It seems this doesn't work, I allways get an "methodnotallowed" Error.
Could please anybody provide the login parameters?
Thank you very much.Regards, Yves
Photo of Yves Haslimann

Yves Haslimann

  • 898 Points 500 badge 2x thumb

Posted 2 weeks ago

  • 0
  • 1
Photo of Jonquil Williams

Jonquil Williams, Employee

  • 244 Points 100 badge 2x thumb
Hi, Yves.

Here is the basic information on how to log in to the REST API: https://documentation.extremenetworks.com/extremecloud/information_center/ExtremeCloud/Information_C...

Additionally, if you are an MSP Admin trying to log in, you might want to look at a specific example here: https://documentation.extremenetworks.com/extremecloud/information_center/ExtremeCloud/Information_C...

Hope this helps. Please contact GTAC if you continue to have problems:

If you require assistance, contact Extreme Networks using one of the following methods:


Best wishes,
Jonquil
Photo of Richard Cuthbert

Richard Cuthbert, Employee

  • 110 Points 100 badge 2x thumb
I think the server argument needs to be api.ezcloudx.com not ezcloudx.com..Please try that and let us know if it works for you.
Photo of Florian Gemperle

Florian Gemperle

  • 60 Points
Hi Richard,
Thanks for the hint. Yes it is definitely api.ezcloudx.com.
Now I get to the next issue. It tells me "HTTP 415 Unsupported Media Type". Does anyone of you ever used this api successfully? Based on the documentation just the parameters "grantType, userId and password" are necessary (https://documentation.extremenetworks.com/extremecloud/rest_api/json_RequestTokenElement.html). 
Thanks, Florian
Photo of Richard Cuthbert

Richard Cuthbert, Employee

  • 110 Points 100 badge 2x thumb
The unsupported media type error suggests that your program did not specify the content-type header. You should generally specify two headers when you post the login request:
content-type: application/json;charset=UTF-8
accept: application/json, text/plain, */*
How you specify the headers depends on the tools you are using. If you are using Postman there is a tab titled 'Headers' where you can select the header type and specify the value you want. If you are using curl you can add headers to the request using the '-H' command line option (e.g. -H "Accept:application/json"). If you are using a programming language the HTTP library you are using likely has a call to set the request headers.

Please let me know how this suggestion works out.