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

Control selected RSVP-TE protocol instances

POST
/tasks/{id}/rsvp/protocol/sessions/control

Selects 1-64 profile-indexed protocol instances by an array or semicolon-separated range string. All selected sessions are read and generation-checked before ordered dispatch through the existing agent CPF control. A failed or uncertain member stops further dispatch; response records accepted, failed, unknown and not-attempted members. Never retry an unknown result without querying current state. This local index scheme is not claimed to match exact IxNetwork device numbering or atomicity.

Контракт

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

Параметры

2 параметров

Имя
Где
Обязательный
Тип
Описание
idpathдаintegerCanonical positive task ID
requestbodyдаobjectAgent, profile revision, runtime generation, session indices and CPF action
  • {
      "action": "stop",
      "agent": "<string>",
      "expected-profile-revision": "<string>",
      "runtime-generation": "<string>",
      "session-indices": {}
    }

Ответы

9 ответов

Статус
Описание
Тип
200
All selected instances acceptedobject
207
Partial or unknown resultobject
400
Invalid selectionobject
401
Session requiredobject
403
Agent not registered for this taskobject
404
Task not foundobject
409
Profile, task or runtime generation changed before dispatchobject
500
Task lookup failedobject
502
Agent preflight read failedobject
  • {
      "action": "<string>",
      "agent": "<string>",
      "members": [
        {
          "http-status": 0,
          "index": 0,
          "instance": 0,
          "response": {},
          "status": "accepted"
        }
      ],
      "profile-revision": "<string>",
      "runtime-generation": "<string>",
      "state": "complete",
      "task-id": 0
    }
  • {
      "action": "<string>",
      "agent": "<string>",
      "members": [
        {
          "http-status": 0,
          "index": 0,
          "instance": 0,
          "response": {},
          "status": "accepted"
        }
      ],
      "profile-revision": "<string>",
      "runtime-generation": "<string>",
      "state": "complete",
      "task-id": 0
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }