Extreme Cloud

  • 1.  REST API Login for Extreme Cloud

    Posted 07-09-2018 06:59
    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:

    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

  • 2.  RE: REST API Login for Extreme Cloud

    Posted 07-09-2018 13:57
    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:

    [/list] Best wishes,

  • 3.  RE: REST API Login for Extreme Cloud

    Posted 07-11-2018 16:49
    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.

  • 4.  RE: REST API Login for Extreme Cloud

    Posted 07-18-2018 04:17
    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

  • 5.  RE: REST API Login for Extreme Cloud

    Posted 07-18-2018 13:16
    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
    [/code]accept: application/json, text/plain, */*[/code]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.