# list_active_evoshield_rules
The EvoShield list_active_evoshield_rules GET endpoint returns a list of each active EvoShield rule/profile
Parameters
account
: The account key - which can be found in the Settings area of the Evolution Host client area: https://evolution-host.com/controlPanelservice_key
: The unique key for the particular Evolution Host service being used in this API call - Can be found by using the /list_services API endpointResponse
JSON array of objects containing information about the specified service
application
: The full name of the application being protected by the ruletype
: The type of service the rule pertains to (Remote Protection or VPS)ip
: The IPv4 address that the rule was added toport
: The main server port that the rule was added toprotocol
: The protocol of the rule for the main server portextra_ports
: An array of additional ports being used by the rule ⇢port:
The port being used by the extra_port ⇢protocol:
The protocol being used by the extra_port ⇢port_use:
What the extra_port is being used fordate_added
: The date and time that the rule was added (UTC time zone, RFC 3339 timestamp format)rule_id
: The unique rule ID that can be used with the delete_rule API endpointapp_code
: The unique application code name that can be used with the add_rule API endpoint
$url = "https://evolution-host.com/api.php";
$action = "list_active_evoshield_rules";
$callData = http_build_query([
'account' => 'YOUR_ACCOUNT_KEY', //Obtain key from the Evolution Host client panel
'service_key' => 'YOUR_SERVICE_KEY', //Obtain key from the /list_services API endpoint
'action' => $action,
]);
$ch = curl_init($url . '?' . $callData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPGET, true);
$result = curl_exec($ch);
if($result != false)
{
$result = json_decode($result);
if(json_last_error() !== JSON_ERROR_NONE)
{
echo 'JSON Error: ' . json_last_error_msg();
}
echo '<pre>' . json_encode($result, JSON_PRETTY_PRINT) . '</pre>';
}
curl_close($ch);
Example Remote Protection Response
[
{
"application": "Minecraft Java Edition",
"type": "VPS",
"ip": "55.83.206.221",
"port": 25565,
"protocol": "TCP",
"extra_ports": null,
"date_added": "2025-02-18T04:35:10Z",
"rule_id": "pIFdkvTl",
"app_code": "minecraft_java"
},
{
"application": "Conan Exiles",
"type": "VPS",
"ip": "55.83.206.221",
"port": 7777,
"protocol": "UDP",
"extra_ports": [
{
"port": 27015,
"protocol": "UDP",
"port_use": "Query"
},
{
"port": 7778,
"protocol": "UDP",
"port_use": "Pinger"
},
{
"port": 7777,
"protocol": "TCP",
"port_use": "Download"
},
{
"port": 25575,
"protocol": "TCP",
"port_use": "Rcon"
}
],
"date_added": "2025-02-18T04:35:10Z",
"rule_id": "dBXhb4w9",
"app_code": "conan_exiles"
},
{
"application": "ICMP",
"type": "VPS",
"ip": "55.83.206.221",
"port": 0,
"protocol": "ICMP",
"extra_ports": null,
"date_added": "2025-02-18T04:35:20Z",
"rule_id": "4PNHT7yK",
"app_code": "icmp"
},
{
"application": "SSH",
"type": "VPS",
"ip": "55.83.206.221",
"port": 22,
"protocol": "TCP",
"extra_ports": null,
"date_added": "2025-02-18T04:35:31Z",
"rule_id": "E1q2Hutl",
"app_code": "ssh"
},
{
"application": "OpenVPN",
"type": "VPS",
"ip": "55.83.206.221",
"port": 1194,
"protocol": "UDP",
"extra_ports": null,
"date_added": "2025-02-18T04:35:50Z",
"rule_id": "2kTFFhNB",
"app_code": "openvpn"
}
]