2

I am trying to create a new workspace in eclipse-che and I wish to mount an external NFS volume in the workspace container.

Can anyone point me to the API where I can give a workspace mount path ?.

Thanks.

Akki
  • 2,179
  • 8
  • 21
  • 37

2 Answers2

0

There's no API for that, but you may grab host and port of a running workspace and then mount a volume.

bianchi
  • 500
  • 2
  • 12
  • Unfiortunately each workspace is a docker container, and once a container starts, I cannot mount a volume inside the container. – Akki Aug 02 '17 at 08:03
  • You can ssh into a container, so use of sshfs tools is possible – bianchi Aug 02 '17 at 13:04
0

You're looking for "Swagger" browse to <che-address>:<port>/swagger.

Once you're at this page go to, "Workspace" -> "get workspace users can read" -> "try it out!". The response body has a lot of JSON. I recommend ctrl+f for your workspace name eg: "wksp-foo". About 10 lines above your name you will see the key "id" with a 25 character alphanumeric string that starts with "worksp...".

J'e
  • 3,014
  • 4
  • 31
  • 55