mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-30 18:50:58 +00:00
Merge remote-tracking branch 'origin/asyncio' into asyncio
This commit is contained in:
commit
beb27b3f69
@ -4,12 +4,10 @@ DELETE /vpcs/{uuid}/ports/{port_id}/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
HTTP/1.1 204
|
||||
CONNECTION: close
|
||||
CONTENT-LENGTH: 2
|
||||
CONTENT-TYPE: application/json
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.4 aiohttp/0.13.1
|
||||
X-ROUTE: /vpcs/{uuid}/ports/{port_id}/nio
|
||||
|
||||
{}
|
||||
|
@ -18,5 +18,5 @@ X-ROUTE: /vpcs/{uuid}
|
||||
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"script_file": null,
|
||||
"startup_script": null,
|
||||
"uuid": "c9e15d9f-cff3-402a-b9c9-57f4d008832f"
|
||||
"uuid": "a0ecc3ea-907f-4751-9415-9f6d5da4dc3a"
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ POST /virtualbox HTTP/1.1
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
HTTP/1.1 201
|
||||
CONNECTION: close
|
||||
CONTENT-LENGTH: 133
|
||||
CONTENT-TYPE: application/json
|
||||
@ -19,5 +19,5 @@ X-ROUTE: /virtualbox
|
||||
{
|
||||
"name": "VM1",
|
||||
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"uuid": "3142e932-d316-40d7-bed3-7ef8e2d313b3"
|
||||
"uuid": "0f7b32bb-13e1-4c3f-8176-bbf277672b58"
|
||||
}
|
||||
|
@ -4,12 +4,10 @@ POST /virtualbox/{uuid}/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
HTTP/1.1 204
|
||||
CONNECTION: close
|
||||
CONTENT-LENGTH: 2
|
||||
CONTENT-TYPE: application/json
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.4 aiohttp/0.13.1
|
||||
X-ROUTE: /virtualbox/{uuid}/start
|
||||
|
||||
{}
|
||||
|
@ -4,12 +4,10 @@ POST /virtualbox/{uuid}/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
HTTP/1.1 204
|
||||
CONNECTION: close
|
||||
CONTENT-LENGTH: 2
|
||||
CONTENT-TYPE: application/json
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.4 aiohttp/0.13.1
|
||||
X-ROUTE: /virtualbox/{uuid}/stop
|
||||
|
||||
{}
|
||||
|
@ -7,7 +7,7 @@ POST /vpcs HTTP/1.1
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
HTTP/1.1 201
|
||||
CONNECTION: close
|
||||
CONTENT-LENGTH: 213
|
||||
CONTENT-TYPE: application/json
|
||||
@ -21,5 +21,5 @@ X-ROUTE: /vpcs
|
||||
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"script_file": null,
|
||||
"startup_script": null,
|
||||
"uuid": "f5016337-fa62-4e82-95da-9f66f68e6e8f"
|
||||
"uuid": "f4f04818-610c-4e95-aa0e-6d29afa72fc7"
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ POST /vpcs/{uuid}/ports/{port_id}/nio HTTP/1.1
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
HTTP/1.1 201
|
||||
CONNECTION: close
|
||||
CONTENT-LENGTH: 89
|
||||
CONTENT-TYPE: application/json
|
||||
|
@ -13,7 +13,7 @@ Parameters
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
- **200**: VPCS instance started
|
||||
- **200**: Success
|
||||
- **404**: VPCS instance doesn't exist
|
||||
|
||||
Sample session
|
||||
|
@ -9,8 +9,8 @@ Add a NIO to a VPCS
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **uuid**: VPCS instance UUID
|
||||
- **port_id**: Id of the port where the nio should be add
|
||||
- **uuid**: VPCS instance UUID
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
@ -31,14 +31,14 @@ Remove a NIO from a VPCS
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **uuid**: VPCS instance UUID
|
||||
- **port_id**: ID of the port where the nio should be removed
|
||||
- **uuid**: VPCS instance UUID
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
- **200**: NIO deleted
|
||||
- **400**: Invalid VPCS instance UUID
|
||||
- **404**: VPCS instance doesn't exist
|
||||
- **204**: NIO deleted
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
Loading…
Reference in New Issue
Block a user