Administrator Guide

</ip>
</interface>
The following configuration depicts the IP address configuration for router interfaces via REST– PUT
request:
curl -v -u admin:admin http://10.16.151.159:8008/api/running/dell/interfaces/
interface/tengig-0-0
-X PUT -T ipaddr_config_put.xml
* About to connect() to 10.16.151.159 port 8008
* Trying 10.16.151.159... connected
* Connected to 10.16.151.159 (10.16.151.159) port 8008
* Server auth using Basic with user 'admin'
> PUT /api/running/dell/interfaces/interface/tengig-1-37 HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5
> Host: 10.16.151.159:8008
> Accept: */*
> Content-Length: 171
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< Server: ConfD/5.2
< Allow: GET, POST, OPTIONS, HEAD
< Content-Length: 0
< HTTP/1.1 204 No Content
< Server: ConfD/5.2
< Cache-control: private, no-cache, must-revalidate, proxy-revalidate
< Date: Thu, 04 Dec 2014 13:13:25 GMT
< Allow: GET, POST, OPTIONS, HEAD
< Content-Length: 0
< Content-Type: text/html
< Etag: 1417-698805-339353@0
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
Following is the current running configurations applied on the system:
Dell#show running-config interface tengigabitethernet 0/0
!
interface TenGigabitEthernet 0/0
ip address 11.1.1.1/24
shutdown
Dell#
The following configuration is for retrieving the interface running-config via REST API:
curl -v -u admin:admin http://10.16.151.159:8008/api/running/dell/interfaces/
interface/tengig-0-0\?deep
* About to connect() to 10.16.151.159 port 8008
* Trying 10.16.151.159... connected
* Connected to 10.16.151.159 (10.16.151.159) port 8008
* Server auth using Basic with user 'admin'
> GET /api/running/dell/interfaces/interface/tengig-1-37?deep HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5
> Host: 10.16.151.159:8008
> Accept: */*
REST API
127