Create Shared Folder
Mounts a new shared folder in the VM
ID of VM
Parameters of the shared folder to mount
{
"folder_id": "string",
"host_path": "string",
"flags": 0
}
ID of folder which be mounted to the host
Path of the host shared folder
The flags property specifies how the folder will be accessed by the VM. There is only one flag supported which is "4" and means read/write access.
Shared folders mounted in the VM
"SharedFolders Object"
Invalid parameters
"ErrorModel Object"
code
message
Authentication failed
"ErrorModel Object"
code
message
Permission denied
"ErrorModel Object"
code
message
No such resource
"ErrorModel Object"
code
message
Content type was not supported
"ErrorModel Object"
code
message
Resource state conflicts
"ErrorModel Object"
code
message
Server error
"ErrorModel Object"
code
message
Unexpected error
"ErrorModel Object"
code
message
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/vnd.vmware.vmw.rest-v1+json' -d '{"folder_id:"string","host_path:"string","flags:"integer"}' https://{api_host}/api/vms/{id}/sharedfolders