The purpose of this article is, how we should download the files from datastore using Url.
When downloading .vmx files or any other VMs files from datastore manually, we may see the following error message if the download path/URL is framed wrongly.
Type Status Report
Message HTTP method GET is not supported by this URL
Description The method received in the request-line is known by the origin server but not supported by the target resource.
Sometimes customer may target URL similar to : https://vC/pbm/folder/vmFolder/vm.vmx?dcPath=DatacenterPath&dsName=DatastoreName and PBM service folder in the URL leads us to 415 Method Not Found.
The syntax of the URLs is as follows:
https://<vC_hostname>/folder[/<path>]?dcPath=<datacenter_path>[&dsName=<datastore _name>]
Following sample URL:
https://vC_hostname/folder/vmfolder/vm.vmx?dcPath=Datacenter&dsName=Datastore
Some sample URLs:
https://vC_hostname/folder?dcPath=Datacenter
which lists all the datastores in the datacenter whose path is Datacenter
.
https://vC_hostname/folder?dcPath=Datacenter&dsName=storage1%20(1)
which lists all the folders in the datastore named storage1 (1)
whose path is Datacenter
.
https://vC_hostname/folder/SuSe_server10/SuSe_server10- flat.vmdk?dcPath=Datacenter&dsName=storage1%20(1)
which points to the vmdk
file called SuSe_server10-flat.vmdk
.