Get protection status
/services/{serviceId}/protectionUse this to show whether a server is protected, under attack or paused, its traffic at the protection layer now, the incident being mitigated, and its protected ports. It shows only what the panel's protection page shows for this service.
- Token
- Bearer API token: cxk_live_ followed by 46 letters and digits
- Scope
protection:read- Header
Authorization: Bearer $CLOUDUXE_API_KEY
How tokens and scopes work: Authentication and scopes.
serviceIdstring (uuid)RequiredThe service's id.
Clouduxe-VersionstringOptionalThe API version to use, such as 2026-12-01. Omit it to use your token's version.
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
200OK The protection state.
objectstringRequiredThe object's type. Always "protection".
serviceIdstring (uuid)RequiredThe service's id.
statusstringRequiredprotected (on, no attack), under_attack (an attack is being mitigated now), elevated (traffic is higher than usual, no attack), paused (protection is off, so nothing is filtered), sealed (the address is idle and protection holds it closed; contact support), not_reporting (protection has not reported recently, so no claim about traffic is made), unknown (the state could not be read), or managed (a protected proxy, set up and watched by staff).
One ofprotectedunder_attackelevatedpausedsealednot_reportingunknownmanagedmitigatingbooleanRequiredTrue while an attack is being mitigated now.
currentIncidentIdstring (uuid) or nullRequiredThe incident being mitigated now, or null.
trafficobject or nullRequiredTraffic now, or null for a managed proxy.
Show 3 child attributesHide 3 child attributes
receivedPpsinteger or nullRequiredPackets per second arriving at the protection layer, or null when not known.
droppedPpsinteger or nullRequiredPackets per second dropped by protection, or null when not known.
measuredAtstring (date-time) or nullRequiredWhen these rates were measured, or null.
last24Hoursobject or nullRequiredPackets in the last 24 hours, or null when not known.
Show 2 child attributesHide 2 child attributes
receivedPacketsinteger or nullRequiredPackets received.
droppedPacketsinteger or nullRequiredPackets dropped by protection.
portsarray of ProtectedPortRequiredThe protected ports, as the panel shows them. Change them with the firewall operations.
Show 5 child attributesHide 5 child attributes
protocolstringRequiredtcp or udp.
One oftcpudpportStartintegerRequiredThe first port.
min 1, max 65535portEndintegerRequiredThe last port.
min 1, max 65535profilestring or nullRequiredThe protection profile that inspects this traffic, or null for the default checks.
enabledbooleanRequiredWhether the rule is on.
protectedSincestring (date-time) or nullRequiredWhen protection data for this service starts: nothing before this service held the address is ever shown.
updatedAtstring (date-time) or nullRequiredWhen this state was read.
livemodebooleanRequiredTrue for objects of your live account.
Every response
- 200OKThe protection state.
- 400Bad requestThe request is not valid. Codes: version_invalid.
- 401UnauthorizedAuthentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.
- 403ForbiddenThe token is not allowed to do this. Codes: ip_not_allowed, api_access_disabled, scope_missing.
- 404Not foundNot found. Codes: not_found.
- 409ConflictThe request conflicts with the object's current state. Codes: protection_not_available.
- 429Too many requestsA rate limit was reached. Codes: rate_limited.
- 500Server errorUnexpected error. Codes: internal_error.
- 503UnavailableTemporarily unavailable. Codes: unavailable.