/vpcs

POST /vpcs

Create a new VPCS and return it

Parameters

  • vpcs_id: Id of VPCS instance

Response status codes

  • 201: Success of creation of VPCS
  • 409: Conflict

Input

NameMandatoryTypeDescription
console integerconsole TCP port
namestringVPCS device name
vpcs_id integerVPCS device instance ID

Output

NameMandatoryTypeDescription
consoleintegerconsole TCP port
namestringVPCS device name
vpcs_idintegerVPCS device instance ID

Sample session

POST /vpcs HTTP/1.1
{
    "name": "PC TEST 1"
}


HTTP/1.1 200
CONNECTION: close
CONTENT-LENGTH: 53
DATE: Thu, 08 Jan 2015 09:33:10 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /vpcs

{
    "console": 4242,
    "name": "PC TEST 1",
    "vpcs_id": 42
}