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-server
command to show the current configuration:
开关#show https-serverHTTPS Server Configuration ---------------------------- VRF : mgmt REST Access Mode : read-write