Check the CrowdSec protection status on a specific virtual server (VM). Returns information on protected IPs, protection status, and opted-out IPs. Used to troubleshoot or verify server security settings.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string retryAfter string requestId string https://cloud.hostup.se/api/vm/{vmid}/crowdsec curl -X GET "https://cloud.hostup.se/api/vm/6912/crowdsec" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"ips": [
"string"
],
"ip_statuses": [
{
"ip": "string",
"is_opted_out": true,
"opt_out_date": "string"
}
],
"protection_active": true,
"total_ips": 0,
"opted_out_count": 0
}
}