获取节点网卡配置文件信息
测试中
GET
/{adminPath}/getPveNodeInterfaces
最后修改时间:2025-01-12 02:42:15
责任人:mryunqi
请求参数
Path 参数
adminPath
string
必需
示例值:
admin
Query 参数
nodeId
integer
可选
示例值:
1
Header 参数
Authorization
string
可选
示例值:
{{ACCESS_TOKEN}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/admin/getPveNodeInterfaces?nodeId=1' \
--header 'Authorization: {{ACCESS_TOKEN}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
string
必需
示例
{
"code": 20000,
"message": "请求成功",
"data": "# network interface settings; autogenerated\n# Please do NOT modify this file directly, unless you know what\n# you're doing.\n#\n# If you want to manage parts of the network configuration manually,\n# please utilize the 'source' or 'source-directory' directives to do\n# so.\n# PVE will preserve these directives, but will NOT read its network\n# configuration from sourced files, so do not attempt to move any of\n# the PVE managed interfaces into external files!\n\nauto lo\niface lo inet loopback\n\niface ens33 inet manual\n\nauto vmbr0\niface vmbr0 inet static\n\taddress 192.168.36.155/24\n\tgateway 192.168.36.2\n\tbridge-ports ens33\n\tbridge-stp off\n\tbridge-fd 0\n\n"
}
修改于 2025-01-12 02:42:15