Disabling access to the REST API

NOTE:

The ArubaOS-CX Web UI and ArubaOS-CX real-time notifications subsystem rely on the REST API, so all three are enabled or disabled together.

Prerequisites

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

Procedure
Disable HTTPS server access for the specified VRF by using the no form of the https-server vrf command.

For example, the following command disables REST API access on the switch data ports in the default VRF:

switch(config)# no https-server vrf default

You can use the show https-server command to show the current configuration:

switch# show https-server

HTTPS Server Configuration
----------------------------

 VRF               : mgmt
 REST Access Mode  : read-write