Read RSVP-TE LSP state
POST
/tasks/{id}/rsvp/queryIncludes an opaque profile-revision for persistent Path Apply. Reads one complete P2P/P2MP identity on one named routing agent of a RUNNING task. P2P send-detour=true selects the detached ingress detour for observation; omitting the role selects primary. Preserves native anchor/active state, learned information and counters without float conversion. When supplied by the agent, read-started-at/read-completed-at bracket its sequential native reads; they do not make an atomic RSVP FSM snapshot. No fan-out or legacy AgentIPs fallback.
Контракт
Параметр | Значение |
|---|---|
| Раздел | tasks |
| Авторизация | CookieAuth |
| Принимает | application/json |
| Возвращает | application/json |
Параметры
2 параметров
Имя | Где | Обязательный | Тип | Описание |
|---|---|---|---|---|
| id | path | да | integer | Task ID |
| request | body | да | object | Agent hostname and full LSP identity; body at most 64 KiB |
{ "agent": "<string>", "identity": { "accept-detour": true, "endpoint": "<string>", "ext-tunnel-id": "<string>", "instance": 0, "kind": "p2p", "lsp-id": 0, "p2mp-id": 0, "send-detour": true, "sender": "<string>", "tunnel-id": 0 } }
Ответы
10 ответов
Статус | Описание | Тип |
|---|---|---|
200 | OK | object |
400 | Invalid ID, JSON or identity; native request error | object |
401 | Session required | object |
403 | Not a routing agent of this task or license denied | object |
404 | Task or LSP not found | object |
409 | Task/agent is not running, stopping or runtime changed | object |
500 | Database or engine error | object |
502 | Agent transport, address, redirect, response limit or response contract error | object |
504 | Agent request deadline exceeded | object |
default | Other native agent HTTP errors are preserved | object |
{ "active": {}, "active-observed-lsp-id": 0, "anchor": {}, "identity": { "accept-detour": true, "endpoint": "<string>", "ext-tunnel-id": "<string>", "instance": 0, "kind": "p2p", "lsp-id": 0, "p2mp-id": 0, "send-detour": true, "sender": "<string>", "tunnel-id": 0 }, "profile-revision": "<string>", "read-completed-at": "<string>", "read-started-at": "<string>", "runtime-generation": "<string>", "snapshot-atomic": true, "task-id": 0 }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{}