{"type":"api","title":"Get Switchport Configuration","meta":{"id":"/apps/pubhub/media/nfvis-api/e3678dda6abe6c2a26c7698d553a4574e3f45071/262737b2-b3c2-32cd-b07b-fdbdcd23918f","info":{"title":"NFVIS API","description":"NFVIS RESTCONF API Documentation","version":"4.14.1"},"x-parser-conf":{"overview":{"markdownPath":"reference/overview.md"}},"swagger":"2.0","basePath":"/{nfvis_ip}/restconf","schemes":["https"],"securityDefinitions":{"basicAuth":{"type":"basic"}}},"spec":{"tags":["Switching"],"summary":"Get Switchport Configuration","description":"Retrieve the switchport configuration for a given interface","operationId":"data_switch_switch_interface_gigabitEthernet_gigabitEthernet_name_switchport_get","produces":["application/yang-data+json"],"parameters":[{"name":"gigabitEthernet-name","in":"path","description":"","required":true,"type":"string","format":"string","$$ref":"#/parameters/gigabitEthernet-name"},{"name":"content","in":"query","description":"controlling descendant nodes in response","required":false,"type":"string","format":"enumeration","default":"config","enum":["config","nonconfig","all"],"$$ref":"#/parameters/content"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"switch:switchport":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"access":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"vlan":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"}}},"dot1q-tunnel":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"vlan":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"}}},"general":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"ingress-filtering":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"disable":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"string","format":"[null]"}}},"acceptable-frame-type":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"all","enum":["all","tagged-only","untagged-only"]},"allowed":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"tagged":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"vlan":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"(leaf-list)","type":"integer","format":"uint16"}}}},"untagged":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"vlan":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"(leaf-list)","type":"integer","format":"uint16"}}}}}},"forbidden":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"vlan":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"(leaf-list)","type":"integer","format":"uint16"}}}},"pvid":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"}}},"mode":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"access","enum":["access","trunk","private-vlan","dot1q-tunnel"]},"private-vlan":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"host-association":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"host-pri-vlan":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"},"host-sec-vlan":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"}}},"mapping":{"type":"array","description":"(list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"mapping-pri-vlan":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"},"mapping-sec-vlan":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"(leaf-list)","type":"integer","format":"uint16"}}}}}}},"community":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"protected-port":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"string","format":"[null]"},"trunk":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"native":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"vlan":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"}}},"allowed":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"vlan":{"description":"(non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"ids":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"(leaf-list)","type":"integer","format":"uint16"}},"vlan-range":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"}}}}}}}}}},"$$ref":"#/definitions/data_switch_switch_interface_gigabitEthernet_gigabitEthernet-name_switchport"}},"204":{"description":"No Content","$$ref":"#/responses/204"},"400":{"description":"Bad Request","$$ref":"#/responses/400"},"401":{"description":"Unauthorized","$$ref":"#/responses/401"},"404":{"description":"Not Found","$$ref":"#/responses/404"},"405":{"description":"Method Not Allowed","$$ref":"#/responses/405"},"409":{"description":"Conflict","$$ref":"#/responses/409"}},"security":[{"basicAuth":[]}],"__originalOperationId":"data_switch_switch_interface_gigabitEthernet_gigabitEthernet_name_switchport_get","consumes":["application/yang-data+json"],"method":"get","path":"/data/switch:switch/interface/gigabitEthernet={gigabitEthernet-name}/switchport"}}