Apply service public firewall
apply_service_public_firewallResend a server's saved public firewall to its node when state is not_applied, keeping rules unchanged; then poll the firewall state to confirm the node's answer.
Instructions
Send the saved firewall of an owned server to its node again, typically after state not_applied; the rules and the generation do not change. Free. A send still waiting for the node's answer is not repeated; a server without a firewall, or with it switched off and confirmed, answers its current state and nothing is sent. Poll get_service_public_firewall for the state. client_address in the answer is the address the VPSnet API saw for this request: with this local package the public address of the machine that runs it, over a hosted connection the connector's gateway (returned there as null). It is never proof of the user's own address: ask the user which source address to allow before writing a rule with it. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks. Read current capabilities and owned resource state first; obtain approval for the exact change. An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource on its in_progress flag, waiting next_check_seconds between reads: while in_progress is true its reason_code is what is awaited (reason_kind waiting, e.g. a queued or pending reason, or a control plane that has not answered yet), never an error; only in_progress false with reason_kind failure is a failure. Preserve reason_code. On transport uncertainty inspect state and reuse only the original key and unchanged request; never automatically retry.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service_id": "<service_id>"
},
"name": "apply_service_public_firewall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes |