Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Upload an iso media to a catalog #58

Closed
piraz opened this issue Jun 15, 2015 · 2 comments
Closed

Upload an iso media to a catalog #58

piraz opened this issue Jun 15, 2015 · 2 comments

Comments

@piraz
Copy link

piraz commented Jun 15, 2015

I want the ability of upload an iso media to the catalog.

The api will receive the catalog name, media name, description and type and the path to the iso file.

I don't know if media type is necessary on this case but at the HTTP Api it looks like other types of media can be uploaded but by default the ISO media type is used.

piraz added a commit to piraz/pyvcloud that referenced this issue Jun 18, 2015
Introduced api that uploads a media iso file to a vcloud catalog. By
now this method just creates the media link into the catalog
and returns the response from the vcloud.

To do:

 - Get the catalog item created by the previous request
 - Retrieve the media object to get the upload:default url
 - Put the media file content on the upload:default url. This should
be done partially instead of sending the file data in just one
request

Refers: vmware-archive#58.
piraz added a commit to piraz/pyvcloud that referenced this issue Jun 18, 2015
It looks like @pacogomez started an upload_media method so I'm using
his because it looks better.

To do:

 - Get the catalog item created by the previous request
 - Retrieve the media object to get the upload:default url
 - Put the media file content on the upload:default url. This should
be done partially instead of sending the file data in just one
request

Refers: vmware-archive#58.
piraz added a commit to piraz/pyvcloud that referenced this issue Jun 18, 2015
While uploading a file if the file doesn't exists than we should fail
the method. Also getting the file size and adding to the method.

To do:
 - Put the media file content on the upload:default url. This should
be done partially instead of sending the file data in just one
request

Refers: vmware-archive#58.
@piraz
Copy link
Author

piraz commented Jun 18, 2015

When we start to put the file to the catalog it would be great to send it in chunks because ISO files can be really big. I've looked the API and it seems to support this feature.

pacogomez added a commit that referenced this issue Jun 18, 2015
@pacogomez
Copy link
Contributor

This is already in the master branch and will be released in version 13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants