AI ready
Open in Claude (opens in a new tab)View as Markdown

Get protection status

GET/services/{serviceId}/protection

Use 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)Required

    The service's id.

  • Clouduxe-VersionstringOptional

    The 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}$

Returns

200OK The protection state.

  • objectstringRequired

    The object's type. Always "protection".

  • serviceIdstring (uuid)Required

    The service's id.

  • statusstringRequired

    protected (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_reportingunknownmanaged
  • mitigatingbooleanRequired

    True while an attack is being mitigated now.

  • currentIncidentIdstring (uuid) or nullRequired

    The incident being mitigated now, or null.

  • trafficobject or nullRequired

    Traffic now, or null for a managed proxy.

    Show 3 child attributesHide 3 child attributes
    • receivedPpsinteger or nullRequired

      Packets per second arriving at the protection layer, or null when not known.

    • droppedPpsinteger or nullRequired

      Packets per second dropped by protection, or null when not known.

    • measuredAtstring (date-time) or nullRequired

      When these rates were measured, or null.

  • last24Hoursobject or nullRequired

    Packets in the last 24 hours, or null when not known.

    Show 2 child attributesHide 2 child attributes
    • receivedPacketsinteger or nullRequired

      Packets received.

    • droppedPacketsinteger or nullRequired

      Packets dropped by protection.

  • portsarray of ProtectedPortRequired

    The protected ports, as the panel shows them. Change them with the firewall operations.

    Show 5 child attributesHide 5 child attributes
    • protocolstringRequired

      tcp or udp.

      One oftcpudp
    • portStartintegerRequired

      The first port.

      min 1, max 65535
    • portEndintegerRequired

      The last port.

      min 1, max 65535
    • profilestring or nullRequired

      The protection profile that inspects this traffic, or null for the default checks.

    • enabledbooleanRequired

      Whether the rule is on.

  • protectedSincestring (date-time) or nullRequired

    When protection data for this service starts: nothing before this service held the address is ever shown.

  • updatedAtstring (date-time) or nullRequired

    When this state was read.

  • livemodebooleanRequired

    True 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.

Updated 5 November 2026. Generated from the API contract.

Need a server, or a hand with one?

Pick a plan to deploy a server, or open a ticket in the panel. Support runs 24/7/365.