gns3-server/docs/api/v2/hypervisor/docker/projectsprojectiddockervms.rst
Julien Duponchelle b2ce7ee8d7
API V2
2016-03-07 17:57:12 +01:00

4.7 KiB

/v2/hypervisor/projects/{project_id}/docker/vms

POST /v2/hypervisor/projects/{project_id}/docker/vms

Create a new Docker container

Parameters

  • project_id: UUID for the project

Response status codes

  • 400: Invalid request
  • 201: Instance created
  • 409: Conflict

Input

Name Mandatory Type Description
adapters ['integer', 'null'] number of adapters
aux ['integer', 'null'] auxilary TCP port
console ['integer', 'null'] console TCP port
console_type enum Possible values: telnet, vnc
environment ['string', 'null'] Docker environment
image string Docker image name
name string Docker container name
start_command ['string', 'null'] Docker CMD entry
vm_id string Docker VM instance identifier

Output

Name Mandatory Type Description
adapters ['integer', 'null'] number of adapters
aux ['integer', 'null'] auxilary TCP port
console ['integer', 'null'] console TCP port
console_type enum Possible values: telnet, vnc
container_id string Docker container ID
environment ['string', 'null'] Docker environment
image string Docker image name
name string Docker container name
project_id string Project UUID
start_command ['string', 'null'] Docker CMD entry
vm_directory string
vm_id string Docker container instance UUID