gns3-server/docs/api/examples/post_vpcsvpcsidportsportidnio.txt

26 lines
581 B
Plaintext
Raw Normal View History

2015-01-16 16:09:45 +00:00
curl -i -xPOST 'http://localhost:8000/vpcs/{vpcs_id}/ports/{port_id}/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
2015-01-16 15:20:10 +00:00
POST /vpcs/{vpcs_id}/ports/{port_id}/nio HTTP/1.1
{
2015-01-16 16:09:45 +00:00
"lport": 4242,
"rhost": "127.0.0.1",
"rport": 4343,
"type": "nio_udp"
2015-01-16 15:20:10 +00:00
}
2015-01-16 16:09:45 +00:00
HTTP/1.1 200
2015-01-16 15:20:10 +00:00
CONNECTION: close
2015-01-16 16:09:45 +00:00
CONTENT-LENGTH: 89
2015-01-16 15:20:10 +00:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /vpcs/{vpcs_id}/ports/{port_id}/nio
{
2015-01-16 16:09:45 +00:00
"lport": 4242,
"rhost": "127.0.0.1",
"rport": 4343,
"type": "nio_udp"
2015-01-16 15:20:10 +00:00
}