Skip to main content
GET
/
servers
/
{server}
/
firewall
Get firewall rules
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": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.rdp.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

server
string
required

Response

Firewall rules retrieved successfully.

status
boolean
rules
object[]
options
object