No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

RESTful API Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the OPS APIs supported by the device, including OPS-supported operations, request examples, elements in the requests, response examples, elements in the responses, and response status codes.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Overview

Overview

The Open ProgramActivate a License File (OPS) provides application programming interfaces (APIs) based on the Representational State Transfer (REST) standards. REST defines a series of architecture principles, which provides a basis for system-resource-based Web services. The client can develop programs using any programming language that supports HTTP.

The OPS provides management objects for users to manage the device. The management objects are identified using the Uniform Resource Identifier (URI). For example, /system/systemInfo is used to identify the system information object.

You can use a standard HTTP method (Get, Put, Post, or Delete) to access managed objects.

The OPS uses the Get, Create, Set, and Delete methods to perform secondary encapsulation on standard HTTP methods. Table 1-1 lists the mappings between the OPS methods and HTTP methods.

Table 1-1  The operations standard HTTP and OPS supported

HTTP Operation

OPS Operation

Description

GET

GET

A query operation. Users can query management objects using the GET operation.

PUT

SET

A modify operation. Users can modify management objects using the PUT operation.

POST

CREATE

A create operation. Users can create management objects using the POST operation.

DELETE

DELETE

A delete operation. Users can delete management objects using the DELETE operation.

Currently the API uses the XML format to transmit data. In a later version, the API can use the JavaScript Object Notation (JSON) format to transmit data.

Currently the API can be used only in the Embedded Running Environment (ERE).

NOTE:

This document uses the HTTP methods as examples to describe how they are applied to services. If you want to use an OPS method, change the corresponding HTTP method to the OPS method according to the mappings listed in Table 1-1.

Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166567

Views: 17962

Downloads: 116

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next