19-Network Programmability Command Reference

HomeSupportSwitchesS12500R SeriesReference GuidesCommand ReferencesH3C S12500R Switch Router Series Command References(R51xx)-6W10119-Network Programmability Command Reference
01-RESTful commands
Title Size Download
01-RESTful commands 34.10 KB

RESTful commands

restful http enable

Use restful http enable to enable RESTful over HTTP.

Use undo restful http enable to disable RESTful over HTTP.

Syntax

restful http enable

undo restful http enable

Default

RESTful over HTTP is disabled.

Views

System view

Predefined user roles

network-admin

Usage guidelines

For users to manage the device through the HTTP-based RESTful API, you must enable RESTful over HTTP.

Examples

# Enable RESTful over HTTP.

<Sysname> system-view

[Sysname] restful http enable

restful https enable

Use restful https enable to enable RESTful over HTTPS.

Use undo restful https enable to disable RESTful over HTTPS.

Syntax

restful https enable

undo restful https enable

Default

RESTful over HTTPS is disabled.

Views

System view

Predefined user roles

network-admin

Usage guidelines

For users to manage the device through the HTTPS-based RESTful API, you must enable RESTful over HTTPS.

Examples

# Enable RESTful over HTTPS.

<Sysname> system-view

[Sysname] restful https enable

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网