Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Categories
  • Forums
  • Knowledge Center
  • Blogs
  • Ideas
  • Events & Webinars
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Share Your Feedback – Help Us Improve Search on Community!
Please take a few minutes to participate in our Search Feedback Survey. Your insights will help us deliver the results you need faster and more accurately.
Click here to take the survey

Accessing Netbotz 755 with REST API

EcoStruxure IT Forum

Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure IT
  • EcoStruxure IT Forum
  • Accessing Netbotz 755 with REST API
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Cory_McDonald
Admiral Cory_McDonald Admiral
129
Jef
Admiral Jef Admiral
111
gsterling
Captain gsterling Captain
72
View All

Recommended Forums

  • APC UPS Data Center & Enterprise Solutions Forum

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure IT Forum
Start a Topic
Solved
n_nagra
Crewman n_nagra
Crewman

Posted: ‎2025-11-11 08:31 AM

1 Like
2
329
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-11-11 08:31 AM

Accessing Netbotz 755 with REST API

Hello, 

I am trying to access the netbotz api with python script. I am keep getting 403 Forbidden error or 400 client error even after passing credentials for authorization. However, the url works fine in browser after logging to the device, Could anyone please share their experience on how to access the api? 

Labels
  • Labels:
  • NetBotz
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Cory_McDonald
Admiral Cory_McDonald Admiral
Admiral

Posted: ‎2025-11-14 09:23 AM

1 Like
0
265
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-11-14 09:23 AM

Hello @n_nagra,  The NetBotz 750/755 RestAPI Login uses sessions with cookies for authentication.  I have attached a python file (extension is a .txt to be able to post for security reasons) that will hopefully help you understand the authentication mechanism through the use of the the cookies.

You will need to do the following:
- Edit line 211 and add the IPv4 address of the NetBotz Appliance

- Edit line 214 and add the password for the NetBotz Appliance

- Create a python 3.13 environment with the following python dependences

     - requests==2.32.4

- This is usually accomplished by running "pip install requests" in a Python workspace

 

The file shows how to log into a NetBotz 750/755 appliance using Python.  The function that does this is called nb_login.  The NetBotz RestAPI authentication mechanism uses Cookies so you will want to pay special attention to:

        returnMap['JSESSIONID']  = response.cookies.get('JSESSIONID')
        returnMap['XSRF-TOKEN']  = response.cookies.get('XSRF-TOKEN')

 

The dict returned by the nb_login method contains cookies.  The nb_get method shows how those are added to subsequent request.

 

Regards,

Cory

See Answer In Context

Attachments
Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 2
Cory_McDonald
Admiral Cory_McDonald Admiral
Admiral

Posted: ‎2025-11-14 09:23 AM

1 Like
0
266
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-11-14 09:23 AM

Hello @n_nagra,  The NetBotz 750/755 RestAPI Login uses sessions with cookies for authentication.  I have attached a python file (extension is a .txt to be able to post for security reasons) that will hopefully help you understand the authentication mechanism through the use of the the cookies.

You will need to do the following:
- Edit line 211 and add the IPv4 address of the NetBotz Appliance

- Edit line 214 and add the password for the NetBotz Appliance

- Create a python 3.13 environment with the following python dependences

     - requests==2.32.4

- This is usually accomplished by running "pip install requests" in a Python workspace

 

The file shows how to log into a NetBotz 750/755 appliance using Python.  The function that does this is called nb_login.  The NetBotz RestAPI authentication mechanism uses Cookies so you will want to pay special attention to:

        returnMap['JSESSIONID']  = response.cookies.get('JSESSIONID')
        returnMap['XSRF-TOKEN']  = response.cookies.get('XSRF-TOKEN')

 

The dict returned by the nb_login method contains cookies.  The nb_get method shows how those are added to subsequent request.

 

Regards,

Cory

Attachments
Reply

Link copied. Please paste this link to share this article on your social media post.

n_nagra
Crewman n_nagra
Crewman

Posted: ‎2025-11-14 09:32 AM

0 Likes
0
226
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-11-14 09:32 AM

Thank you for your help. 

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore