<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ios-xe-mgmt.cisco.com - YANG data model RO/RW via postman in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4093009#M4937</link>
    <description>&lt;P&gt;Thank you. I didn't know about ANX.&lt;/P&gt;&lt;P&gt;I actually found a video &lt;A href="https://www.youtube.com/watch?v=5m5cDw2OkFU&amp;amp;t=475s" target="_self"&gt;here&amp;nbsp; &amp;nbsp;&lt;/A&gt;: that gave me a huge hint.&lt;/P&gt;&lt;P&gt;I don't think any of the Hank Preston videos (great learning tool btw) explained how exactly you can get the exact schema syntax. He just mentioned that you can "get it from the device" or from &lt;A href="https://github.com/CiscoDevNet/yang-explorer" target="_self"&gt;here :&lt;/A&gt;&amp;nbsp;like you mentioned. The lesson for me was trying to fortunate the URLs was impossible. I was starting with "https://{{host}}:{{port}}/restconf/data/ietf-interfaces:interfaces" and trying to substitute a different module/leaf here and there and kept getting 404 not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to guess what to put into the URL in "Get"&lt;/P&gt;&lt;P&gt;If you do a "https://{{host}}:{{port}}/restconf/data/ietf-yang-library:modules-state" you'll get the list of schemas and you simply copy and paste them and sub out {{host}} and {{port}}. You actually have to include the date as well&lt;/P&gt;&lt;P&gt;Once you have a "Get" it'll be a lot easier to make a "Put" and constructing what change you want to make.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 19:03:30 GMT</pubDate>
    <dc:creator>Jason Wang</dc:creator>
    <dc:date>2020-05-27T19:03:30Z</dc:date>
    <item>
      <title>ios-xe-mgmt.cisco.com - YANG data model RO/RW via postman</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4092417#M4925</link>
      <description>&lt;P&gt;Hi, has anyone been able to use postman and configure anything on the ios-xe-mgmt.cisco.com always on sandbox besides loopback interfaces/physical interfaces? I'm trying to learn how to read the YANG data models provided &lt;A href="https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1693/" target="_self"&gt;here&lt;/A&gt;: and then write a postman "Get" or "Put" to retrieve information. Maybe I'm not understanding how to properly put in the JSON syntax or the URL. I was able to get some of Cisco-IOS-XE:native to work, but I haven't been able to get anything else such as EIGRP, OSPF, NTP, DHCP. I'm wondering if anyone has any working postman collections they can share. thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been able to "Get" "Put" hostname with the following parameters:&lt;/P&gt;&lt;P&gt;URL&lt;/P&gt;&lt;P&gt;https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-native:native/hostname&lt;/P&gt;&lt;P&gt;Body&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"Cisco-IOS-XE-native:hostname": "csr1000vPUT"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get with:&lt;/P&gt;&lt;P&gt;URL:https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-native:native/ip/domain&lt;/P&gt;&lt;P&gt;though I'm unsure where "IP" comes in and why it's required in the URL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some examples of ones I've tried and failed&lt;/P&gt;&lt;P&gt;Get&lt;/P&gt;&lt;P&gt;URL:&amp;nbsp;https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-ntp:config-ntp-grouping&lt;/P&gt;&lt;P&gt;URL:https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-ntp:server&lt;/P&gt;&lt;P&gt;URL:https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-ethernet:&lt;SPAN&gt;config-interface-ethernet-member-link-lacp-grouping&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 21:20:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4092417#M4925</guid>
      <dc:creator>Jason Wang</dc:creator>
      <dc:date>2020-05-26T21:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: ios-xe-mgmt.cisco.com - YANG data model RO/RW via postman</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4092729#M4927</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The sandboxes are not locked down by admin permissions, so you shouldn't have any issues there. There are a few options. You could use Yang Explorer&amp;nbsp;&lt;A href="https://github.com/CiscoDevNet/yang-explorer" target="_blank"&gt;https://github.com/CiscoDevNet/yang-explorer&lt;/A&gt; is quite old and no longer formally maintained. The RESTCONF support in there was pre-RFC8040. Now that our devices support standard RESTCONF, this won't work, if you are looking to use RESTCONF. What I do is use tools like ANX (&lt;/SPAN&gt;&lt;A href="https://github.com/cisco-ie/anx" target="_blank"&gt;https://github.com/cisco-ie/anx&lt;/A&gt;&lt;SPAN&gt;) and pyang (&lt;A href="https://pypi.org/project/pyang/" target="_blank"&gt;https://pypi.org/project/pyang/&lt;/A&gt;) to get the tree structure, and then Postman to make my queries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not aware of Postman collection for XE, if there is one it would linked here the&amp;nbsp;&lt;A href="https://explore.postman.com/team/ciscodevnet" target="_blank"&gt;https://explore.postman.com/team/ciscodevnet&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 10:15:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4092729#M4927</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2020-05-27T10:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: ios-xe-mgmt.cisco.com - YANG data model RO/RW via postman</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4093009#M4937</link>
      <description>&lt;P&gt;Thank you. I didn't know about ANX.&lt;/P&gt;&lt;P&gt;I actually found a video &lt;A href="https://www.youtube.com/watch?v=5m5cDw2OkFU&amp;amp;t=475s" target="_self"&gt;here&amp;nbsp; &amp;nbsp;&lt;/A&gt;: that gave me a huge hint.&lt;/P&gt;&lt;P&gt;I don't think any of the Hank Preston videos (great learning tool btw) explained how exactly you can get the exact schema syntax. He just mentioned that you can "get it from the device" or from &lt;A href="https://github.com/CiscoDevNet/yang-explorer" target="_self"&gt;here :&lt;/A&gt;&amp;nbsp;like you mentioned. The lesson for me was trying to fortunate the URLs was impossible. I was starting with "https://{{host}}:{{port}}/restconf/data/ietf-interfaces:interfaces" and trying to substitute a different module/leaf here and there and kept getting 404 not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to guess what to put into the URL in "Get"&lt;/P&gt;&lt;P&gt;If you do a "https://{{host}}:{{port}}/restconf/data/ietf-yang-library:modules-state" you'll get the list of schemas and you simply copy and paste them and sub out {{host}} and {{port}}. You actually have to include the date as well&lt;/P&gt;&lt;P&gt;Once you have a "Get" it'll be a lot easier to make a "Put" and constructing what change you want to make.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 19:03:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4093009#M4937</guid>
      <dc:creator>Jason Wang</dc:creator>
      <dc:date>2020-05-27T19:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: ios-xe-mgmt.cisco.com - YANG data model RO/RW via postman</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4093290#M4939</link>
      <description>&lt;P&gt;actually i take that back. I haven't been able to make any other changes aside from the loopback/gigabit interface and then hostname. I'm not sure why the following URI calls don't work. I looked up the yang data model using pyang and I thought these would work:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-ntp:server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-logging:hosts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 06:24:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4093290#M4939</guid>
      <dc:creator>Jason Wang</dc:creator>
      <dc:date>2020-05-28T06:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: ios-xe-mgmt.cisco.com - YANG data model RO/RW via postman</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4093456#M4940</link>
      <description>Hey Jason, i see you have posted in the devnet support teams space. I would keep this conversion to the team room, as this is not an issue with the sandbox per se which engineering could help with, as I believe the sandbox being mentioned is functioning correctly. If you are watching Hank's video course (&lt;A href="https://developer.cisco.com/video/net-prog-basics/" target="_blank"&gt;https://developer.cisco.com/video/net-prog-basics/&lt;/A&gt;) there is also a teams room called 'Devnet: Network programmability basics support room' which is a great place to comment and ask questions on this subject.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 28 May 2020 09:57:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/ios-xe-mgmt-cisco-com-yang-data-model-ro-rw-via-postman/m-p/4093456#M4940</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2020-05-28T09:57:17Z</dc:date>
    </item>
  </channel>
</rss>

