Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

Do "Copy to Catalog" via powercli looking for clues...

$
0
0

I'm automating a template distribution process and need some insight on how to call the "copy to catalog" command via powercli. None of the regular powercli modules seem to have this function. Based on this old blog post https://blogs.vmware.com/PowerCLI/2012/03/automating-creation-of-vcd-organizations-users-and-org-vdcs.html "The Get-CIView cmdlet and ExtensionData property exposes the entire vCloud Director API and allows us to make changes to the CI, this opens up multiple possibilities and moves us away from just retrieving data and allows us to create and alter our CI." This looks like a usable API to powercli bridge.

Screen Shot 2017-03-06 at 10.44.02 AM.png

 

This leaves me with more questions than answers...

 

Here is the API reference for the copy operation that I found.

http://pubs.vmware.com/vcd-55/index.jsp?topic=%2Fcom.vmware.vcloud.api.reference.doc_55%2Fdoc%2Foperations%2FPOST-CopyCatalogItem.html

 

How do I go about forming the get-ciview .ExtensionData command to do this?

How do I figure out what inputs are needed and collect them for inclusion in the command?

 

Right now I'm just trying to figure out how to identify the objects I need in the ExtensionData space. Any pointers or suggestions on doing this are welcome!

 

Thanks,

Blake


Viewing all articles
Browse latest Browse all 13334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>