官术网_书友最值得收藏!

GET data store

To see the data contained in the device data store, use the following request:

  • Type: GET
  • Headers:

Authorization: Basic YWRtaW46YWRtaW4=

  • URL: http://localhost:8080/restconf/config/network-topology:network-topology/topology/topology-netconf/node/new-netconf-device/yang-ext:mount/

Adding yang-ext:mount/ to the URL will access the mount point created for new-netconf-device. This will show the configuration data store. If you want to see the operational one, replace config with operational in the URL.

If your device defines the YANG model, you can access its data using the following request:

  • Type: GET
  • Headers:

Authorization: Basic YWRtaW46YWRtaW4=

  • URL: http://localhost:8080/restconf/config/network-topology:network-topology/topology/topology-netconf/node/new-netconf-device/yang-ext:mount/<module>:<container>

The <module> represents a schema defining the <container>. The <container> can either be a list or a container. It is not possible to access a single leaf. You can access containers/lists within containers/lists. The last part of the URL would look like this:

.../ yang-ext:mount/<module>:<container>/<sub-container>

主站蜘蛛池模板: 壤塘县| 武义县| 庆阳市| 清远市| 马边| 阿瓦提县| 岳池县| 禹城市| 汝南县| 东乌珠穆沁旗| 双城市| 兴隆县| 彭阳县| 永兴县| 台安县| 沙湾县| 潜山县| 禄丰县| 桓台县| 股票| 上栗县| 石阡县| 西青区| 长葛市| 丹棱县| 吉首市| 伊宁市| 六安市| 商水县| 汉沽区| 太仆寺旗| 武胜县| 沅江市| 新巴尔虎左旗| 沅江市| 富顺县| 抚宁县| 贺兰县| 庆安县| 宝清县| 石城县|