Dell N3200-ON Networking N-Series Switches RESTful API User Guide version 6.8. - Page 95
Single VLAN Request Example, Response Example, id: 2, type: static, name: vlan2, status
View all Dell N3200-ON manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 95 highlights
{ "id": 2, "type": "static", "name": "vlan2" }, { "id": 10, "type": "static", "name": "vlan10" }, ], "status": { "response_code": 200, "msg": "OK", "more_info": "", "error_code": 0 } } Single VLAN Request Example Single VLAN retrievals are specified by using the id parameter. The interfaces are included for single VLAN retrievals. As such, all the available interfaces are scanned and if the associated interface is assigned to the given VLAN, then the interface is included in the response. All the available VLAN resources are retrieved by default. curl -GET -d "id=2" 10.10.10.1:8080/open/v1/vlans browser: http://10.10.10.1:8080/open/v1/vlans?id=2 Response Example { "vlans": [ { "id": 2, "type": "static", Rest API Reference 95
Rest API Reference
95
{
"id": 2,
"type": "static",
"name": "vlan2"
},
{
"id": 10,
"type": "static",
"name": "vlan10"
},
],
"status":
{
"response_code": 200,
"msg": "OK",
"more_info": "",
"error_code": 0
}
}
Single VLAN Request Example
Single VLAN retrievals are specified by using the
id
parameter.
The interfaces are included for single VLAN retrievals. As such, all the
available interfaces are scanned and if the associated interface is assigned to
the given VLAN, then the interface is included in the response.
All the available VLAN resources are retrieved by default.
curl -GET -d "id=2" 10.10.10.1:8080/open/v1/vlans
browser:
Response Example
{
"vlans": [
{
"id": 2,
"type": "static",