VMware vCloud Director Cookbook by Daniel Langenhan

VMware vCloud Director Cookbook by Daniel Langenhan

Author:Daniel Langenhan [Langenhan, Daniel]
Language: eng
Format: epub
ISBN: 1782177663
Amazon: 1782177663
Publisher: Packt Publishing
Published: 2013-10-23T13:10:56+00:00


f

We want to upload a .iso file from the local disk of your desktop f

We want to add the .iso file to a catalog in vCloud

Here are the programming steps you need to do:

1. Create an object that contains the media filename and location as well as the type ISO.

2. Get the OvDC reference where the catalog we want to upload is stored.

3. Get the catalog reference.

4. Upload the media to the catalog.

5. Wait for the task to finish.

How it works...

To learn a programming language and an API is hard. The first reference you should consult is the API reference of vCloud. I normally start with the REST API as it shows me what is possible, whereas the specific language references show me only what has been implemented as methods so far.

I found people who posted programs that uploaded media in Powershell and PHP. Doing it in vCO isn't that difficult because there is already a workflow you can use as a base.

Why do I think this is a useful little program? Think about a loop you could put in there and upload all the ISOs into one library; then go home while everything is being automated.

189

6

Improving the

vCloud Design

In this chapter, we will focus on some quick and simple recipes that let you develop a deeper understanding of how to design a vCloud. We will look at the following recipes: f

Creating a naming standard



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.