Service Manual
levels 2 through 15 have read-write access in REST API. The allowed methods are GET, PATCH, PUT,
POST, and DELETE.
For information about the privilege level command, see the Dell Networking OS Command Line
Reference Guide, Security chapter.
Request Query Parameters
Following are the various request query parameters supported on REST.
• deep — Retrieves a resource with all the subresources inline.
• shallow — Retrieves a resource with no subresources inline.
• select — Client uses to select the nodes and subresources.
• with-defaults — Client uses to control and display the default data in GET request.
Sample BGP Configurations
The following are the sample BGP configurations via REST API.
Figure 3. BGP Topology
The PDU structure for configuring the IP address on an interface is as follows:
cat ipaddr_config_put.xml
<interface>
<name>tengig-0-0</name>
<ip>
<address>
<primary>
<address>11.1.1.1/24</address>
</primary>
</address>
</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
REST API
141