<?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: How to SSH to a device through viptela rest API? in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/how-to-ssh-to-a-device-through-viptela-rest-api/m-p/4457526#M2547</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/920875"&gt;@RakeshKulkarni82221&lt;/a&gt;&amp;nbsp;i am not sure if sending show commands or others are possible. As you mentioned you send the following POST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/dataservice/newssh/connection/10.10.1.17

&lt;/PRE&gt;
&lt;P&gt;With payload&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"password":"admin","username":"admin"}&lt;/PRE&gt;
&lt;P&gt;I am also presented with a connectURL / sessionID - but unable to send payloads via other calls. This is due to the API using the&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ShellInABox sessions to connect to the device maybe. There is no further payloads in the developer tools in POST requests. The other API commands i see are disconnect and&amp;nbsp;retrieve SSH enabled devices. I would suggest this question is asked to TAC or your Cisco AM and to be routed to the API team at SD-WAN. My guess at this stage is if you wanted to connect to the devices via SSH NETCONF is used and done directly to the devices, not via the API in vManage.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 31 Aug 2021 13:09:46 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2021-08-31T13:09:46Z</dc:date>
    <item>
      <title>How to SSH to a device through viptela rest API?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-ssh-to-a-device-through-viptela-rest-api/m-p/4456846#M2546</link>
      <description>&lt;P&gt;According to the sdwan rest api SSH documentation,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST ​/newssh/connection/{deviceId}
      "Create SSH session"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;after querying above url with device ID and username and password,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;we get the following output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "header": {
    "generatedOn": 1630319198511
  },
  "data": {
    "connectURL": "/shell/1dbc9071-1d8f-4fb2-988f-9e075fdf1c1c",
    "destroyURL": "dataservice/newssh/disconnect/1dbc9071-1d8f-4fb2-988f-9e075fdf1c1c",
    "sessionId": "1dbc9071-1d8f-4fb2-988f-9e075fdf1c1c",
    "remoteVMSessionId": "57f07d4d-096b-42ef-bbed-3533dbb3bbfa",
    "deviceId": "10.161.205.241",
    "uuid": "ISR4331/K9-FDO22100H0Q",
    "requestjSessionId": "7E3RJDXABmsUujhIyKdVXdDTh3YdCOYpOMHfRwrX"
  }
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Now how do we connect this session URL and run some sample show commands?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there another way to run show commands on vmanage edge router?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The documentation&amp;nbsp;is not clear on this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 10:37:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-ssh-to-a-device-through-viptela-rest-api/m-p/4456846#M2546</guid>
      <dc:creator>RakeshKulkarni82221</dc:creator>
      <dc:date>2021-08-30T10:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to SSH to a device through viptela rest API?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-ssh-to-a-device-through-viptela-rest-api/m-p/4457526#M2547</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/920875"&gt;@RakeshKulkarni82221&lt;/a&gt;&amp;nbsp;i am not sure if sending show commands or others are possible. As you mentioned you send the following POST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/dataservice/newssh/connection/10.10.1.17

&lt;/PRE&gt;
&lt;P&gt;With payload&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"password":"admin","username":"admin"}&lt;/PRE&gt;
&lt;P&gt;I am also presented with a connectURL / sessionID - but unable to send payloads via other calls. This is due to the API using the&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ShellInABox sessions to connect to the device maybe. There is no further payloads in the developer tools in POST requests. The other API commands i see are disconnect and&amp;nbsp;retrieve SSH enabled devices. I would suggest this question is asked to TAC or your Cisco AM and to be routed to the API team at SD-WAN. My guess at this stage is if you wanted to connect to the devices via SSH NETCONF is used and done directly to the devices, not via the API in vManage.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Aug 2021 13:09:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-ssh-to-a-device-through-viptela-rest-api/m-p/4457526#M2547</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2021-08-31T13:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to SSH to a device through viptela rest API?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-ssh-to-a-device-through-viptela-rest-api/m-p/4457588#M2548</link>
      <description>&lt;P&gt;Thanks, Please update once you here from API team, I will take a look into NETCONF.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 14:23:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-ssh-to-a-device-through-viptela-rest-api/m-p/4457588#M2548</guid>
      <dc:creator>RakeshKulkarni82221</dc:creator>
      <dc:date>2021-08-31T14:23:58Z</dc:date>
    </item>
  </channel>
</rss>

