本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
GetNetwork介面
貢獻者
個別的 PDF 文件集合
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
您可以使用「GetNetwork介面」方法來取得節點上網路介面的相關資訊。
參數
此方法具有下列輸入參數:
名稱 | 說明 | 類型 | 預設值 | 必要 |
---|---|---|---|---|
介面 |
可取得每個節點相關資訊的介面名稱。可能值:
|
字串 |
無 |
否 |
力 |
將此參數設為true可在叢集中的所有節點上執行。 |
布林值 |
錯 |
否 |
傳回值
此方法具有下列傳回值:
名稱 | 說明 | 類型 |
---|---|---|
節點 |
一組物件、說明儲存叢集中每個儲存節點的介面。陣列中的每個物件都包含下列項目:
|
Json物件陣列 |
申請範例
此方法的要求類似於下列範例:
{ "method": "GetNetworkInterface", "params": { "interface": "Bond1G", "force": true }, "id": 1 }
回應範例
此方法會傳回類似下列範例的回應:
{ "id": 1, "result": { "nodes": [ { "nodeID": 1, "result": { "interface": { "address": "10.117.64.32", "addressV6": "::", "broadcast": "10.117.79.255", "macAddress": "90:b1:1c:42:e0:1e", "mtu": 1500, "name": "Bond1G", "namespace": false, "netmask": "255.255.240.0", "status": "UpAndRunning", "type": "BondMaster", "virtualNetworkTag": 0 } } }, { "nodeID": 2, "result": { "interface": { "address": "10.117.64.35", "addressV6": "::", "broadcast": "10.117.79.255", "macAddress": "d4:ae:52:7a:ae:23", "mtu": 1500, "name": "Bond1G", "namespace": false, "netmask": "255.255.240.0", "status": "UpAndRunning", "type": "BondMaster", "virtualNetworkTag": 0 } } }, { "nodeID": 3, "result": { "interface": { "address": "10.117.64.39", "addressV6": "::", "broadcast": "10.117.79.255", "macAddress": "c8:1f:66:f0:9d:17", "mtu": 1500, "name": "Bond1G", "namespace": false, "netmask": "255.255.240.0", "status": "UpAndRunning", "type": "BondMaster", "virtualNetworkTag": 0 } } }, { "nodeID": 4, "result": { "interface": { "address": "10.117.64.107", "addressV6": "::", "broadcast": "10.117.79.255", "macAddress": "b8:ca:3a:f5:24:f8", "mtu": 1500, "name": "Bond1G", "namespace": false, "netmask": "255.255.240.0", "status": "UpAndRunning", "type": "BondMaster", "virtualNetworkTag": 0 } } } ] } }
新的自版本
9.6