/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¶
Name | Mandatory | Type | Description |
---|---|---|---|
console | integer | console TCP port | |
name | ✔ | string | VPCS device name |
vpcs_id | integer | VPCS device instance ID |
Output¶
Name | Mandatory | Type | Description |
---|---|---|---|
console | ✔ | integer | console TCP port |
name | ✔ | string | VPCS device name |
vpcs_id | ✔ | integer | VPCS 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
}