Owner's Manual

128 | REST API
www.dell.com | support.dell.com
The following output displays a GET request after running the POST request using
CURL:
linux:~/REST$ curl -v -u admin:admin http://10.43.48.2:8008/api/running/ftos/
router/bgp
* About to connect() to 10.43.48.2 port 8008 (#0)
* Trying 10.43.48.2... connected
* Server auth using Basic with user 'admin'
> GET /api/running/ftos/router/bgp HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 10.43.48.2:8008
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: ConfD
< Cache-control: private, no-cache, must-revalidate, proxy-revalidate
< Date: Thu, 01 Aug 2013 21:50:48 GMT
< Content-Type: application/vnd.yang.data+xml
< Transfer-Encoding: chunked
<
<bgp>
<as-name>65009</as-name>
<timers>
<bgp>
<keepalive>60</keepalive>
<hold-time>180</hold-time>
</bgp>
</timers>
<maximum-paths>
<ebgp>64</ebgp>
<ibgp>32</ibgp>
</maximum-paths>
</bgp>
* Connection #0 to host 10.43.48.2 left intact
* Closing connection #0
HTTP Status Error Codes
The REST API server returns the following HTTP status error codes:
200 OK
The request was successfully completed. A response
body is returned containing a representation of the
resource.
201 Created
A resource was created and the new resource URI is
returned in the “Location” header.