Ir al contenido

Leer una zona con su pila de capas y sus recuentos

GET/api/public/v1/zones/{zone_id}

The layer stack from the root down to this zone, plus the agent and policy counts. waiting and anomalies_24h are filtered over stored I-6 evidence in the zone subtree.

Ventana de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/zones/<zone_id>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerPermitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: zones:read

ParámetroTipoDescripción
zone_idstring (uuid)Obligatorio.
CampoTipoDescripción
ask_modestring or null
effective_ask_modestring
idstringObligatorio.
is_defaultboolean
is_rootbooleanObligatorio.
kpisobjectObligatorio. A zone's summary counts, including I-6 evidence in its subtree.
kpis.agentsobjectObligatorio. A zone's agent counts, by control level.
kpis.agents.compatibility_unavailableintegerObligatorio.
kpis.agents.enforcedintegerObligatorio.
kpis.agents.knownintegerObligatorio.
kpis.agents.monitoredintegerObligatorio.
kpis.agents.totalintegerObligatorio.
kpis.anomalies_24hinteger
kpis.policiesobjectObligatorio.
kpis.policies.added_hereintegerObligatorio.
kpis.policies.disabledintegerObligatorio.
kpis.policies.enforceintegerObligatorio.
kpis.policies.in_forceintegerObligatorio.
kpis.policies.inheritedintegerObligatorio.
kpis.policies.monitorintegerObligatorio.
kpis.waitinginteger
layersarray of objectObligatorio.
layers[].depthintegerObligatorio.
layers[].labelstringObligatorio.
layers[].unit_idstringObligatorio.
limitsobject or null
limits.cannot_promptintegerObligatorio. Agents whose binding cannot prompt: their ASKs take the fallback verdict.
limits.in_scopeintegerObligatorio. Agents whose effective zone is in the subtree.
limits.shell_onlyintegerObligatorio. Agents whose refusals reach shell tools only (Cline today).
org_unit_idstringObligatorio.
org_unit_pathstringObligatorio.
revisionintegerObligatorio.
{
"ask_mode": "string",
"effective_ask_mode": "both",
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"is_default": false,
"is_root": false,
"kpis": {
"agents": {
"compatibility_unavailable": 3,
"enforced": 3,
"known": 3,
"monitored": 3,
"total": 3
},
"anomalies_24h": 0,
"policies": {
"added_here": 3,
"disabled": 3,
"enforce": 3,
"in_force": 3,
"inherited": 3,
"monitor": 3
},
"waiting": 0
},
"layers": [
{
"depth": 3,
"label": "string",
"unit_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10"
}
],
"limits": {
"cannot_prompt": 3,
"in_scope": 3,
"shell_only": 3
},
"org_unit_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"org_unit_path": "Engineering / Platform",
"revision": 3
}