Skip to main content

Read RSVP-TE LSP state

POST
/tasks/{id}/rsvp/query

Includes 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.

Contract

Parameter
Value
Sectiontasks
AuthenticationCookieAuth
Consumesapplication/json
Producesapplication/json

Parameters

2 parameters

Name
Location
Required
Type
Description
idpathyesintegerTask ID
requestbodyyesobjectAgent 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
      }
    }

Responses

10 responses

Status
Description
Type
200
OKobject
400
Invalid ID, JSON or identity; native request errorobject
401
Session requiredobject
403
Not a routing agent of this task or license deniedobject
404
Task or LSP not foundobject
409
Task/agent is not running, stopping or runtime changedobject
500
Database or engine errorobject
502
Agent transport, address, redirect, response limit or response contract errorobject
504
Agent request deadline exceededobject
default
Other native agent HTTP errors are preservedobject
  • {
      "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>"
    }
  • {}