Skip to content
Álvaro Fernández Rojas edited this page Apr 28, 2022 · 5 revisions

Error Codes:

{
    "error_code":200,
    "error_message":"OK",
    "result":"None"
}
{
    "error_code":401,
    "error_message":"Unauthorized",
    "result":"None"
}

GET about

{
    "result":{
        "Hostname":"QNAP-Switch",
        "Model":"M408",
        "Product":"QSW-M408-4C"
    }
}

GET live

{
    "result":"None"
}

GET v1/acl/ip

{
    "result":"None"
}

GET v1/acl/mac

{
    "result":"None"
}

GET v1/acl/ports

{
    "result":{
        "idx":"None"
    }
}

GET v1/dns/server

{
    "result":[
        {
            "key":"1",
            "val":{
                "IpAddress":"192.168.1.8",
                "State":1
            }
        },
        {
            "key":"2",
            "val":{
                "IpAddress":"192.168.1.1",
                "State":1
            }
        }
    ]
}

GET v1/firmware/condition

{
    "result":{
        "anomaly":false,
        "message":""
    }
}

GET v1/firmware/info

{
    "result":{
        "version":"1.0.12",
        "date":"20210506",
        "pubDate":"Thu, 06 May 2021 10:10:19 +0800",
        "buildNumber":"20210506",
        "number":"17336",
        "ci_commit":"1d7be9160065db02401aed96016c6ad32aca19b2",
        "ci_branch":"v17.01.6-qnap",
        "ci_pipeline":"4876",
        "commit_cpss":"",
        "commit_iss":"a05ff73f9207b47782d32bc8e381b630befa7a98"
    }
}

GET v1/firmware/status

{
    "result":{
        "progress":"none"
    }
}

GET v1/firmware/update

{
    "downloadSize": 1048576,
    "firmwareSize": 30576640,
    "firmwareURL": "AQdZio",
    "Status": null
}

GET v1/firmware/update/check

{
    "result":{
        "version":"1.0.12",
        "number":"17336",
        "buildNumber":"20210506",
        "date":"Tue, 11, May 2021 10:59:00 +0800",
        "description":"",
        "downloadURL":[
            "https://download.qnap.com/Storage/Networking/QSW408FW/QSW-M408AC3-FW.v1.0.12_S20210506_17336.img",
            "https://eu1.qnap.com/Storage/Networking/QSW408FW/QSW-M408AC3-FW.v1.0.12_S20210506_17336.img",
            "https://us1.qnap.com/Storage/Networking/QSW408FW/QSW-M408AC3-FW.v1.0.12_S20210506_17336.img"
        ],
        "newer":false
    }
}

POST v1/firmware/update/chunk (application/octet-stream)

30408704-31625216/30576640

GET v1/igmp

{
    "result":{
        "AdminState":true,
        "UnregisteredFlooding":true
    }
}

GET v1/igmp/group/status

{
    "result":"None"
}

GET v1/igmp/port/interface

{
    "result":"None"
}

GET v1/igmp/vlan/interface

{
    "result":[
        {
            "key":"1",
            "val":{
                "AdminState":true,
                "QuerierElection":false,
                "QuerierAddress":"0.0.0.0",
                "AsRouterPort":"None"
            }
        }
    ]
}

GET v1/ip/ipv4/interface

{
    "result":[
        {
            "key":"1",
            "val":{
                "enableDhcpClient":true,
                "ipv4Address":"192.168.1.200",
                "subnetMask":"255.255.255.0"
            }
        }
    ]
}

GET v1/ip/ipv4/interface/status

{
    "result":[
        {
            "key":[
                "1",
                "192.168.1.200",
                "255.255.255.0"
            ],
            "val":{
                "broadcast":"192.168.1.255"
            }
        }
    ]
}

GET v1/ip/ipv4/route/status

{
    "result":[
        {
            "key":{
                "networkAddress":"0.0.0.0",
                "networkPrefixSize":0,
                "nextHop":"192.168.1.1"
            },
            "val":{
                "derivedNextHopInterface":"1"
            }
        }
    ]
}

GET v1/lacp/group

{
    "result":[
        {
            "key":"1",
            "val":{
                "PortMembers":[
                    
                ],
                "AggrMode":3
            }
        },
        {
            "key":"2",
            "val":{
                "PortMembers":[
                    
                ],
                "AggrMode":3
            }
        },
        {
            "key":"3",
            "val":{
                "PortMembers":[
                    
                ],
                "AggrMode":3
            }
        },
        {
            "key":"4",
            "val":{
                "PortMembers":[
                    
                ],
                "AggrMode":3
            }
        },
        {
            "key":"5",
            "val":{
                "PortMembers":[
                    
                ],
                "AggrMode":3
            }
        },
        {
            "key":"6",
            "val":{
                "PortMembers":[
                    
                ],
                "AggrMode":3
            }
        }
    ]
}

GET v1/lacp/info

{
    "result":{
        "StartIndex":28,
        "MaxPortChannels":8,
        "MaxPortsPerPortChannel":8
    }
}

GET v1/lldp

{
    "result":{
        "ReInitDelay":2,
        "msgTxHold":4,
        "msgTxInterval":30,
        "txDelay":2
    }
}

GET v1/lldp/interface

{
    "result":[
        {
            "key":"1",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"2",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"3",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"4",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"5",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"6",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"7",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"8",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"9",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"10",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"11",
            "val":{
                "AdminState":3
            }
        },
        {
            "key":"12",
            "val":{
                "AdminState":3
            }
        }
    ]
}

GET v1/lldp/neighbors/status

{
    "result":[
        {
            "key":"8",
            "val":{
                "ChassisId":"88-88-88-88-87-88",
                "PortIdSubtype":3,
                "PortId":"88-88-88-88-87-88",
                "PortDescription":"",
                "SystemName":"",
                "SystemDescription":"",
                "SystemCapabilities":0,
                "ManagementAddress":""
            }
        }
    ]
}

GET v1/mac

{
    "result":{
        "AgeTime":300
    }
}

GET v1/mac/fdb/status

{
    "result":[
        {
            "key":[
                "1",
                "00:04:4B:FB:23:38"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "00:1D:EC:13:C1:A2"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "0C:9D:92:B8:FC:F2"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "2E:BB:18:EB:F3:1E"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "48:B0:2D:05:63:BA"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "48:E2:44:24:6E:F3"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "60:03:08:99:2D:76"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "7C:9E:BD:F1:51:BC"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "88:88:88:88:87:88"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "98:41:5C:3E:60:B7"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "98:CD:AC:1E:AD:F6"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "A0:FB:C5:26:7D:C2"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "B0:7F:B9:3E:2E:B9"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        },
        {
            "key":[
                "1",
                "EC:E5:12:13:37:E1"
            ],
            "val":{
                "Port":"8",
                "Dynamic":true
            }
        }
    ]
}

GET v1/mirror

{
    "result":[
        
    ]
}

GET v1/ports

{
    "result":[
        {
            "key":"1",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"oneGB",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"Slot0/1",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"2",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"oneGB",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"Slot0/2",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"3",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"tenMBPS",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"Slot0/3",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"4",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"oneGB",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"Slot0/4",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"5",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"oneGB",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":true,
                "MTU":9016,
                "Alias":"Slot0/5",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"6",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"oneGB",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"Slot0/6",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"7",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"oneGB",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"Slot0/7",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"8",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":false,
                "Speed":"oneGB",
                "MediaType":"copper",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":true,
                "MTU":9016,
                "Alias":"Slot0/8",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"9",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":true,
                "Speed":"tenGB",
                "MediaType":"unknown",
                "FC":true,
                "FlowControlStatus":true,
                "Fdx":true,
                "MTU":9016,
                "Alias":"Slot0/9",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"10",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":true,
                "Speed":"tenGB",
                "MediaType":"unknown",
                "FC":true,
                "FlowControlStatus":true,
                "Fdx":true,
                "MTU":9016,
                "Alias":"Slot0/10",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"11",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":true,
                "Speed":"tenGB",
                "MediaType":"unknown",
                "FC":true,
                "FlowControlStatus":true,
                "Fdx":true,
                "MTU":9016,
                "Alias":"Slot0/11",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"12",
            "val":{
                "AutoMode":true,
                "Shutdown":false,
                "Combo":true,
                "Speed":"tenGB",
                "MediaType":"unknown",
                "FC":true,
                "FlowControlStatus":true,
                "Fdx":true,
                "MTU":9016,
                "Alias":"Slot0/12",
                "Type":"ethernetCsmacd",
                "FEC":"N/A"
            }
        },
        {
            "key":"29",
            "val":{
                "AutoMode":false,
                "Shutdown":false,
                "Combo":false,
                "Speed":"",
                "MediaType":"",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"po1",
                "Type":"ieee8023ad",
                "FEC":"N/A"
            }
        },
        {
            "key":"30",
            "val":{
                "AutoMode":false,
                "Shutdown":false,
                "Combo":false,
                "Speed":"",
                "MediaType":"",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"po2",
                "Type":"ieee8023ad",
                "FEC":"N/A"
            }
        },
        {
            "key":"31",
            "val":{
                "AutoMode":false,
                "Shutdown":false,
                "Combo":false,
                "Speed":"",
                "MediaType":"",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"po3",
                "Type":"ieee8023ad",
                "FEC":"N/A"
            }
        },
        {
            "key":"32",
            "val":{
                "AutoMode":false,
                "Shutdown":false,
                "Combo":false,
                "Speed":"",
                "MediaType":"",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"po4",
                "Type":"ieee8023ad",
                "FEC":"N/A"
            }
        },
        {
            "key":"33",
            "val":{
                "AutoMode":false,
                "Shutdown":false,
                "Combo":false,
                "Speed":"",
                "MediaType":"",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"po5",
                "Type":"ieee8023ad",
                "FEC":"N/A"
            }
        },
        {
            "key":"34",
            "val":{
                "AutoMode":false,
                "Shutdown":false,
                "Combo":false,
                "Speed":"",
                "MediaType":"",
                "FC":true,
                "FlowControlStatus":false,
                "Fdx":false,
                "MTU":9016,
                "Alias":"po6",
                "Type":"ieee8023ad",
                "FEC":"N/A"
            }
        }
    ]
}

GET v1/ports/ethernet

{
    "result":[
        {
            "key":"1",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"2",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"3",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"4",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"5",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"6",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"7",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"8",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"9",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"10",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"11",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"12",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"29",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"30",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"31",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"32",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"33",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        },
        {
            "key":"34",
            "val":{
                "RxPauseFrames":0,
                "TxPauseFrames":0
            }
        }
    ]
}

GET v1/ports/fec

{
    "result":[
        {
            "key":"1",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"2",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"3",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"4",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"5",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"6",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"7",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"8",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"9",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"10",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"11",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"12",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"29",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"30",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"31",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"32",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"33",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        },
        {
            "key":"34",
            "val":{
                "NegotiationSuccee":0,
                "FECEnable":0,
                "NegotiationType":"",
                "RxFCEnable":false,
                "TxFCEnable":false
            }
        }
    ]
}

GET v1/ports/resource

{
    "result":[
        {
            "key":"1",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"2",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"3",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"4",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"5",
            "val":{
                "RxOctets":932232672,
                "RxPkts":0,
                "RxBroadcastPkts":907,
                "RxMulticastPkts":2802,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":1537596507,
                "TxBroadcastPkts":53006,
                "TxMulticastPkts":508383
            }
        },
        {
            "key":"6",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"7",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"8",
            "val":{
                "RxOctets":1535813134,
                "RxPkts":0,
                "RxBroadcastPkts":52571,
                "RxMulticastPkts":505756,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":1027245087,
                "TxBroadcastPkts":1071,
                "TxMulticastPkts":5793
            }
        },
        {
            "key":"9",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"10",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"11",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"12",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"29",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"30",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"31",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"32",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"33",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        },
        {
            "key":"34",
            "val":{
                "RxOctets":0,
                "RxPkts":0,
                "RxBroadcastPkts":0,
                "RxMulticastPkts":0,
                "RxCrcAlignErrPkts":0,
                "RxUndersizePkts":0,
                "RxOversizePkts":0,
                "RxFragmentsPkts":0,
                "RxJabbersPkts":0,
                "TxOctets":0,
                "TxBroadcastPkts":0,
                "TxMulticastPkts":0
            }
        }
    ]
}

GET v1/ports/statistics

{
    "result":[
        {
            "key":"1",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"2",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"3",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"4",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"5",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"6",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"7",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"8",
            "val":{
                "RxOctets":2197110278,
                "RxErrors":0,
                "TxOctets":140538421,
                "FCSErrors":0
            }
        },
        {
            "key":"9",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"10",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"11",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"12",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"29",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"30",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"31",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"32",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"33",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        },
        {
            "key":"34",
            "val":{
                "RxOctets":0,
                "RxErrors":0,
                "TxOctets":0,
                "FCSErrors":0
            }
        }
    ]
}

GET v1/ports/status

{
    "result":[
        {
            "key":"1",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"1000"
            }
        },
        {
            "key":"2",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"1000"
            }
        },
        {
            "key":"3",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"10"
            }
        },
        {
            "key":"4",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"1000"
            }
        },
        {
            "key":"5",
            "val":{
                "Link":true,
                "FullDuplexStatus":true,
                "Speed":"100"
            }
        },
        {
            "key":"6",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"1000"
            }
        },
        {
            "key":"7",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"1000"
            }
        },
        {
            "key":"8",
            "val":{
                "Link":true,
                "FullDuplexStatus":true,
                "Speed":"1000"
            }
        },
        {
            "key":"9",
            "val":{
                "Link":false,
                "FullDuplexStatus":true,
                "Speed":"10000"
            }
        },
        {
            "key":"10",
            "val":{
                "Link":false,
                "FullDuplexStatus":true,
                "Speed":"10000"
            }
        },
        {
            "key":"11",
            "val":{
                "Link":false,
                "FullDuplexStatus":true,
                "Speed":"10000"
            }
        },
        {
            "key":"12",
            "val":{
                "Link":false,
                "FullDuplexStatus":true,
                "Speed":"10000"
            }
        },
        {
            "key":"29",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"0"
            }
        },
        {
            "key":"30",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"0"
            }
        },
        {
            "key":"31",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"0"
            }
        },
        {
            "key":"32",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"0"
            }
        },
        {
            "key":"33",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"0"
            }
        },
        {
            "key":"34",
            "val":{
                "Link":false,
                "FullDuplexStatus":false,
                "Speed":"0"
            }
        }
    ]
}

GET v1/ports/transceiver

{
    "result":[
        {
            "key":"1",
            "val":"None"
        },
        {
            "key":"2",
            "val":"None"
        },
        {
            "key":"3",
            "val":"None"
        },
        {
            "key":"4",
            "val":"None"
        },
        {
            "key":"5",
            "val":"None"
        },
        {
            "key":"6",
            "val":"None"
        },
        {
            "key":"7",
            "val":"None"
        },
        {
            "key":"8",
            "val":"None"
        },
        {
            "key":"9",
            "val":"None"
        },
        {
            "key":"10",
            "val":"None"
        },
        {
            "key":"11",
            "val":"None"
        },
        {
            "key":"12",
            "val":"None"
        },
        {
            "key":"29",
            "val":"None"
        },
        {
            "key":"30",
            "val":"None"
        },
        {
            "key":"31",
            "val":"None"
        },
        {
            "key":"32",
            "val":"None"
        },
        {
            "key":"33",
            "val":"None"
        },
        {
            "key":"34",
            "val":"None"
        }
    ]
}

GET v1/qos/default

{
    "result":[
        {
            "key":1,
            "val":0
        },
        {
            "key":2,
            "val":0
        },
        {
            "key":3,
            "val":0
        },
        {
            "key":4,
            "val":0
        },
        {
            "key":5,
            "val":0
        },
        {
            "key":6,
            "val":0
        },
        {
            "key":7,
            "val":0
        },
        {
            "key":8,
            "val":0
        },
        {
            "key":9,
            "val":0
        },
        {
            "key":10,
            "val":0
        },
        {
            "key":11,
            "val":0
        },
        {
            "key":12,
            "val":0
        },
        {
            "key":29,
            "val":0
        },
        {
            "key":30,
            "val":0
        },
        {
            "key":31,
            "val":0
        },
        {
            "key":32,
            "val":0
        },
        {
            "key":33,
            "val":0
        },
        {
            "key":34,
            "val":0
        }
    ]
}

GET v1/qos/mode

{
    "result":[
        {
            "key":1,
            "val":1
        },
        {
            "key":2,
            "val":1
        },
        {
            "key":3,
            "val":1
        },
        {
            "key":4,
            "val":1
        },
        {
            "key":5,
            "val":1
        },
        {
            "key":6,
            "val":1
        },
        {
            "key":7,
            "val":1
        },
        {
            "key":8,
            "val":1
        },
        {
            "key":9,
            "val":1
        },
        {
            "key":10,
            "val":1
        },
        {
            "key":11,
            "val":1
        },
        {
            "key":12,
            "val":1
        },
        {
            "key":13,
            "val":1
        },
        {
            "key":14,
            "val":1
        },
        {
            "key":15,
            "val":1
        },
        {
            "key":16,
            "val":1
        },
        {
            "key":17,
            "val":1
        },
        {
            "key":18,
            "val":1
        },
        {
            "key":19,
            "val":1
        },
        {
            "key":20,
            "val":1
        },
        {
            "key":21,
            "val":1
        },
        {
            "key":22,
            "val":1
        },
        {
            "key":23,
            "val":1
        },
        {
            "key":24,
            "val":1
        },
        {
            "key":25,
            "val":1
        },
        {
            "key":26,
            "val":1
        },
        {
            "key":27,
            "val":1
        },
        {
            "key":28,
            "val":1
        }
    ]
}

GET v1/qos/pcp

{
    "result":[
        {
            "key":10,
            "val":1
        },
        {
            "key":11,
            "val":2
        },
        {
            "key":12,
            "val":3
        },
        {
            "key":13,
            "val":4
        },
        {
            "key":14,
            "val":5
        },
        {
            "key":15,
            "val":6
        },
        {
            "key":16,
            "val":7
        },
        {
            "key":17,
            "val":8
        }
    ]
}

GET v1/rstp

{
    "result":[
        {
            "key":0,
            "val":2
        }
    ]
}

GET v1/rstp/interface

{
    "result":[
        {
            "key":1,
            "val":1
        },
        {
            "key":2,
            "val":1
        },
        {
            "key":3,
            "val":1
        },
        {
            "key":4,
            "val":1
        },
        {
            "key":5,
            "val":1
        },
        {
            "key":6,
            "val":1
        },
        {
            "key":7,
            "val":1
        },
        {
            "key":8,
            "val":1
        },
        {
            "key":9,
            "val":1
        },
        {
            "key":10,
            "val":1
        },
        {
            "key":11,
            "val":1
        },
        {
            "key":12,
            "val":1
        },
        {
            "key":29,
            "val":1
        },
        {
            "key":30,
            "val":1
        },
        {
            "key":31,
            "val":1
        },
        {
            "key":32,
            "val":1
        },
        {
            "key":33,
            "val":1
        },
        {
            "key":34,
            "val":1
        }
    ]
}

GET v1/rstp/interface/role

{
    "result":[
        {
            "key":1,
            "val":0
        },
        {
            "key":2,
            "val":0
        },
        {
            "key":3,
            "val":0
        },
        {
            "key":4,
            "val":0
        },
        {
            "key":5,
            "val":0
        },
        {
            "key":6,
            "val":0
        },
        {
            "key":7,
            "val":0
        },
        {
            "key":8,
            "val":0
        },
        {
            "key":9,
            "val":0
        },
        {
            "key":10,
            "val":0
        },
        {
            "key":11,
            "val":0
        },
        {
            "key":12,
            "val":0
        },
        {
            "key":29,
            "val":0
        },
        {
            "key":30,
            "val":0
        },
        {
            "key":31,
            "val":0
        },
        {
            "key":32,
            "val":0
        },
        {
            "key":33,
            "val":0
        },
        {
            "key":34,
            "val":0
        }
    ]
}

GET v1/rstp/interface/state

{
    "result":[
        {
            "key":1,
            "val":0
        },
        {
            "key":2,
            "val":0
        },
        {
            "key":3,
            "val":0
        },
        {
            "key":4,
            "val":0
        },
        {
            "key":5,
            "val":0
        },
        {
            "key":6,
            "val":0
        },
        {
            "key":7,
            "val":0
        },
        {
            "key":8,
            "val":0
        },
        {
            "key":9,
            "val":0
        },
        {
            "key":10,
            "val":0
        },
        {
            "key":11,
            "val":0
        },
        {
            "key":12,
            "val":0
        },
        {
            "key":29,
            "val":0
        },
        {
            "key":30,
            "val":0
        },
        {
            "key":31,
            "val":0
        },
        {
            "key":32,
            "val":0
        },
        {
            "key":33,
            "val":0
        },
        {
            "key":34,
            "val":0
        }
    ]
}

GET v1/rstp/priority

{
    "result":[
        {
            "key":0,
            "val":32768
        }
    ]
}

GET v1/sntp

{
    "result":{
        "AdminState":true
    }
}

GET v1/sntp/server

{
    "result":[
        {
            "key":"1",
            "val":{
                "Address":"pool.ntp.org",
                "Port":123,
                "Version":4
            }
        }
    ]
}

GET v1/sntp/status

{
    "result":{
        "ClientStatus":2,
        "LastUpdateTime":""
    }
}

GET v1/sntp/timezone

{
    "result":{
        "timezone":"+01:00"
    }
}

GET v1/system/board

{
    "result":{
        "MacAddr":"24:5E:BE:XX:XX:XX",
        "SerialNumber":"XXXXXXXXXX",
        "ChipId":"ALLEYCAT3",
        "Model":"M408",
        "PortNum":12,
        "Product":"QSW-M408-4C",
        "TrunkNum":0
    }
}

GET v1/system/clock

{
    "result":{
        "HR":17,
        "MI":33,
        "SE":0,
        "DD":11,
        "MM":10,
        "YYYY":2021
    }
}

POST v1/system/command {"command": "reboot"}

{
    "result":"None"
}

GET v1/system/https

{
    "result":{
        "HttpsEnable":true,
        "HttpsPort":"443",
        "HttpsOnly":false,
        "TLSVersion":"1.2"
    }
}

GET v1/system/info

{
    "result":{
        "hostname":"QSW-M408-4C",
        "contact":"[email protected]",
        "location":"ARICENT",
        "mac":"24:5E:BE:XX:XX:XX"
    }
}

GET v1/system/sensor

{
    "result":{
        "Fan1Speed":2005,
        "Fan2Speed":-1,
        "MaxSwitchTemp":85,
        "SwitchTemp":39
    }
}

GET v1/system/time

{
    "result":{
        "UpTime":42058
    }
}

GET v1/system/web/config

{
    "result":{
        "Language":"AUTO"
    }
}

GET v1/users

{
    "result":[
        {
            "key":"admin",
            "val":{
                "Privilege":15
            }
        },
        {
            "key":"debug",
            "val":{
                "Privilege":15
            }
        },
        {
            "key":"guest",
            "val":{
                "Privilege":1
            }
        }
    ]
}

POST v1/users/exit

{
    "result":"None"
}

POST v1/users/login

{
    "result":"api-token"
}

GET v1/users/verification

{
    "result":"None"
}

GET v1/vlan

{
    "result":[
        {
            "key":"1",
            "val":[
                {
                    "Port":"1",
                    "Tagged":false
                },
                {
                    "Port":"2",
                    "Tagged":false
                },
                {
                    "Port":"3",
                    "Tagged":false
                },
                {
                    "Port":"4",
                    "Tagged":false
                },
                {
                    "Port":"5",
                    "Tagged":false
                },
                {
                    "Port":"6",
                    "Tagged":false
                },
                {
                    "Port":"7",
                    "Tagged":false
                },
                {
                    "Port":"8",
                    "Tagged":false
                },
                {
                    "Port":"9",
                    "Tagged":false
                },
                {
                    "Port":"10",
                    "Tagged":false
                },
                {
                    "Port":"11",
                    "Tagged":false
                },
                {
                    "Port":"12",
                    "Tagged":false
                },
                {
                    "Port":"29",
                    "Tagged":false
                },
                {
                    "Port":"30",
                    "Tagged":false
                },
                {
                    "Port":"31",
                    "Tagged":false
                },
                {
                    "Port":"32",
                    "Tagged":false
                },
                {
                    "Port":"33",
                    "Tagged":false
                },
                {
                    "Port":"34",
                    "Tagged":false
                }
            ]
        }
    ]
}

GET v1/vlan/indexs

{
    "result":{
        "idx":[
            "1"
        ]
    }
}
Clone this wiki locally