🌟 本文档由 麒曦Chish 整理发布,与官方无关,不代表官方立场,仅供参考,请以官方发布为准。
curl --location '/hosts/firewall/settings' \
--header '1Panel-Token: {{Token}}' \
--header '1Panel-Timestamp: {{UnixTimestamp}}' \
--header 'Content-Type: application/json'{
"docker": {
"current": "string",
"options": [
{
"active": true,
"bound": true,
"implementation": "string",
"initialized": true,
"installed": true,
"ipv4": {
"bound": true,
"initialized": true
},
"ipv6": {
"bound": true,
"initialized": true
},
"message": "string",
"name": "string",
"supported": true
}
],
"selected": "string"
},
"forwarding": {
"current": "string",
"options": [
{
"active": true,
"bound": true,
"implementation": "string",
"initialized": true,
"installed": true,
"ipv4": {
"bound": true,
"initialized": true
},
"ipv6": {
"bound": true,
"initialized": true
},
"message": "string",
"name": "string",
"supported": true
}
],
"selected": "string"
},
"panelPort": "string",
"pingStatus": "string",
"portWhiteList": [
{
"port": "string",
"protocol": "string",
"sources": [
"string"
],
"type": "string"
}
],
"sshPort": "string",
"system": {
"current": "string",
"options": [
{
"active": true,
"bound": true,
"implementation": "string",
"initialized": true,
"installed": true,
"ipv4": {
"bound": true,
"initialized": true
},
"ipv6": {
"bound": true,
"initialized": true
},
"message": "string",
"name": "string",
"supported": true
}
],
"selected": "string"
}
}