<?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: RESTCONF Fabric Engine in ExtremeSwitching (VSP/Fabric Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94964#M2064</link>
    <description>&lt;P&gt;Yes, indeed you have run first a login request and catch the access token to be entitled to run the RESTconf calls. For postman is a clever way to use environment variables and map the token to predefined variable used by other request later on. This save time testing the API.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-01_18-30-33.png" style="width: 937px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6414i0D7C5D739A3185E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-01_18-30-33.png" alt="2023-03-01_18-30-33.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-01_18-31-43.png" style="width: 970px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6415i9CB2B133B1CB0128/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-01_18-31-43.png" alt="2023-03-01_18-31-43.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-01_18-32-48.png" style="width: 999px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6416i200D38FB5DB85F66/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-01_18-32-48.png" alt="2023-03-01_18-32-48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 17:35:37 GMT</pubDate>
    <dc:creator>Markus_Nikulski</dc:creator>
    <dc:date>2023-03-01T17:35:37Z</dc:date>
    <item>
      <title>RESTCONF Fabric Engine</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94933#M2060</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I am trying REST communication with VSP 4450 on Fabric Engine 8.8. I have already open the web-server and RESTCONF interface. I am using basic auth (username:password) with the same credentials as the HTTP web server of the switch.&amp;nbsp;My guess is I am not using the right authentication method to access the RESTCONF interface.&amp;nbsp;I value every input on this matter, thank you for your feedback.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-03-01 at 09.59.08.png" style="width: 400px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6407i2D0B1A7352EBEA9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-03-01 at 09.59.08.png" alt="Screenshot 2023-03-01 at 09.59.08.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:22:21 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94933#M2060</guid>
      <dc:creator>lsaas</dc:creator>
      <dc:date>2023-03-01T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Fabric Engine</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94947#M2062</link>
      <description>&lt;P&gt;Hi Isaas,&lt;/P&gt;&lt;P&gt;Personally, I retrieve an auth token with username/password in the body of a POST request, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jave_1-1677679104187.png" style="width: 400px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6410i9ADC36BB94B30FDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jave_1-1677679104187.png" alt="Jave_1-1677679104187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jave_2-1677679151861.png" style="width: 400px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6411iD88551DB1812CB54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jave_2-1677679151861.png" alt="Jave_2-1677679151861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In cURL:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;curl --location 'http://X.X.X.X:8080/auth/token/' \
--header 'Content-Type: application/json' \
--data-raw '{"username":"&amp;lt;username&amp;gt;","password":"&amp;lt;password&amp;gt;"}'&lt;/LI-CODE&gt;&lt;P&gt;With the token, you can then do a GET request with "X-Auth-Token" key into the header:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jave_3-1677679386436.png" style="width: 400px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6412i442CDB7D51E30CCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jave_3-1677679386436.png" alt="Jave_3-1677679386436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In cURL (example with LLDP neighbors):&lt;/P&gt;&lt;LI-CODE lang="php"&gt;curl --location 'http://X.X.X.X:8080/rest/restconf/data/openconfig-lldp:lldp/interfaces' \
--header 'X-Auth-Token:&amp;lt;token&amp;gt;'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:09:55 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94947#M2062</guid>
      <dc:creator>Jave</dc:creator>
      <dc:date>2023-03-01T14:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Fabric Engine</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94964#M2064</link>
      <description>&lt;P&gt;Yes, indeed you have run first a login request and catch the access token to be entitled to run the RESTconf calls. For postman is a clever way to use environment variables and map the token to predefined variable used by other request later on. This save time testing the API.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-01_18-30-33.png" style="width: 937px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6414i0D7C5D739A3185E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-01_18-30-33.png" alt="2023-03-01_18-30-33.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-01_18-31-43.png" style="width: 970px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6415i9CB2B133B1CB0128/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-01_18-31-43.png" alt="2023-03-01_18-31-43.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-01_18-32-48.png" style="width: 999px;"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/6416i200D38FB5DB85F66/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-01_18-32-48.png" alt="2023-03-01_18-32-48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:35:37 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94964#M2064</guid>
      <dc:creator>Markus_Nikulski</dc:creator>
      <dc:date>2023-03-01T17:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Fabric Engine</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94965#M2065</link>
      <description>&lt;P&gt;here the code I've used&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;pm&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;response&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pm&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;environment&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"vossBearer"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:36:19 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94965#M2065</guid>
      <dc:creator>Markus_Nikulski</dc:creator>
      <dc:date>2023-03-01T17:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: RESTCONF Fabric Engine</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94970#M2066</link>
      <description>&lt;P&gt;Hi Jave &amp;amp; Markus,&lt;/P&gt;&lt;P&gt;Thank you for your valuable input. I got it working using a mix of your input. My remarks hereby on how I got there:&lt;/P&gt;&lt;P&gt;- I can't authenticate via Basic Auth embedded in Postman but I pass the credentials via Body message in JSON.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Credentials used are not the one from the web page but the one to access the switch via CLI&lt;/P&gt;&lt;P&gt;- Using Postman environment variable is a great idea to pass the bearer token around. I found out that:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* pm&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;environment&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"vossBearer"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt;) -&amp;gt; data.message.token is not a correct&amp;nbsp;value to parse the JSON message. Maybe has the path changed from earlier VOSS versions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* pm.environment.set("vossBearer",&amp;nbsp;data.token); -&amp;gt; data.token is retrieving the token and&amp;nbsp;setting the "vossBearer" key&amp;nbsp;adequately.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;* You have to be careful using multiple Postman environment as only one can be active at the same time.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 09:02:01 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-vsp-fabric/restconf-fabric-engine/m-p/94970#M2066</guid>
      <dc:creator>lsaas</dc:creator>
      <dc:date>2023-03-02T09:02:01Z</dc:date>
    </item>
  </channel>
</rss>

