mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-25 15:31:08 +00:00
4.5 KiB
4.5 KiB
/v1/{project_id}/vpcs/vms/{vm_id}
GET /v1/{project_id}/vpcs/vms/{vm_id}
Get a VPCS instance
Parameters
- vm_id: UUID for the instance
- project_id: UUID for the project
Response status codes
- 200: Success
- 400: Invalid request
- 404: Instance doesn't exist
Output
Name | Mandatory | Type | Description |
---|---|---|---|
console | ✔ | integer | console TCP port |
name | ✔ | string | VPCS VM name |
project_id | ✔ | string | Project UUID |
script_file | ['string', 'null'] | VPCS startup script | |
startup_script | ['string', 'null'] | Content of the VPCS startup script | |
vm_id | ✔ | string | VPCS VM UUID |
PUT /v1/{project_id}/vpcs/vms/{vm_id}
Update a VPCS instance
Parameters
- vm_id: UUID for the instance
- project_id: UUID for the project
Response status codes
- 200: Instance updated
- 400: Invalid request
- 404: Instance doesn't exist
- 409: Conflict
Input
Name | Mandatory | Type | Description |
---|---|---|---|
console | ['integer', 'null'] | console TCP port | |
name | ['string', 'null'] | VPCS VM name | |
startup_script | ['string', 'null'] | Content of the VPCS startup script |
Output
Name | Mandatory | Type | Description |
---|---|---|---|
console | ✔ | integer | console TCP port |
name | ✔ | string | VPCS VM name |
project_id | ✔ | string | Project UUID |
script_file | ['string', 'null'] | VPCS startup script | |
startup_script | ['string', 'null'] | Content of the VPCS startup script | |
vm_id | ✔ | string | VPCS VM UUID |
DELETE /v1/{project_id}/vpcs/vms/{vm_id}
Delete a VPCS instance
Parameters
- vm_id: UUID for the instance
- project_id: UUID for the project
Response status codes
- 400: Invalid request
- 404: Instance doesn't exist
- 204: Instance deleted