
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
06-26-2017 09:56 AM - edited 03-01-2019 04:20 AM
Create the Device
curl -H "Content-Type:application/vnd.yang.data+xml" -X PUT -u admin:admin -d @ios3.xml http://localhost:8080/api/running/devices/device/ios3
Fetch SSH Keys
curl -H "Content-Type:application/vnd.yang.data+xml" -X POST -u admin:admin http://localhost:8080/api/running/devices/device/ios3/ssh/_operations/fetch-host-keys
Sync From
curl -H "Content-Type:application/vnd.yang.data+xml" -X POST -u admin:admin http://localhost:8080/api/running/devices/device/ios3/_operations/sync-from
ios3.xml
<
device xmlns="http://tail-f.com/ns/ncs">
<name>ios3</name>
<address>127.0.0.1</address>
<port>10022</port>
<state>
<admin-state>unlocked</admin-state>
</state>
<authgroup>default</authgroup>
<device-type>
<cli>
<ned-id xmlns:ios-id="urn:ios-id">ios-id:cisco-ios</ned-id>
</cli>
</device-type>
</device>

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@Islam_Hassanin if you want to use POST call then you'd need to provide the URI to the device-name list, and provide the new device-name instance in the payload.
If you want to add multiple devices to a group, you need to run a PATCH call on the same URI, and provide all new instances in the payload.
- « Previous
-
- 1
- 2
- Next »