Upload a File from a URL to a Library Item

You can upload different types of files from a local system to a library item that you want to use in the
vSphere Automation
environment.
  1. Create an
    UpdateSessionModel
    instance to track the changes that you make to the library item.
  2. Create an update session by using the
    UpdateSession
    service.
  3. Create a file specification to describe the upload method and other properties of the file to be uploaded.
  4. Specify the location of the file to be uploaded by creating a
    TransferEndpoint
    instance.
  5. Add the file source endpoint to the file specification.
  6. Create a request for changing the item by using the configured file specification.
  7. Complete the update session to apply the changes to the library item.