Updata Shared Folder

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.

Authentication
This operation uses the following authentication methods.
Responses
200

Shared folders mounted in the VM

Returns Array of SharedFolder of type(s) application/vnd.vmware.vmw.rest-v1+json
[
    {
        "folder_id": "string",
        "host_path": "string",
        "flags": 0
    }
]

400

Invalid parameters

Returns ErrorModel of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "code": 0,
    "message": "string"
}
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
{
    "code": 0,
    "message": "string"
}
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
{
    "code": 0,
    "message": "string"
}
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
{
    "code": 0,
    "message": "string"
}
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
{
    "code": 0,
    "message": "string"
}
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
{
    "code": 0,
    "message": "string"
}
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
{
    "code": 0,
    "message": "string"
}
integer As int32 As int32
code
Required

code

string
message
Required

message