🌟 本文档由 麒曦Chish 整理发布,与官方无关,不代表官方立场,仅供参考,请以官方发布为准。
curl --location '/hosts/firewall/docker/ports' \
--header '1Panel-Token: {{Token}}' \
--header '1Panel-Timestamp: {{UnixTimestamp}}' \
--header 'Content-Type: application/json'{
"base": {
"backend": "string",
"bound": true,
"initialized": true,
"ipv4": {
"bound": true,
"effective": true,
"initialized": true,
"reason": "string",
"state": "string"
},
"ipv6": {
"bound": true,
"effective": true,
"initialized": true,
"reason": "string",
"state": "string"
},
"message": "string",
"name": "string"
},
"containers": [
{
"application": "string",
"compose": "string",
"endpoints": [
{
"application": "string",
"compose": "string",
"containerID": "string",
"containerName": "string",
"containerPort": 0,
"description": "string",
"effective": true,
"family": "string",
"hostIP": "string",
"hostPort": 0,
"mode": "string",
"policyUUID": "string",
"protocol": "string",
"sources": [
"string"
]
}
],
"key": "string",
"name": "string",
"portGroups": [
{
"endpoint": {
"application": "string",
"compose": "string",
"containerID": "string",
"containerName": "string",
"containerPort": 0,
"description": "string",
"effective": true,
"family": "string",
"hostIP": "string",
"hostPort": 0,
"mode": "string",
"policyUUID": "string",
"protocol": "string",
"sources": [
"string"
]
},
"endpoints": [
{
"application": "string",
"compose": "string",
"containerID": "string",
"containerName": "string",
"containerPort": 0,
"description": "string",
"effective": true,
"family": "string",
"hostIP": "string",
"hostPort": 0,
"mode": "string",
"policyUUID": "string",
"protocol": "string",
"sources": [
"string"
]
}
],
"key": "string",
"label": "string"
}
]
}
]
}