state/state_path (containing elements)

The state/state_path URI gets a list of elements for the named state path.

URI path

state/state_path

The state_path could incorporate indexes for state path elements as independent path elements following the indexed element name. For example, a query for state/interface returns a subtree including available interfaces.

Supported request method

GET

Queries the system for a list of URIs corresponding with the elements of the named state group in the system.

Supported content types

HTML

The result URIs are turned into URLs relative to the device, and returned in an HTML list.

XML

The result URIs are each wrapped in element tags, and returned in a block corresponding to the name of the state group. For example:

<interface_info  name=”eth0”>
       <element>state/interface_info/eth0/mac</element>
       <element>state/interface_info/eth0/ip</element>
</interface_info>

JSON

The result URI strings are collected in an array assigned to a field corresponding to the name of the state group. For example:

{ “interface_info” : [ “state/interface_info/eth0/mac”,
                       “state/interface_info/eth0/ip” ] }

 

© 2019 Digi International Inc. All rights reserved.
state/state_path (containing elements) updated on 18 Oct 2017 10:17 AM