/v2/projects/{project_id}/links/{link_id}¶
Contents
PUT /v2/projects/{project_id}/links/{link_id}¶
Update a link instance
Parameters¶
- project_id: Project UUID
- link_id: Link UUID
Response status codes¶
- 201: Link updated
- 400: Invalid request
Input¶
Name | Mandatory | Type | Description |
---|---|---|---|
capture_file_name | ['string', 'null'] | Read only property. The name of the capture file if capture is running | |
capture_file_path | ['string', 'null'] | Read only property. The full path of the capture file if capture is running | |
capturing | boolean | Read only property. True if a capture running on the link | |
link_id | string | Link UUID | |
link_type | enum | Possible values: ethernet, serial | |
nodes | ✔ | array | List of the VMS |
project_id | string | Project UUID |
Output¶
Name | Mandatory | Type | Description |
---|---|---|---|
capture_file_name | ['string', 'null'] | Read only property. The name of the capture file if capture is running | |
capture_file_path | ['string', 'null'] | Read only property. The full path of the capture file if capture is running | |
capturing | boolean | Read only property. True if a capture running on the link | |
link_id | string | Link UUID | |
link_type | enum | Possible values: ethernet, serial | |
nodes | ✔ | array | List of the VMS |
project_id | string | Project UUID |
DELETE /v2/projects/{project_id}/links/{link_id}¶
Delete a link instance
Parameters¶
- project_id: Project UUID
- link_id: Link UUID
Response status codes¶
- 204: Link deleted
- 400: Invalid request
Sample session¶
curl -i -X DELETE 'http://localhost:3080/v2/projects/0e7e02c1-1864-46e3-a0ec-de2d3860ed66/links/998e514e-d9a3-4de5-a940-13845f96fe55'
DELETE /v2/projects/0e7e02c1-1864-46e3-a0ec-de2d3860ed66/links/998e514e-d9a3-4de5-a940-13845f96fe55 HTTP/1.1
HTTP/1.1 204
Connection: close
Content-Length: 0
Content-Type: application/octet-stream
Date: Thu, 29 Jun 2017 15:07:54 GMT
Server: Python/3.6 GNS3/2.1.0dev1
X-Route: /v2/projects/{project_id}/links/{link_id}