71
Configuring RESTful access
The device provides the Representational State Transfer application programming interface
(RESTful API). Based on this API, you can use programming languages such as Python, Ruby, or
Java to write programs to perform the following tasks:
•
Send RESTful requests to the device to pass authentication.
•
Use RESTful API operations to configure and manage the device. RESTful API operations
include Get, Put, Post, and Delete.
The device supports using HTTP or HTTPS to transfer RESTful packets.
RESTful access is disabled by default. To configure RESTful access, you must first log in through the
console port.
FIPS compliance
The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for
features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more
information about FIPS mode, see
Security Configuration Guide
.
RESTful access over HTTP is not supported in FIPS mode.
Configuring RESTful access over HTTP
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable RESTful access over
HTTP.
restful http enable
By default, RESTful access over
HTTP is disabled.
3.
Create a local user and enter
local user view.
local-user user-name
[
class
manage
]
By default, no local user is
configured.
4.
Configure a password for the
local user.
password
[ {
hash
|
simple
}
password
]
The password is saved in hashed
form.
By default, no password is
configured for a local user.
5.
(Optional.) Assign a user
role to the local user.
authorization-attribute user-role
user-role
The default user role is
network-operator for a RESTful
access user.
6.
Specify the HTTP service for
the local user.
service-type
http
By default, no service type is
specified for a local user.
Configuring RESTful access over HTTPS
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable RESTful access over
HTTPS.
restful https enable
By default, RESTful access over
HTTPS is disabled.
Содержание FlexNetwork 10500 Series
Страница 139: ...130 Sysname display version ...