Join the Conversation

To sign in, use your existing MySonicWall account. To create a free MySonicWall account click "Register".

step by step guide for using NSM API REST

I have a client that needs to use the NSM rest API in order to develop a web app for internal use.


But I can't find any step-by-step guide to be able to login and then execute any of the rest api methods, I can't find any information about this subject, there are only very vague notes.


I already tried to make a post with the login method and it returns a json


{

  "status": {

    "info": [

      {

        "code": "NOK",

        "level": "error",

        "message": "Tenant does not exist."

      }

    ],

    "success": false

  }

}


I don't know if the tenant is the name, it's the tenant id, it's the guid or what data it asks for.


Does anyone have a complete implementation of the NSM rest api??

Category: Developer Hub
Reply

Answers

  • DarshanDarshan SonicWall Employee
    edited March 2022


    Tenant is not name but a ID , you need to get ID info from browser debug once you login to NSM from browser.

  • LarryLarry All-Knowing Sage ✭✭✭✭

    @Darshan - please edit your post!

  • the api is not well documented, the use is not clearly explained, I already asked for the tenant id, I opened a case and an engineer gave it to me, now I get another message:


    {

       "status": {

           "info": [

               {

                   "code": "NOK",

                   "level": "error",

                   "message": "Username/Password based login disabled for this user."

               }

           ],

           "success": false

       }

    }

Sign In or Register to comment.