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

Read RSVP interface and neighbor state for one instance

POST
/tasks/{id}/rsvp/protocol/query

Proxies sequential read-only native interface, neighbor, CPF and local recovery schedule state queries to one named routing agent of a RUNNING task. Optional expected-offset and expected-limit (1..128) must be supplied together to read one bounded, name-sorted PCEP expected-LSP state page with its own observation timestamp. This is not IxNetwork StateCounts: it reports native state from one RSVP instance, with independent observation timestamps.

Контракт

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

Параметры

2 параметров

Имя
Где
Обязательный
Тип
Описание
idpathдаintegerCanonical positive task ID
requestbodyдаobjectAgent hostname and instance ID
  • {
      "agent": "<string>",
      "expected-limit": 0,
      "expected-offset": 0,
      "instance": 0
    }

Ответы

9 ответов

Статус
Описание
Тип
200
OKobject
400
Invalid requestobject
401
Session requiredobject
403
Agent not registered for this task or license deniedobject
404
Task or RSVP instance not foundobject
409
Task or agent unavailableobject
500
Task lookup failedobject
502
Agent transport or response contract errorobject
504
Agent request deadline exceededobject
  • {
      "cpf-state": "<string>",
      "instance": 0,
      "interfaces": [
        {}
      ],
      "interfaces-observed-at": "<string>",
      "label-pool": {
        "label-pool-last-from": 0,
        "label-pool-last-operation-id": "<string>",
        "label-pool-last-to": 0,
        "label-range-size": 0,
        "label-range-start": 0
      },
      "local-recovery": {
        "pending": 0,
        "phase": "<string>",
        "recovery-ms": 0,
        "restart-ms": 0,
        "role": "<string>"
      },
      "local-recovery-schedule": {
        "completed": 0,
        "cycle-pending": true,
        "last-error": "<string>",
        "recovery-ms": 0,
        "restart-ms": 0,
        "start-ms": 0,
        "started": 0,
        "state": "<string>",
        "target": 0,
        "up-ms": 0
      },
      "neighbors": [
        {}
      ],
      "neighbors-observed-at": "<string>",
      "pcep": {
        "expected-initiated-lsps": 0,
        "expected-initiated-matched": 0,
        "expected-initiated-up": 0,
        "initiations-negotiated": true,
        "last-error": "<string>",
        "local-initiations-allowed": true,
        "local-stateful": true,
        "local-updates-allowed": true,
        "pce-initiated-delegated": 0,
        "pce-initiated-lsps": 0,
        "pce-initiated-orphaned": 0,
        "peer-address": "<string>",
        "peer-initiations-allowed": true,
        "peer-port": 0,
        "peer-stateful": true,
        "peer-updates-allowed": true,
        "state": "<string>",
        "stateful-negotiated": true,
        "updates-negotiated": true
      },
      "pcep-expected-observed-at": "<string>",
      "pcep-expected-page": {
        "items": [
          {
            "delegated": 0,
            "matched": 0,
            "orphaned": 0,
            "state": "<string>",
            "symbolic-path-name": "<string>",
            "up": 0
          }
        ],
        "limit": 0,
        "offset": 0,
        "total": 0
      },
      "runtime-generation": "<string>",
      "snapshot-atomic": true,
      "stats-observed-at": "<string>",
      "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>"
    }