Setting the REST API access mode to read/write

Enabling the read/write mode on the REST API allows write operations (POST, PUT, and DELETE) to be called on all configurable elements in the switch database.

The REST API in read/write mode is intended for use by advanced users who have a good understanding of the system schema and data relationships in the switch database.


Because the REST API in read/write mode can access every configurable element in the database, it is powerful but must be used with extreme caution: No semantic validation is performed on the data you write to the database, and configuration errors can destabilize the switch.

Setting the access mode is independent from enabling or disabling access to the REST API.


You must be in the global configuration context: switch(config)#

Set the REST API access mode to read-write.
switch(config)# https-server rest access-mode read-write