trying to export a catalog from vCD 5.1 to local disk using ovftool but something is wrong with my syntax.
Here is what i'm using:
ovftool "vcloud://login:firstname.lastname@example.org?org=Sales&vDC='Sales Org vDC'&Catalog=Education&vApp="20131031 vApp1" g:\exports\vApp1"
the error i get is:
Error: Unknown locator query key: Catalog
any help is appreciated
For exporting a template from the catalog the following should work:
ovftool --X:logToConsole "vcloud://guest:guest1@myIP/?org=vcenter-1-org&catalog=cat1&vappTemplate=t" t/t.ovf
I believe it's also possible to export a vApp:
ovftool --X:logToConsole "vcloud://guest:email@example.com/?org=vcenter-1-org&catalog=cat1&vapp=a" a/a.ovf
For more details you can check the User Guide at OVF Tool Documentation
I just ran into the same "Unknown locator query key" error trying to upload an OVF into a vCloud Director catalog. The problem is the special characters in the name, in my case the VM's name contained a '&', in the dialog box that auto populates the vApp name I just removed it and the upload proceeded just fine.
yeah, it happens that the API call uses the & symbol as a delineation marker and it incorrectly breaks on the one from the catalog name and fails to find it. I think it cannot be in the name of the catalog and or the name of the VM and or name of vApp at the time of upload.