Get VLAN Details

To retrieve details of all configured VLANs:

Use the GET method to access the openconfig-vlan data model.
Sample client request
GET /rest/restconf/data/openconfig-vlan:vlans/
    HTTP/1.1
    Host: 10.68.13.192
Sample server response
{
  "openconfig-vlan:vlans": {
    "vlan": [
      {
        "config": {
          "name": "Default", 
          "status": "ACTIVE", 
          "tpid": "oc-vlan-types:TPID_0x8100", 
          "vlan-id": 1
        }, 
        "members": {
          "member": [
            {
              "interface-ref": {
                "state": {
                  "interface": "1"
                }
              }
            }, 
            {
              "interface-ref": {
                "state": {
                  "interface": "2"
                }
              }
            }, 
            {
              "interface-ref": {
                "state": {
                  "interface": "3"
                }
              }
            }, 
            {
              "interface-ref": {
                "state": {
                  "interface": "4"
                }
              }
            }, 
          ]
        }, 
        "state": {
          "name": "Default", 
          "status": "ACTIVE", 
          "tpid": "oc-vlan-types:TPID_0x8100", 
          "vlan-id": 1
        }, 
        "vlan-id": "1"
      }
    ]
  }
}