Disabling access to the REST API

NOTE:

AOS-CXWeb UI andAOS-CX实时无tifications subsystem rely on the REST API, therefore, all three are enabled or disabled together.

先决条件

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

Procedure
Disable HTTPS server access for the specified VRF by using the没有form of thehttps-server vrf命令。

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

switch(config)#没有https-server vrf default

You can use theshow https-servercommand to show the current configuration:

开关#show https-serverHTTPS Server Configuration ---------------------------- VRF : mgmt REST Access Mode : read-write