Administrator Guide

</bgp>
</collection
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
The following configuration is to fetch the operational data for the BGP NLRI table via REST API (Router
1):
curl -u admin:admin http://10.16.151.159:8008/api/operational/mib/bgp4-v2/
f10BgpM2NlriTable
\?deep
<collection xmlns:y="http://tail-f.com/ns/rest">
<f10BgpM2NlriTable>
<f10BgpM2PeerIndex>1</f10BgpM2PeerIndex?
<f10BgpM2NlriAfi>1</f10BgpM2NlriAfi>
<f10BgpM2NlriSafi>1</f10BgpM2NlriSafi>
<f10BgpM2NlriPrefix>5.0.0.0</f10BgpM2NlriPrefix>
<f10BgpM2NlriPrefixLen>24</f10BgpM2NlriPrefixLen>
<f10BgpM2NlriIndex>0</f10BgpM2NlriIndex>
<f10BgpM2NlriBest>true</f10BgpM2NlriBest>
<f10BgpM2NlriCalcLocalPref>100</f10BgpM2NlriCalcLocalPref>
<f10BgpM2PathAttrIndex>1860238788</f10BgpM2PathAttrIndex
<f10BgpM2NlriOpaqueType>none</f10BgpM2NlriOpaqueType>
<f10BgpM2RouteFlag>active</f10BgpM2RouteFlag>
</f10BgpM2NlriTable>
</collection>
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
HTTP Status Error Codes
The REST API server returns the following HTTP status error codes.
Status Error Codes Description
200 OK The request was successfully completed. A response body returns containing a
representation of the resource.
201 Created A resource is created and the new resource URI returns in the “Location” header.
204 No Content The request is successfully completed but no response body returns.
400 Bad Request The request could not be processed because it contains missing or invalid
information (such as a validation error on an input field, a missing required value,
and so on).
401 Unauthorized The request requires user authentication. The response includes a “WWW-
Authenticate” header field for basic authentication.
403 Forbidden Access to the resource is denied by the server due to authorization rules.
404 Not Found The requested resource does not exist.
405 Method Not
Allowed
The HTTP method specified in the request (DELETE, GET, HEAD, PATCH, POST,
PUT) is not supported for this resource.
406 Not
Acceptable
The resource this request identifies is not capable of generating the requested
representation, specified in the “Accept” header or in the “format” query parameter.
409 Conflict This code is used if a request tries to create a resource that already exists.
146
REST API