Users Guide

Table Of Contents
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<candidate/>
</target>
<default-operation>merge</default-operation>
<error-option>stop-on-error</error-option>
<test-option>set</test-option>
<config>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-
interfaces" xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type" xmlns:dell-
if="http://www.dellemc.com/networking/os10/dell-interface" xmlns:dell-eth="http://
www.dellemc.com/networking/os10/dell-ethernet" xmlns:dell-lag="http://www.dellemc.com/
networking/os10/dell-lag">
<interface>
<type>ianaift:l2vlan</type>
<name>vlan10</name>
</interface>
</interfaces>
</config>
</edit-config>
</rpc>
Reply:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="10">
<ok/>
</rpc-reply>
OS10(config)# do no debug cli netconf
RESTCONF API Examples
Some common RESTCONF API operations include configuring system hostname, and interfaces such as loopback interface. The
examples in this section use curl commands to send the HTTPS request.
System
Configure system hostname
RESTCONF
endpoint
/restconf/data/dell-system:system/hostname
JSON content
{
"hostname":"MyHost"
}
Parameters
hostname string Enter the hostname of the system. The default is OS10.
Example
curl -X PATCH -k -u admin:admin -H "Content-Type: application/json"
https://10.11.86.113/restconf/data/dell-system:system/hostname
-d '{"hostname":"MyHost"}'
Interface
Configure a loopback interface
RESTCONF
endpoint
/restconf/data/interfaces
1754 RESTCONF API