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

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>

主站蜘蛛池模板: 延安市| 平阴县| 丰宁| 马边| 沙湾县| 通化市| 绍兴市| 新余市| 古田县| 安远县| 绥滨县| 大城县| 吉木乃县| 新巴尔虎右旗| 德昌县| 潞西市| 盐津县| 噶尔县| 诸暨市| 南华县| 夏邑县| 依安县| 镇雄县| 绥中县| 黔东| 桐梓县| 本溪市| 乐至县| 铜鼓县| 乌拉特后旗| 岑溪市| 崇信县| 玛沁县| 仪陇县| 怀宁县| 阳原县| 平罗县| 松阳县| 淅川县| 屏山县| 襄垣县|