vCloud Director Version 10.4.1
I'm trying to upload the OVF template through API version 37 or Power-CLI Version 13 which should be compatible with Vcloud 10.4 and I'm getting following error:
curl -kiX POST \
> -H "Authorization: Bearer $TOKEN" \
> -H "Accept: application/*;version=37.0" \
> -H "content-Type: application/x-www-form-urlencoded" \
> -d "org=urn:vcloud:org:$ORGID&catalog=urn:vcloud:catalog:$CATALOG&file=@$FILE" \
message="HTTP method not allowed" majorErrorCode="405" minorErrorCode="METHOD_NOT_ALLOWED"/>
As for the Power-CLI
PS /user/> Import-CIVAppTemplate -SourcePath $FILE -Name $NAME -OrgVdc $myOrgvdc -Catalog $myCatalog
Import-CIVAppTemplate: Import-CIVAppTemplate HTTP method not allowed
Is there anything I'm doing wrong, as it was working finee on vCloud version 10.2?
Uploading through GUI(Tenant) portal is working fine.
Is it just me with this problem?
Version 10.3 has the same issue even when using API version 31:
Only thing I could find is:
Known Issues Running the Upload a vApp Template workflow fails Starting with API version 32, uploading a vApp Template directly to a virtual data center (VDC) is not supported. The Upload a vApp Template workflow fails with a METHOD_NOT_ALLOWED error. Workaround: To upload a vApp, run the Upload a vApp Template to Catalog workflow.
What does mean "run the upload a vApp template to Catalog workflow"?
Anyone has more details how to upload through API/PowerCLI as the error is only there, and through tenant portal it's fine.