Enabling access to the REST API
TheAOS-CXWeb UI andAOS-CXreal-time notifications subsystem rely on the REST API, therefore, all three are enabled or disabled together.
To access the REST API, Web UI, or notifications subsystem, the HTTPS server must be enabled on the specified VRF. The VRF you specify determines from which network the features can be accessed. You can enable access on multiple VRFs, including user-defined VRFs, by entering thehttps-server vrf
命令对每个你想使一个多联机ccess.
You must be in the global configuration context:
switch(config)#
The password for the
admin
user must be configured on the switch.
For example:
To enable access on all data ports on the switch, specify the default VRF:
switch(config)#https-server vrf default
NOTE:The Aruba 6100 Switch Series only supports the
default
VRF.To enable access on the OOBM port (management interface IP address), specify the management VRF (not applicable to the 6100):
switch(config)#https-server vrf mgmt
To enable access on ports that are members of the VRF named
vrfprogs
, specifyvrfprogs
:switch(config)#https-server vrf vrfprogs
If the switch responds with the following error, theadmin
user must have a valid password:
Failed to enable https-server on VRF mgmt. 'admin' password is not set
The switch is shipped from the factory with a default user namedadmin
without a password. Theadmin
user must set a valid password before HTTPS servers can be enabled.