cURL
curl --request GET \ --url https://rdp.sh/api/v1/servers/{server}/firewall \ --header 'Authorization: <api-key>'
{ "status": true, "rules": [ { "pos": 123, "type": "in", "action": "ACCEPT", "proto": "<string>", "dport": "<string>", "sport": "<string>", "source": "<string>", "dest": "<string>", "comment": "<string>", "enable": 123 } ], "options": {} }
Get the list of firewall rules for a server.
Firewall rules retrieved successfully.
Show child attributes