Download files from vCenter Datastore using URL
search cancel

Download files from vCenter Datastore using URL

book

Article ID: 301563

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

The purpose of this article is, how we should download the files from datastore using Url.


Symptoms:

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.

 

HTTP Status 415 – Method Not Allowed


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.

Cause

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.

Resolution

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.