Updata Shared Folder
Updates a shared folder mounted in the VM
Request
URI
PUT
https://{api_host}/api/vms/{id}/sharedfolders/{folder id}
COPY
Path Parameters
string
id
Required
ID of VM
string
folder id
Required
ID of VM shared folder
Request Body
Parameters of the shared folder to update to
SharedFolderParameter
of type(s)
application/vnd.vmware.vmw.rest-v1+json
Required
{
"host_path": "string",
"flags": 0
}
string
host_path
Required
Path of the host shared folder
integer
flags
Required
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.
Responses
200
Shared folders mounted in the VM
Returns
Array of
SharedFolders
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"SharedFolders Object"
400
Invalid parameters
Returns
ErrorModel
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"ErrorModel Object"
integer As int32
As int32
code
Required
code
string
message
Required
message
401
Authentication failed
Returns
ErrorModel
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"ErrorModel Object"
integer As int32
As int32
code
Required
code
string
message
Required
message
403
Permission denied
Returns
ErrorModel
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"ErrorModel Object"
integer As int32
As int32
code
Required
code
string
message
Required
message
404
No such resource
Returns
ErrorModel
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"ErrorModel Object"
integer As int32
As int32
code
Required
code
string
message
Required
message
406
Content type was not supported
Returns
ErrorModel
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"ErrorModel Object"
integer As int32
As int32
code
Required
code
string
message
Required
message
500
Server error
Returns
ErrorModel
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"ErrorModel Object"
integer As int32
As int32
code
Required
code
string
message
Required
message
default
Unexpected error
Returns
ErrorModel
of type(s)
application/vnd.vmware.vmw.rest-v1+json
"ErrorModel Object"
integer As int32
As int32
code
Required
code
string
message
Required
message
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/vnd.vmware.vmw.rest-v1+json' -d '{"host_path:"string","flags:"integer"}' https://{api_host}/api/vms/{id}/sharedfolders/{folder id}
On This Page
Vm Shared Folders Management Operations
GET
Get All Shared Folders
POST
Create Shared Folder
DELETE
Delete Shared Folder
PUT
Updata Shared Folder