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.
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.
There's no API for that, but you may grab host and port of a running workspace and then mount a volume.
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...".