< Home

OPS APIs Supported by a Device

OPS open Application Programming Interfaces (APIs) are designed based on Representational State Transfer (REST). REST defines a set of architectural rules by which you can design web services that focus on system resources and develop clients using any HTTP-supporting programming language.

OPS provides managed objects for you to manage devices. Managed objects are identified by Uniform Resource Identifiers (URIs), for example /system/systemInfo indicates a system managed object.

To view the information displayed by print statements in OPS scripts, log in to the switch through the serial port.

Table 1 shows classification of OPS APIs supported by the device based on the application phase.

The following are used to define simple events: Command Line Event Subscription, Timer Event Subscription, Route Change Event Subscription, Log Event Subscription, Trap Event Subscription, LLDP Neighbor Change Event Subscription, Stack Status Change Event Subscription, and Interface Statistics Collection Event Subscription. Under most circumstances, only a simple event can be defined in a Python script. To define multiple simple events in a Python script, combine simple events through the Multi-Condition Combination API to form a complex event. The Combined Event Trigger API can be used together with the Multi-Condition Combination API to define matching conditions for a complex event.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >