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. |