Check the saved control-plane baseline before RSVP-TE Apply Changes
POST
/tasks/{id}/rsvp/profile/checkCompares the exact saved task control-plane supplied by the UI with the current RUNNING task and returns its profile revision. The request is read-only and is not journaled. A later Path group must submit this revision; the durable batch admission rechecks it under the task row lock. The body is bounded to 1 MiB.
Контракт
Параметр | Значение |
|---|---|
| Раздел | tasks |
| Авторизация | CookieAuth |
| Принимает | application/json |
| Возвращает | application/json |
Параметры
2 параметров
Имя | Где | Обязательный | Тип | Описание |
|---|---|---|---|---|
| id | path | да | integer | Canonical positive task ID |
| request | body | да | object | Registered routing agent and saved control-plane baseline |
{ "agent": "<string>", "saved-control-plane": [ { "access": [ 0 ], "agent": { "id": 0 }, "bfd": [ 0 ], "bgp": [ 0 ], "evpn": [ 0 ], "fec129": [ 0 ], "igmp": [ 0 ], "igmp-querier": [ 0 ], "interfaces": [ [ 0 ] ], "isServer": true, "isis": [ 0 ], "ldp": [ 0 ], "link-oam": [ 0 ], "mld": [ 0 ], "mld-querier": [ 0 ], "mldp": [ 0 ], "mpls-oam": [ 0 ], "mpls-tp": [ 0 ], "ospf": [ 0 ], "pim": [ 0 ], "pseudowire": [ 0 ], "rip": [ 0 ], "rsvp": [ 0 ], "streams": [ 0 ], "traffic": [ 0 ], "vpls": [ 0 ], "vpws": [ 0 ] } ] }
Ответы
8 ответов
Статус | Описание | Тип |
|---|---|---|
200 | Current matching profile revision | object |
400 | Malformed or oversized baseline | object |
401 | Session required | object |
403 | Agent not registered for this task | object |
404 | Task not found | object |
409 | Task not running or saved profile changed | object |
500 | Database or profile failure | object |
502 | Invalid registered agent address | object |
{ "profile-revision": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }