-
Notifications
You must be signed in to change notification settings - Fork 2
Connectedport
接続済みのポートを取得する
#####URI
http://<OF-Patch Manager IP address>:<port>/ofpm/device_mng/connectedPort
#####Method
Method name | Description |
---|---|
GET | 接続済みのポートを取得する |
#####Request parameters(GET)
Parameter Name | Value | Description |
---|---|---|
deviceName | デバイス名を指定 |
#####Request sample(GET)
http://127.0.0.1:18080/ofpm/device_mng/connectedPort?deviceName=NETGEAR_GS116_HUB01
#####Response(GET)
Parameter name | Value | Description |
---|---|---|
result | 接続されているポート分のlinkを保持 | |
link | - | |
portName | ポート名 | |
portNumber | ポート番号 | |
ofpFlag | 未使用 | |
deviceName | デバイス名 | |
deviceType | デバイスタイプ | |
status | HTTPステータスコード | |
message | HTTPメッセージ | エラーメッセージが確認される |
#####Response sample(GET)
{
"result": [
{
"link": [
{
"portName": "Port1",
"portNumber": 1,
"ofpFlag": "false",
"deviceName": "NETGEAR_GS116_HUB01",
"deviceType": "Switch"
},
{
"portName": "eth-0-13",
"portNumber": 13,
"ofpFlag": "true",
"deviceName": "CENTEC_V350_LEAF5",
"deviceType": "Leaf"
}
]
},
{
"link": [
{
"portName": "Port2",
"portNumber": 2,
"ofpFlag": "false",
"deviceName": "NETGEAR_GS116_HUB01",
"deviceType": "Switch"
},
{
"portName": "eth-0-14",
"portNumber": 14,
"ofpFlag": "true",
"deviceName": "CENTEC_V350_LEAF5",
"deviceType": "Leaf"
}
]
}
],
"status": 200
}