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

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>

主站蜘蛛池模板: 汝南县| 成安县| 石棉县| 沾益县| 维西| 民和| 紫阳县| 阜城县| 安义县| 剑川县| 沂水县| 从化市| 时尚| 安西县| 腾冲县| 马尔康县| 湘潭县| 梅河口市| 西盟| 临城县| 常宁市| 中西区| 钦州市| 新巴尔虎右旗| 塔城市| 酒泉市| 通榆县| 福泉市| 泸水县| 固原市| 凌源市| 北流市| 郴州市| 拉萨市| 阿克陶县| 东阿县| 铜川市| 达拉特旗| 宁乡县| 封丘县| 深水埗区|