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

Change and persist one RSVP-TE label pool start

POST
/tasks/{id}/rsvp/label-pool/apply

Changes the start of a free RSVP label pool on a RUNNING routing agent. Requires the current saved profile revision, runtime generation, native start and a unique 32-digit lowercase hexadecimal operation ID. The existing pool size is retained. Native dry-run precedes durable admission; a pool with active or fixed labels is rejected. HTTP 202 means admission only: poll label-pool/query until terminal persisted. Dispatch is sealed before one native call; recovery observes the same generation and operation receipt twice, then atomically saves the new task profile. An ambiguous response is never blindly resent.

Контракт

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

Параметры

2 параметров

Имя
Где
Обязательный
Тип
Описание
idpathдаintegerTask ID
requestbodyдаobjectAgent, instance, new start and current guards
  • {
      "agent": "<string>",
      "expected-label-range-start": 0,
      "expected-profile-revision": "<string>",
      "instance": 0,
      "label-range-start": 0,
      "operation-id": "<string>",
      "runtime-generation": "<string>"
    }

Ответы

9 ответов

Статус
Описание
Тип
202
Durable admission; query terminal statusobject
400
Invalid request or profile label poolobject
401
Session requiredobject
403
Agent is not registered for this task or license deniedobject
404
Task, routing agent 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,
      "expected-label-range-start": 0,
      "expires-at": "<string>",
      "instance": 0,
      "label-range-start": 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>"
    }
  • {}