How to use Spectrum Web Services to place a model into Maintenance Mode
search cancel

How to use Spectrum Web Services to place a model into Maintenance Mode

book

Article ID: 69160

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

How to use Spectrum Web Services to place a model into Maintenance Mode

Environment

Release: Any
Component:

Resolution

The two examples below use different methods to utilize Spectrum’s Web Services to toggle maintenance mode on a model. The first is a command line implementation. In this case, cURL is used as the command line tool:

To put a device into maintenance mode:

curl.exe -i -H "application/xml" -X PUT -u username:password “http://localhost/spectrum/restful/model/0xa0000fa0?attr=0x1295d&val=false” 


To take a device out of maintenance mode:

curl.exe -i -H "application/xml" -X PUT -u username:password "http://localhost/spectrum/restful/model/0xa0000fa0?attr=0x1295d&val=true"

*Both commands above are one line each

The second example uses the RESTClient:

Additional Information

Note: If using curl, ensure you use the correct version of curl for your Spectrum environment.  curl versions are available with or without SSL support.