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.
CAUTION:
The REST API in read-write mode can access every configurable element in the database. The REST API is powerful, but must be used with extreme caution: For most values, no semantic validation is performed on the data that you write to the database, and configuration errors can destabilize the switch.
从enabli设置访问模式是独立的ng or disabling access to the REST API.
Prerequisites
You must be in the global configuration context:switch(config)#
Procedure
Set the REST API access mode to
read-write
.
switch(config)#https-server rest access-mode read-write