🌟 本文档由 麒曦Chish 整理发布,与官方无关,不代表官方立场,仅供参考,请以官方发布为准。
{
"rule": {
"port": "string",
"protocol": "string",
"sources": [
"string"
],
"type": "string"
}
}curl --location '/hosts/firewall/settings/whitelist' \
--header '1Panel-Token: {{Token}}' \
--header '1Panel-Timestamp: {{UnixTimestamp}}' \
--header 'Content-Type: application/json' \
--data '{
"rule": {
"port": "string",
"protocol": "string",
"sources": [
"string"
],
"type": "string"
}
}'{}