Activate REST API

Created Nov 30, 2018 22:42:33Latest reply Dec 24, 2018 17:47:17 297 7 0 0
  Rewarded E coins: 0 (problem resolved)
This post was last edited by Atilla at 2018-11-30 22:47. Hi all,


i have an Huawei CE 6855 switch in use and want to enable the RESTful API for this. The intention for that is, that i want to use the cmdlet Invoke-RestMethod in Powershell.
Does anyone know how i can enable the API for this switch ?

An document for the switch API already exists, see here : 
http://support.huawei.com/enterprise/docinforeader.action?contentId=EDOC1000065670


Best regards
Atilla
  • x
  • convention:

DiegoXD  Novice   Created Dec 01, 2018 00:13:30 Helpful(0) Helpful(0)

Hi!
This is a basic function for some devices, doesnt need to be enable.

No in all the family CE 6800 is support it, or in all the VRP Versions,

Plese check the Licensing Requirements and Limitations for the OPS from your device and VRP to ensure it is support it

The standard HTTP request and response include the HTTP header and HTTP packet. The format of the HTTP packet is described in the Content-Type field of the HTTP header. You can specify the format of the response packet supported by the client in the Accept field. Currently the API supports only the XML format. Therefore, specify application/xml for the Content-Type and Accept field values.

Currently, the OPS integrates the Python running environment and can run Python scripts. In a Python script, methods of sending HTTP requests to the system need to be defined based on open RESTful APIs. When the Python script runs, HTTP requests are sent to the system to implement system management.


Please verify in the documentation the part:
Configuration -> Device Management Configuration Guide -> OPS Configuration

For more details
Have a nice day!
  • x
  • convention:

chenhui Created Dec 05, 2018 08:52:05
@Atilla pls refer to https://support.huawei.com/enterprise/en/doc/EDOC1100004328/426cffd9?idPath=7919710|21782165|21782239|22318540|7597815  
Mysterious.color  Novice   Created Dec 01, 2018 16:25:27 Helpful(0) Helpful(0)

license support?
  • x
  • convention:

Best answer

find what you love and let it kill you.
arenjayasmg     Created Dec 03, 2018 12:55:48 Helpful(0) Helpful(0)

its fixed bro ?
service ac semarang barat
  • x
  • convention:

Best answer

WheatGrass  Novice   Created Dec 03, 2018 16:09:39 Helpful(0) Helpful(0)

The Open ProgramActivate a License File (OPS) provides application programming interfaces (APIs) based on the Representational State Transfer (REST) standards.
  • x
  • convention:

Best answer

chenhui  Admin   Created Dec 05, 2018 08:50:35 Helpful(0) Helpful(0)

  • x
  • convention:

Best answer

4am  Novice   Created Dec 24, 2018 17:47:17 Helpful(0) Helpful(0)

The open programmability system (OPS) is an open platform that provides Representational State Transfer Application Programming Interfaces (RESTful APIs) to achieve programmability, allowing third-party applications to run on the platform.
  • x
  • convention:

Best answer

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top