Перейти к основному содержимому

Add and persist one RSVP-TE P2P ingress LSP or P2MP ingress tree

POST
/tasks/{id}/rsvp/topology/create

Applies one materialized P2P LSP or one P2MP tree to a RUNNING routing agent. For a paired P2P ingress detour, send-detour=true distinguishes it from its protected primary despite their shared RSVP wire key. Requires the saved profile revision, current runtime generation, full wire identity and a unique 32-digit lowercase hexadecimal operation ID. Native dry-run precedes durable admission. 202 is only admission; poll topology/query until persisted. The journal marks dispatch before the one native request. After a lost response or Core restart, recovery only queries the LSP twice and requires the same native create-operation-id and generation before atomically saving the new task profile. No blind resend or fixed-label create.

Контракт

Параметр
Значение
Разделtasks
АвторизацияCookieAuth
Принимаетapplication/json
Возвращаетapplication/json

Параметры

2 параметров

Имя
Где
Обязательный
Тип
Описание
idpathдаintegerTask ID
requestbodyдаobjectOne complete P2P LSP and current guards, at most 64 KiB
  • {
      "agent": "<string>",
      "expected-profile-revision": "<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
      },
      "lsp": {},
      "operation-id": "<string>",
      "runtime-generation": "<string>"
    }

Ответы

9 ответов

Статус
Описание
Тип
202
Durable admission; query terminal statusobject
400
Invalid identity, LSP or guardobject
401
Session requiredobject
403
Agent is not registered for this task or license deniedobject
404
Task or RSVP instance not foundobject
409
Task, profile, runtime or operation conflictobject
500
Database failureobject
502
Agent transport or response contract failure before admissionobject
default
Native validation errors are preservedobject
  • {
      "agent": "<string>",
      "created-at": "<string>",
      "dispatched": true,
      "expires-at": "<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
      },
      "operation-id": "<string>",
      "reason": "<string>",
      "runtime-generation": "<string>",
      "status": "<string>",
      "task-id": 0,
      "terminal": true,
      "updated-at": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {}