Skip to content

API Reference / Proxy remediations

Count proxy remediation records

Returns the number of proxy remediation records in your workspace, optionally filtered by pool or status, so a list page can render a count without loading and counting every row.

POST/proxies.v1.Proxies/CountRemediations

Request body

application/jsonRequired

Request for the number of endpoint remediations in each status in the caller's workspace.

filter?RemediationFilter

The same filter as ListRemediations.

Show attributes
poolId?string

Optional pool id to limit results to that pool's remediation records. Unset includes remediation records across all pools.

Format"byte" base64

Response body

application/json

Success

counts?array<RemediationStatusCount>

Count of remediation records in each status, scoped to the workspace and the filter. A status with no records may be omitted.

Show attributes
count?integer

Number of remediations in this status.

Format"int32"

status?string

The remediation status this count is for.

Value in"REMEDIATION_STATUS_NEEDS_NEW_ENDPOINT""REMEDIATION_STATUS_ACQUIRING""REMEDIATION_STATUS_BOUND""REMEDIATION_STATUS_SYNCING""REMEDIATION_STATUS_DONE""REMEDIATION_STATUS_HALTED"

curl -X POST "https://api.goldmine.to/proxies.v1.Proxies/CountRemediations" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "counts": [
    {
      "status": "REMEDIATION_STATUS_HALTED",
      "count": 1
    },
    {
      "status": "REMEDIATION_STATUS_DONE",
      "count": 1
    }
  ]
}