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.

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.

  • In non-FIPS mode:password [ { hash | simple } password ]

  • In FIPS mode: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 HTTPS service for the local user.

service-type https

By default, no service type is specified for a local user.