cancel
Showing results for 
Search instead for 
Did you mean: 

REST API Login for Extreme Cloud

REST API Login for Extreme Cloud

Yves_Haslimann
New Contributor III
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


4 REPLIES 4

Cuthbert__Richa
Extreme Employee
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.

Florian_Gemperl
New Contributor
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

Cuthbert__Richa
Extreme Employee
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.

Jonquil_William
Extreme Employee
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

GTM-P2G8KFN