Use case — fetching the VLAN
Fetching the VLAN details using REST:
WorkStation# curl --noproxy 10.100.167.104 --cookie "sessionId=09CG1bRuT5hkCPzI97mmDjpn4uLtsmgkBsAaWUr9h7GxlkbsiASak1PEyj7Ov3n" -X GET http://10.100.167.104:80/rest/v1/vlans
Response from the Switch:
{ "collection_result": { "total_elements_count": 2, "filtered_elements_count": 2 }, "vlan_element": [ { "uri": "/rest/v1/vlans/1", "vlan_id": 1, "name": "DEFAULT_VLAN", "status": "VS_PORT_BASED", "type": "VT_STATIC", "is_voice_enabled": false, "is_jumbo_enabled": false, "is_dsnoop_enabled": false }, { "uri": "/rest/v1/vlans/5", "vlan_id": 5, "name": "VLAN5", "status": "VS_PORT_BASED", "type": "VT_STATIC", "is_voice_enabled": false, "is_jumbo_enabled": false, "is_dsnoop_enabled": false } ] }