Aller au contenu

Lire une zone avec sa pile de couches et ses décomptes

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.

Fenêtre de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/zones/<zone_id>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
viewerAutorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : zones:read

ParamètreTypeDescription
zone_idstring (uuid)Obligatoire.
ChampTypeDescription
ask_modestring or null
effective_ask_modestring
idstringObligatoire.
is_defaultboolean
is_rootbooleanObligatoire.
kpisobjectObligatoire. A zone's summary counts, including I-6 evidence in its subtree.
kpis.agentsobjectObligatoire. A zone's agent counts, by control level.
kpis.agents.compatibility_unavailableintegerObligatoire.
kpis.agents.enforcedintegerObligatoire.
kpis.agents.knownintegerObligatoire.
kpis.agents.monitoredintegerObligatoire.
kpis.agents.totalintegerObligatoire.
kpis.anomalies_24hinteger
kpis.policiesobjectObligatoire.
kpis.policies.added_hereintegerObligatoire.
kpis.policies.disabledintegerObligatoire.
kpis.policies.enforceintegerObligatoire.
kpis.policies.in_forceintegerObligatoire.
kpis.policies.inheritedintegerObligatoire.
kpis.policies.monitorintegerObligatoire.
kpis.waitinginteger
layersarray of objectObligatoire.
layers[].depthintegerObligatoire.
layers[].labelstringObligatoire.
layers[].unit_idstringObligatoire.
limitsobject or null
limits.cannot_promptintegerObligatoire. Agents whose binding cannot prompt: their ASKs take the fallback verdict.
limits.in_scopeintegerObligatoire. Agents whose effective zone is in the subtree.
limits.shell_onlyintegerObligatoire. Agents whose refusals reach shell tools only (Cline today).
org_unit_idstringObligatoire.
org_unit_pathstringObligatoire.
revisionintegerObligatoire.
{
"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
}