Users Guide

Table Of Contents
interface ethernet 1/1/1
Restconf request(s):
curl -i -k -H "Accept: application/json" -H "Content-Type: application/json" -u
$USER_NAME:$PASSWORD -d '{"ietf-interfaces:interfaces":{"interface":
[{"name":"ethernet1/1/1","type":"iana-if-type:ethernetCsmacd"}]}}' -X PATCH https://
$MGMT_IP/restconf/data/ietf-interfaces:interfaces
REST-TRANSLATE-OS10(conf-if-eth1/1/1)# description "ethernet 1/1/1"
CLI command:
description "ethernet 1/1/1"
Restconf request(s):
curl -i -k -H "Accept: application/json" -H "Content-Type: application/json" -u
$USER_NAME:$PASSWORD -d '{"ietf-interfaces:interfaces":{"interface":
[{"name":"ethernet1/1/1","description":"ethernet 1/1/1"}]}}' -X PATCH https://$MGMT_IP/
restconf/data/ietf-interfaces:interfaces
REST-TRANSLATE-OS10(conf-if-eth1/1/1)# no description
CLI command:
no description
Restconf request(s):
curl -i -k -H "Accept: application/json" -H "Content-Type: application/json" -u
$USER_NAME:$PASSWORD -X DELETE https://$MGMT_IP/restconf/data/ietf-interfaces:interfaces/
interface=ethernet1%2F1%2F1/description
curl -i -k -H "Accept: application/json" -H "Content-Type: application/json" -u
$USER_NAME:$PASSWORD -d '{"ietf-interfaces:interfaces":{"interface":
[{"name":"ethernet1/1/1"}]}}' -X PATCH https://$MGMT_IP/restconf/data/ietf-
interfaces:interfaces
REST-TRANSLATE-OS10(conf-if-eth1/1/1)# exit
Show command
REST-TRANSLATE-OS10# show version
CLI command:
show version
Restconf request(s):
curl -i -k -H "Accept: application/json" -u $USER_NAME:$PASSWORD -X GET https://$MGMT_IP/
restconf/data/dell-system-software:system-sw-state/sw-version
curl -i -k -H "Accept: application/json" -u $USER_NAME:$PASSWORD -X GET https://$MGMT_IP/
restconf/data/dell-system:system-state/system-status
Action/RPC based command
OS10# cli mode rest-translate
Commands executed in this mode will not alter current system state.
Do you want to proceed? [confirm yes/no]:yes
REST-TRANSLATE-OS10# configure terminal
CLI command:
ztd cancel
Restconf request(s):
curl -i -k -H "Accept: application/json" -H "Content-Type: application/json" -u
$USER_NAME:$PASSWORD -d '{"input":{"action":"cancel"}}' -X POST https://$MGMT_IP/
restconf/operations/dell-ztd:ztd-action
1518
RESTCONF API